HTML5 Game Development with Phaser Lesson 5 - Collision Detection with Arcade Physics
What Will I Learn?
- You will learn how to activate the Arcade physics system on specific objects.
- You will learn how to detect collisions between objects.
- You will learn how to write a function to be called upon collision detection.
- You will learn how to destroy objects.
- You will learn how to use nested if statements and else if statements to make an object rotate according to multiple keys pressed.
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
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 @utopian-io !!
Thank you for the contribution. It has been approved.
You can contact us on Discord.
[utopian-moderator]
thank you so much @ewq!!
You are so generous! Thanks for spreading your knowledge! Hope you are having a great weekend! >:D<
haha it's already Monday here :(
oh really great thank you so much for sharing this learnt something new
this is really a great achievement man, i love the spirit
This is a very good tip particularly to those fresh to the Open source coding. Short but very accurate information… Thank you for sharing this one. A must read post!
I could not resist commenting. Perfectly written @magicmonk!!!
thanks mate :)
not mention @magicmonk its my pleasure to learn something interesting and amazing from you . as its a precious gift for us :)