HTML5 Game Development with Phaser Lesson 7 - Firing bullets

in #utopian-io8 years ago (edited)

What Will I Learn?

  • You will learn how to set the velocity of the bullet shot by the player.
  • You will learn how to set the angle of the bullet to be the same as the angle of the player.
  • You will learn how to increase the time between each bullet so not too many bullets are shot at once.

Requirements

  • Any text editor, preferably one with syntax highlighting for HTML & CSS (e.g. Adobe Dreamweaver, Notepad ++).
  • Any web browser (preferably Google Chrome).
  • I used the Windows operating system but you should be able to do this in Mac.
  • You can test your files locally or you can upload to a server and test. If you want to upload to a server, you will need Web hosting as well as an FTP client to upload files (Adobe Dreamweaver has FTP functionality built in).
  • You need to have downloaded Phaser (this was explained in lesson 1).

Difficulty

  • Intermediate
    You should already have some understanding of Javascript as the Phaser library is built on Javascript. You should already have done the previous tutorials in Phaser.

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:  

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Hey @ewq, I just gave you a tip for your hard work on moderation. Upvote this comment to support the utopian moderators and increase your future rewards!

thank you so much!

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 utopian!!

I am glad to see HTML 5 tutorials - the final death blow to Flash. I will run through this over the weekend.

Thanks so much for posting these!

no problem :) thank you :)

Nice post @magicmonk
Thanks for information

Coin Marketplace

STEEM 0.04
TRX 0.32
JST 0.081
BTC 60794.22
ETH 1603.88
USDT 1.00
SBD 0.47