Skip to content

Commit 32b4a69

Browse files
committed
update enhanced HUD to show when the orange car is mad
1 parent 873faa0 commit 32b4a69

File tree

2 files changed

+38
-3
lines changed

2 files changed

+38
-3
lines changed

RCProAm/README.md

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,38 @@
11
R.C. Pro-Am Enhanced HUD
22
========================
3-
The script is for FCEUX.
3+
This FCEUX Lua script provides an enhanced HUD for R.C. Pro-Am.
44

55
Screenshot
66
==========
77
![R.C. Pro-Am Enhanced HUD](./screenshot.png)
88

99
Explanation
1010
===========
11-
asdfghjkl
11+
The HUD replaces a number of items with more detailed counterparts.
12+
13+
Lap Counter
14+
-----------
15+
The lap counter has been expanded to show what lap each car is on.
16+
`#L` represents the number of laps in the race.
17+
18+
Level Display
19+
-------------
20+
The level display now includes the base track design. `LV:##` is the level
21+
number as displayed by the game, and `T:#` is the actual track design.
22+
23+
Orange Car Danger Alert
24+
-----------------------
25+
One thing to watch out for in R.C. Pro-Am is the orange car. If you manage to
26+
destroy 10 cars with weapons, the orange car will go extremely fast.
27+
28+
The counter just below the race screen lets you know how many cars have been
29+
killed (`DANGER: ##`) or if the orange car is angry (`ORANGE CAR MAD`).
30+
31+
Speed
32+
-----
33+
The speedometer now shows the current and maximum speeds for each car.
34+
35+
To-Do
36+
=====
37+
* Show the number of continues on the continue screen
38+
* Other things???

RCProAm/playerstats.lua

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ Labels = {
1515
Upgrade_Tire = 0x0453,
1616
Upgrade_Accel = 0x0454,
1717
Upgrade_Engine = 0x0455,
18+
CurAmmo = 0x0459,
19+
NumContinues = 0x045B,
1820
Checkpoint_Red = 0x053C,
1921
Checkpoint_Green = 0x053D,
2022
Checkpoint_Orange = 0x053E,
@@ -35,10 +37,16 @@ Labels = {
3537
MaxSpeed_Green = 0x0605,
3638
MaxSpeed_Orange = 0x0606,
3739
MaxSpeed_Blue = 0x0607,
40+
OrangeCarIsMad = 0x061A,
3841
}
3942

4043
local function DrawOrangeCarCounter()
41-
gui.text(198,169,string.format("DANGER: %02d",memory.readbyte(Labels.OrangeCarCounter)),"P26","P0F")
44+
local orangeCarCount = memory.readbyte(Labels.OrangeCarCounter)
45+
if memory.readbyte(Labels.OrangeCarIsMad) > 0 then
46+
gui.text(168,169,"ORANGE CAR MAD","P26","P0F")
47+
else
48+
gui.text(198,169,string.format("DANGER: %02d",orangeCarCount),"P26","P0F")
49+
end
4250
end
4351

4452
local function DrawLapInfo_HUD()

0 commit comments

Comments
 (0)