Part of 'HTML5 Game Development' video series. For the full Course visit:
http://www.packtpub.com/html5-game-de...
There are some properties that are shared between moving objects, but this is not applicable to static objects such as platforms. We need a definition for moving objects that extends the GameObject class.
• Define a movable GameObject class and a hero class
• Override the value in the GameObject class for the hero class
• Set the registration point of the hero to bottom-center to make it easy for calculation
-----------------------------------------------------------------------------------------------
For the latest in game development video tutorials, please visit:
http://www.packtpub.com/books/video?u...
Find us on Facebook -- / packtvideo
Follow us on Twitter - / packtvideo
On this page of the site you can watch the video online HTML5 Game Development Tutorial: Creating Movable Game Objects | packtpub.com with a duration of hours minute second in good quality, which was uploaded by the user Packt 07 January 2014, share the link with friends and acquaintances, this video has already been watched 5,366 times on youtube and it was liked by 17 viewers. Enjoy your viewing!