Git Product home page Git Product logo

jinx-engine's People

Contributors

patrick-w-mcmahon avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

jinx-engine's Issues

Timer Objects

Ability to have a createTimer() and createTimeTrigger() that will give the programmer ability to keep track of real world time, game time, and game frame cycles.

ability to trigger event on timers so fire events.

cleaning up orphan animation frames

When the engine is stopped and restarted. It fails to clean up any animation frames. this leaves orphan animation frames that are calling the frame loop at a faster rate then it should. This overlap has bad effects on the engine loop. This also could be having problems with the engine running for a prolong time.

Possible solution is to cancel the animation frames prior to calling a new one. also canceling on engine stop method.

Connecting Scene management into the game engine.

The engine should have the active scene handled in the game loop and run the scene objects init() at time of switching to the scene. It will then have to run the scene objects update() and render() in the game loop.

Canvas Buffer

To optimize this further I will need to add in a Canvas Buffer and have everything draw to the buffer and have the screen repaint to call the buffer when ready this should reduce cpu cycles and help with a smoother repaint.

Render decouple from core loop

now that ill be using camera objects to handle rendering to the canvas i need to decouple the rendering from the game engine loop in a way to still permit basic game engine objects to be able to render to the screen but also permit the camera object to have the ability to draw without being interfered with by the game engine object list.

Key events trigger error

In the Pong example if a key is pressed to move player one and a key to move player two are pressed at the same time only one key event is handled. Need to find out why.

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.