Need help with simple questions...
Hello,
first i`m sorry for these simple questions but it`ll help me...
My first question is how to do simple move WASD. I tryed to understand it in this tutorial but I`m don`t understand it. http://gamequeryjs.com/documentation/first-tutorial/
My second question is how to collide player with map layers like in this image http://opengameart.org/sites/default/files/archive/tiled-qt-screenshot-3.png
Thanks alot for answers..
Hello from Czech Republic, Kenny
first i`m sorry for these simple questions but it`ll help me...
My first question is how to do simple move WASD. I tryed to understand it in this tutorial but I`m don`t understand it. http://gamequeryjs.com/documentation/first-tutorial/
My second question is how to collide player with map layers like in this image http://opengameart.org/sites/default/files/archive/tiled-qt-screenshot-3.png
Thanks alot for answers..
Hello from Czech Republic, Kenny
Comments
For the player movement you could use a code that looks like that:
This code will probably be in a registered callback.
For this to work you have to define
keyTracker: true
in the option for your playground.