Author Topic: Sample Game  (Read 4487 times)

Tanja

  • Clever
  • Fanatic
  • ***
  • Posts: 606
    • View Profile
Sample Game
« on: 2008-01-19, 02:24:11 PM »
i looked into the sample game at the menu and there is one point i do not understand.
i've read the rules, and these are easy. the only thing i really don't understand is, how do the yellow arrows change their position when the player presses up and down?
there is a counter which keeps track of at what menu point you are. but where is the rest? these yellow arrows confuse me...

durnurd

  • Lead Lemming
  • Expert
  • Fanatic
  • *****
  • Posts: 1234
  • Games completed so far: 0
    • MSN Messenger - durnurd@hotmail.com
    • View Profile
    • Find My Ed
Re: Sample Game
« Reply #1 on: 2008-01-19, 05:05:27 PM »
Each arrow is a separate tile.  The frames in the tile are defined as ABB, BAB, BBA (I think... if there are three of them.  Can't remember).  A is the frame with the graphic, and B is a black (blank) frame.

Each tile is defined to be controlled by the counter.  Thus, if the counter is at 0, the first tile is on A, while the other two are on B.  When the counter is at 1, each tile moves to frame 1 of its "animation", so the first tile is on B, the second is on A, and the third is on B, and so on.
Edward Dassmesser

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: Sample Game
« Reply #2 on: 2008-01-19, 07:55:35 PM »
To put it briefly, the arrow is based on 3 animated tiles connected to a counter affected by the arrow keys.

Tanja

  • Clever
  • Fanatic
  • ***
  • Posts: 606
    • View Profile
Re: Sample Game
« Reply #3 on: 2008-01-20, 02:44:32 AM »
thank you guys. now i looked again. these mapped tiles are at the end of the list, there didn't look because there were already yellow arrows further up.
this is a quite clever method.