Skip to Main Content
Practical GameMaker Projects: Build Games with GameMaker Studio 2
book

Practical GameMaker Projects: Build Games with GameMaker Studio 2

by Ben Tyers
July 2018
Beginner to intermediate content levelBeginner to intermediate
258 pages
4h 38m
English
Apress
Content preview from Practical GameMaker Projects: Build Games with GameMaker Studio 2
© Ben Tyers 2018
Ben TyersPractical GameMaker Projectshttps://doi.org/10.1007/978-1-4842-3745-8_3

3. Snake

Ben Tyers1 
(1)
Worthing, West Sussex, UK
 

In this chapter, you will make a basic Snake game. Doing so will introduce you to using sounds and music as well as some important programming fundamentals such as enums and sprite manipulation. It will also build upon and reinforce what you learned in Chapters 1 and 2.

The aim of this game is to eat as much food as possible, without hitting the red blocks or any part of your tail.

Create a new GML project and name it Snake.

This game uses just five sprites. You can load them in now. The origin of all sprites is middle center. They are
  • spr_head

  • spr_block

  • spr_trial

  • spr_food

  • spr_bg

This game also uses ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Game Development with GameMaker Studio 2: Make Your Own Games with GameMaker Language

Game Development with GameMaker Studio 2: Make Your Own Games with GameMaker Language

Sebastiano M. Cossu

Publisher Resources

ISBN: 9781484237458Purchase LinkPublisher Website