chore: version Zelda 1 port and engineering records
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { WorldFlags } from @zelda1:world;
|
||||
declare service WallLinkChecks {
|
||||
fn place(x: int,y: int,facing: int) -> void { controller.place_for_stage(state,x,y,facing,true); vitals.reset(); }
|
||||
fn phases() -> bool {
|
||||
Link.start_game(); WorldFlags.reset();
|
||||
for phase: int from 0 until 5 {
|
||||
if phase!=3 { bomb0.x=64; bomb0.y=77; bomb0.phase=phase; bomb0.timer=10; Link.update(false,false,false,false,false); let opened=WorldFlags.secret_found(119); if opened { return false; } }
|
||||
}
|
||||
bomb0.x=80; bomb0.y=77; bomb0.phase=3; bomb0.timer=10;
|
||||
bomb1.x=64; bomb1.y=77; bomb1.phase=3; bomb1.timer=10;
|
||||
Link.update(false,false,false,false,false); let opened=WorldFlags.secret_found(119); if opened { return false; }
|
||||
bomb0.reset(); Link.update(false,false,false,false,false); let opened_after=WorldFlags.secret_found(119); if !opened_after { return false; }
|
||||
Link.start_game(); WorldFlags.reset(); return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user