From 23185b8045128a477cdd3d95b699aced20fc7002 Mon Sep 17 00:00:00 2001 From: Cat's Eye Technologies Date: Sat, 12 Apr 2014 21:20:45 +0100 Subject: [PATCH] Work on game a bit. Multiple actors. --- eg/game.60p | 111 +++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 80 insertions(+), 31 deletions(-) diff --git a/eg/game.60p b/eg/game.60p index 442f972..4f2dcd0 100644 --- a/eg/game.60p +++ b/eg/game.60p @@ -29,6 +29,12 @@ reserve word compare_target reserve byte[16] actor_pos_hi reserve byte[16] actor_pos_lo +reserve vector dispatch_state + +reserve byte[18] press_fire_msg: "PRESS FIRE TO PLAY" + +reserve byte save_x // TODO: SHOULD BE BLOCK LOCAL! + routine calculate_new_position outputs (new_position) { clc lda position - lda actor_pos_lo, y - sta position - sta actor_pos_hi, y - lda position + lda actor_pos_lo, x + sta position + sta actor_pos_hi, x + lda