diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-05-11 23:00:53 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-05-11 23:00:53 +0100 |
commit | 6fafe08b7dc884960582d272d35650d1c9dfdf87 (patch) | |
tree | 330b1b958428c9e01463543490d31bc6c9cb471a /game/starfield.asm | |
parent | 681ba9adf948ebdc909b08979c76251053af7a9e (diff) | |
download | tr8vm-6fafe08b7dc884960582d272d35650d1c9dfdf87.tar.gz tr8vm-6fafe08b7dc884960582d272d35650d1c9dfdf87.zip |
Add some randomness
Diffstat (limited to 'game/starfield.asm')
-rw-r--r-- | game/starfield.asm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/game/starfield.asm b/game/starfield.asm index e8b8ed1..ac8fe32 100644 --- a/game/starfield.asm +++ b/game/starfield.asm @@ -40,6 +40,16 @@ stars_update_addr: cmp y, 0x80 bc ld b, 0xbf + + ; add some randomness + push a + push x + push b + call rnd + pop b + pop x + pop a + stars_no_wrap: dec x bnz |