HTML5 Game Development with Phaser Lesson 2 - Importing sprites

in #utopian-io7 years ago (edited)

In this series of lessons, we are going to code our first HTML5 / Javascript game, using the Phaser library.

In the first lesson we learned to import the Phaser library and set up the dimensions of our level. We also explained the three main functions that will make up our game.

In this lesson, to start off we will load some images into the game, and give them each a name for future referral. We then insert each image as sprites onto our level as either a tiled background or as a player sprite to specified coordinates.

The source code for this lesson (and subsequent lessons as they are uploaded) can be viewed on Github at:
https://github.com/Bulletproofmonk/PhaserGameTutorial

Link to previous lessons:


For more tutorials by the Magic Monk, visit http://magicmonk.org

1000+ Tutorial Videos
9+ Million Views
20,000+ Subscribers



Posted on Utopian.io - Rewarding Open Source Contributors

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 @drigweeu. Much appreciated.

Alright I'm following, I used to use Phaser and things went well but they could've been better. I think the reason I stopped was horrendous frame rates even though I barely used any resources. Would be nice to jump back in, so keep posting these :D

Thank you so much @atherz. I've seen some pretty intense games made with Phaser, so it might have been something that could be fixed. Cheers.

@magicmonk,我想加入teamaustralia,怎么弄?望指点

我在悉尼,哈哈

hi @bobdos. If you read this article, it will tell you the exact instructions for joining.
https://steemit.com/teamaustralia/@choogirl/team-australia-new-recruits-update-19-12-17-and-the-brisbane-meet-up-30-december-2017
Search for: "The rules for joining Team Australia
If you’re not yet a member and want to be, this is what you need to do:"

thanks a lot!!

Wow amazing video. Very informative! :)

Thank you so much @sweetcarol.

Good friend

Interesting work. resteemed 😬

thanks mate

Coin Marketplace

STEEM 0.21
TRX 0.20
JST 0.034
BTC 91311.22
ETH 3141.56
USDT 1.00
SBD 2.97