Giter Site home page Giter Site logo

backbone-game-engine's People

Contributors

martindrapeau 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

backbone-game-engine's Issues

Lazy-load assets

Instead of having assets (images) loaded with page (declared in the html file), would be nice to lazy load them. Trying to avoid AJAX would be best to prevent having to have a local server. Maybe just by adding a new img element to the DOM and checking when its ready. With progress and all.

Contribution

I just came across your project and would be interested in contributing. Are you interested in getting some help? I have been a long time Backbone developer and have been dabbling in web based game development for a few months. If so it would be good for you to create a couple of issues / tasks I could pick out to help on.

World.drawStaticSprites optimization

Currently, that function redraws the background every world x/y change up to 60 times a second. Takes up a lot of time to do so when the world is panned. On older computers and tablets, the fps is reduced.

Instead, we could increase the background canvas by a buffer (say 2 tiles larger and taller). When the world x/y changes slightly, we will not need to redraw - but instead just perform a copy of the panned region.

For Super Mario, I estimate this strategy would cause a redraw only once per second instead of 60.

Quad-tree for fast lookup in World

World.findAt() and World.filterAt() are not very efficient. If World.sprites were added to a quad-tree (and their position was maintained when they move) it would be much faster. I would probably bootstrap that call in World.setupSpriteLayers().

Space shooter game

Contribute by building a space shooter game whereby improving the framework. Some potential graphics from Graphic River here or here.

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.