This is an old revision of the document!


2D Game Basics

Tasks

Making a 2D memory game

  • Configure a 2D scene for running
  • Add to the scene an image that represents a board (table)
  • Add two images to the scene:
    • one that represents the hidden element
    • one that represents the displayed element
  • Script the displayed element so that the click will hide and the hidden one will be displayed
  • Collect 3 more images for the displayed items
  • Make a game controller (in the scene there must be pairs of elements - so there will be 4 pairs positioned randomly at each run)
    • dynamic change of the image depending on which to write the following
    • dynamic instantiation of a grid of 4 × 4 elements (the first is already instantiated)
    • random positioning of type elements for each element in the scene
    • maintaining the currently selected elements (max. 1 pair is selected)
    • the asynchronous run of the check whether the pair was selected correctly or not
  • maintain and display a score. The score increases when you discover two identical elements.
  • Add a restart game button
pjv/laboratoare/en/02.1571830034.txt.gz · Last modified: 2019/10/23 14:27 by alexandru.gradinaru
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0