HTML5 Game Development with Phaser Lesson 4 - Animation with spritesheets
What Will I Learn?
- You will learn how to search for functions in the Phaser Docs Search.
- You will learn how to set the anchor of a sprite to the center of the sprite.
- You will learn how to rotate objects by changing the angle property.
- You will learn how to change the scale of objects.
- You will learn how to insert spritesheets and set the width and height of each frame.
- You will learn how to animate an object by adding and playing animations.
Requirements
Make sure you already have the understanding of the following concepts (which you would have learned in Phaser lessons 1 to 3).
- You are able to import the Phaser library and set up dimensions of a level.
- You are able to import sprites into the game.
- You are able to move an object with arrow keys.
- You have an understanding of the three main functions called in a game.
Difficulty
- Intermediate
You should already have some understanding of Javascript as the Phaser library is built on Javascript.
Description
In this series of lessons, we are going to code our first HTML5 / Javascript game, using the Phaser library. The source code of this lesson (and subsequent lessons as they are uploaded) can be viewed on Github at: https://github.com/Bulletproofmonk/PhaserGameTutorial
Hey @magicmonk I am @utopian-io. I have just upvoted you!
Achievements
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x
Thank you so much :)
Thank you for the contribution. It has been approved.
You can contact us on Discord.
[utopian-moderator]
Thank you so much @ewq!
Nice work. I like how you start the post with nice clear learning outcomes. Do you think you might port some of your videos over to dtube?
hey :) awesome photos in New Zealand. I have posted some videos on Dtube before.
Thanks.
Great Video i leaned alot of new things from your video thnk u for sharing @magicmonk