Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

2 - Creating a Simple game with EaselJS Part 1

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
509 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Sep 12, 2011

Video tutorial to create a simple game with Easel JS. Part 1 of a 3 part series. Easel JS is a Flash like Javascript framework for HTML5 Canvas element.
Tutorial files available for download at http://www.webspaceinvader.com/simple-game.zip

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (3)

Sign In or Sign Up now to post a comment!
  • @VeryAngryBeaver

    OH!!

    That makes sense. Thanks for the help!

  • @rockindahizzy its the equivelant of

    bitmap.regX = Math.floor(bitmap.image.width/­2);

    the reason to use |0 instead is because it runs faster

  • Could you explain the use/reasoning behind the "|" in the following lines (I couldn't find anything on Google. Mainly cause I did not know what to look for):

    bitmap.regX = bitmap.image.width/2|0;

    bitmap.regY = bitmap.image.height/2|0;

    ship.y = canvas.height*Math.random()|0

    Thanks!!! I am enjoying going through your video tutorials. Very Helpful!

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more