Skip to content

Commit

Permalink
Update Ceiling Zero.rascript
Browse files Browse the repository at this point in the history
  • Loading branch information
pinguupinguu committed Aug 14, 2023
1 parent 5c27589 commit 78ea142
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions Apple II/Ceiling Zero.rascript
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// Ceiling Zero
// #ID = 25365

function lives() => byte(0x000054)
function level() => byte(0x00005a)
function score() => word(0x000069)
function clear_lvl(a, b) => prev(level()) == a && level() == b
level_names = {
0:"Shooting Novice",
Expand Down Expand Up @@ -55,4 +56,19 @@ achievement(
points=25,
trigger=
clear_lvl(0x0, 0x15)
)
)
achievement(
"Zero Deaths, Zero Ceilings",
"Starting from Ceiling Level 15, win the game without losing a life",
points=50,
trigger=
lives() == 3 &&
score() >= 0x10 &&
trigger_when(clear_lvl(0x0, 0x15))
)

rich_presence_conditional_display(score() >= 0x10, "Playing on Ceiling Level {0} Score: {1}",
rich_presence_macro("Number", bcd(level())),
rich_presence_macro("Number", bcd(score()))
)
rich_presence_display("In Menu")

0 comments on commit 78ea142

Please sign in to comment.