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_4

4. Rock, Paper, Scissors

Ben Tyers1 
(1)
Worthing, West Sussex, UK
 

This chapter is a remake of the classic game of Rock, Paper, Scissors. This chapter will reinforce what you learned in the first three chapters and will introduce new concepts and coding.

This game has a very basic AI system that randomly allows the computer to choose either rock, paper, or scissors. The aim of this game is to outwit the computer by making a play that defeats it.

This game uses just three sprites:
  • spr_rock

  • spr_paper

  • spr_scissors

Load them in now and set the origin of each to middle center.

This game uses four sounds:
  • snd_arr

  • snd_ouch

  • snd_prefect

  • snd_yeah

You can go ahead ...

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