Git Product home page Git Product logo

canvasgames's Introduction

CanvasGames

Game developer journey

Starting my journey as a game developer by building games with canvas.

Current games so far:

  • Falling Block - Move left and right to dodge falling blocks

Time taken to make: About 5 - 6 hours

Notes

Didn't totally finish. Wanted to add an option to move the letters up and down and later at random speeds in random directions. Was basically going to do an observer/event listener approach where I register the indexes into an array. Then I check if the array exists and create a global variable that tells me if we started the interval for moving the letters independently. I would also make an extra argument on the mainDraw function for moving letters so if it is passed in, it will just clear the part of the canvas I specifically tell it to and that's it - it won't run the whole loop. If the moving letter interval function has started, I will change the global variable e.g. movingLettersInterval to true and mainDraw will no longer will try to move the letters itself - it will leave it entirely to the moving interval function.

Wanted to implement this, but don't want to spend any more time on this. Happy to know I knew what I was going to do - observers FTW!!!!

canvasgames's People

Contributors

itzcookiie avatar

Watchers

James Cloos avatar  avatar

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.