Giter VIP home page Giter VIP logo

taxman-engine's Introduction

Taxman Engine

Taxman is a 2D Game Engine designed originally for the Playdate console. However, it is not platform-dependent.

The engine is written in C for high portability and speed in small-scale devices. No optimisation has been done, as the target device is not yet available for purchase.

Taxman Engine implements a simple Entity-Component structure and scene management. The choice is based on a hunch that quick iterative prototyping and creating game jam games would be faster with EC than with ECS.

Some features of the engine are based on the idea of having 1-bit screen, but adding support for more colors is entirely possible.

To run the engine, a platform adapter is needed. Currently there are two publicly available platform adapters:

Demo

Online demo is available here. It is built using the Wasm port of the engine. The Wasm port repository contains an example of how to build a scene and add objects there, as well as how to add assets and load them.

The logo animation is made using transform animations and easings, including bezier curve for the jump of the taxman text. After the animation, scene is changed using a fade-to-black transition.

Logo animation

The character displays an example of frame animations. Simple water effect is made using dithering.

Character and tilemap demo

In order to test the engine on an actual device, a Teensy 4.0 board was used, running at 150MHz. The display is a Sharp memory display with 400x240 resolution.

Device demo

Features

Current Features include

  • Custom object type with runtime type information to allow easier memory management (destructor-like behavior)
  • Scenes and transitions between scenes
  • Scene Graph, Game Objects, reusable Components
  • Dynamic ArrayLists, HashMaps, and String Builders, which support the memory management scheme
  • Dithering to draw grayscale images
  • Advanced dithering features for animation and effects
  • Bitmap fonts (currently monospace only)
  • Sprite atlases and atlas creation tool
  • Render textures and off-screen rendering
  • Frame animations
  • Transform animations
  • Easings for transform animations, including cubic bezier curves
  • Precomputed bezier curves to make them run faster in embedded environments
  • Tilemaps with automatic edge tile selection
  • Platformer physics with one-directional platforms and walls
  • Moving platforms and pushable objects
  • Collision detection using sweep-and-prune algorithm
  • Camera
  • 9-sprite
  • Pseudorandom number generator
  • Profiler

The engine can use fixed-point numbers for in-game calculations. This is due to the original game idea needing platform-indepent deterministic game replays using only player inputs. By deafult regular floats are used.

Rough Backlog

  • How-to-use guide
  • Examples of scenes, objects, components, and game state
  • Audio support
  • Render optimisations
  • Sprite alpha using dithering
  • Clean exit (clear all allocated memory and quit)
  • Use user-defined resolution instead of a hard-coded one

Contributing

All contributions, especially issues, comments, and pull request are warmly welcome. This repository is maintained as a side project, and as such, it is unfortunately not possible to guarantee frequent updates.

If you manage to get the engine running on any platform, please send me a tweet.

License

This codebase is released under the MIT License.

taxman-engine's People

Contributors

mcdevon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

taxman-engine's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.