Clean up slot drawing
Fix typos
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#ifndef GUARD_CONSTANTS_SLOT_MACHINE_H
|
#ifndef GUARD_CONSTANTS_SLOT_MACHINE_H
|
||||||
#define GUARD_CONSTANTS_SLOT_MACHINE_H
|
#define GUARD_CONSTANTS_SLOT_MACHINE_H
|
||||||
|
|
||||||
#define NUM_REELS 3
|
#define NUM_REELS 3
|
||||||
#define REEL_NUM_TAGS 21
|
#define REEL_NUM_TAGS 21
|
||||||
#define REEL_TAG_HEIGHT 24
|
#define REEL_TAG_HEIGHT 24
|
||||||
#define SLOT_MACHINE_COUNT 12
|
#define SLOT_MACHINE_COUNT 12
|
||||||
|
|||||||
+9
-5
@@ -1727,14 +1727,18 @@ static bool8 AwardPayoutAction_FreeTask(struct Task *task)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the tag at position `offset` below the top of the reel window
|
// Get the tag at position `offset` below the top of the reel's tape. Note that
|
||||||
|
// if `offset` is negative, it wraps around to the bottom of the tape.
|
||||||
// .-----------------.
|
// .-----------------.
|
||||||
// | 7RD | 7RD | 7RD | <- offset = 0
|
// | [ ] | [ ] | [ ] | <- offset = 0
|
||||||
// /-----|-----|-----\
|
// /-----|-----|-----\
|
||||||
// screen -> | CHY | CHY | POW | <- offset = 1
|
// screen -> | [ ] | [ ] | [ ] | <- offset = 1
|
||||||
// | AZU | REP | 7BL | <- offset = 2
|
// | [ ] | [ ] | [ ] | <- offset = 2
|
||||||
// | REP | LOT | REP | <- offset = 3
|
// | [ ] | [ ] | [ ] | <- offset = 3
|
||||||
// \-----|-----|-----/
|
// \-----|-----|-----/
|
||||||
|
// | ... | ... | ... |
|
||||||
|
// | [ ] | [ ] | [ ] | <- offset = 20
|
||||||
|
// .-----------------.
|
||||||
static u8 GetTagAtRest(u8 reel, s16 offset)
|
static u8 GetTagAtRest(u8 reel, s16 offset)
|
||||||
{
|
{
|
||||||
s16 pos = (sSlotMachine->reelPositions[reel] + offset) % REEL_NUM_TAGS;
|
s16 pos = (sSlotMachine->reelPositions[reel] + offset) % REEL_NUM_TAGS;
|
||||||
|
|||||||
Reference in New Issue
Block a user