O'Reilly logo

Practical GameMaker Projects: Build Games with GameMaker Studio 2 by Ben Tyers

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© Ben Tyers 2018
Ben TyersPractical GameMaker Projectshttps://doi.org/10.1007/978-1-4842-3745-8_10

10. Tower Defense

Ben Tyers1 
(1)
Worthing, West Sussex, UK
 

This final game will put into practice everything you have learned so far, plus it will introduce a few more elements.

In this game, you will shoot and damage the enemy from turrets. You can place, buy, sell, and upgrade the turrets.

So that you can test the game at various points, you will start by creating the rooms. They are
  • room_splash

  • room_start

  • room_level_1

  • room_level_2

  • room_level_3

  • room_level_4

  • room_win

  • room_gameover

All of the rooms are 800 x 800 in size.

This game makes use of five scripts. The first is scr_menu_info , which sets the sub-image and draws text depending on whether ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required