Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
HTML5 Game Development with GameMaker

You're reading from   HTML5 Game Development with GameMaker Experience a captivating journey that will take you from creating a full-on shoot 'em up to your first social web browser game

Arrow left icon
Product type Paperback
Published in Apr 2013
Publisher Packt
ISBN-13 9781849694100
Length 364 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Jason Lee Elliott Jason Lee Elliott
Author Profile Icon Jason Lee Elliott
Jason Lee Elliott
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

HTML5 Game Development with GameMaker
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Getting to Know the Studio with Your First Game 2. Triple 'A' Games: Art and Audio FREE CHAPTER 3. Shoot 'em Up: Creating a Side-scrolling Shooter 4. The Adventure Begins 5. Platform Fun 6. Toppling Towers 7. Dynamic Front Ends 8. Playing with Particles 9. Get Your Game Out There Index

Building the demolition equipment


We have everything we need to build towers, but this game is all about demolition. The player would become bored if all they had was TNT to destroy the towers. We are going to utilize some more physics functions and create some new equipment: a Wrecking Ball and a Magnetic Crane.

Creating a Wrecking Ball

Let's start with the Wrecking Ball as we have already built a large portion of it. We will utilize the Chain and Anchor and add a Ball to it.

  1. Create a new Sprite, spr_WreckingBall, and load Chapter 6/Sprites/WreckingBall.png with Remove Background checked. Center the origin and click on OK.

  2. Create a new Object, obj_WreckingBall, and apply the spr_WreckingBall as its Sprite.

  3. We will want the Wrecking Ball to always be drawn in front of the chain that holds it. Set Depth to -100.

  4. Check the box for Uses Physics. We do not need to change Collision Shape, as the Wrecking Ball is a circle.

  5. We want this Wrecking Ball to be very powerful, so set Density to 50.

  6. As it is...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image