HTML5 Game Development with Phaser Lesson 4 - Animation with spritesheets

in #utopian-io8 years ago (edited)

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

Video Tutorial

Sort:  

Hey @magicmonk I am @utopian-io. I have just upvoted you!

Achievements

  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

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.

Great Video i leaned alot of new things from your video thnk u for sharing @magicmonk

Coin Marketplace

STEEM 0.04
TRX 0.33
JST 0.096
BTC 62241.92
ETH 1746.30
USDT 1.00
SBD 0.39