diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-05-15 22:06:00 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-05-16 07:55:56 +0200 |
| commit | 638dfdca6e773d4b1ec573606cac90bdb1778667 (patch) | |
| tree | 73f60ee0aca0c0585f0fd8063ccc7bb31881e543 /src/jetpac.s | |
| parent | 72894d68c4fbd8c2b843afa70244dee3b6241414 (diff) | |
| download | jetpac.nes-638dfdca6e773d4b1ec573606cac90bdb1778667.tar.gz jetpac.nes-638dfdca6e773d4b1ec573606cac90bdb1778667.zip | |
Initialize enemies at a random Y coordinate
The randomness comes from a pre-computed table of "random" numbers. This
is of course the most simple technique you can come across a code base
for the NES/Famicom, but for the purposes of this game is good enough
and (most importantly) fast.
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'src/jetpac.s')
| -rw-r--r-- | src/jetpac.s | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/jetpac.s b/src/jetpac.s index 3b7ac18..6708ed3 100644 --- a/src/jetpac.s +++ b/src/jetpac.s @@ -39,6 +39,7 @@ .include "assets.s" .include "background.s" +.include "prng.s" .include "player.s" .include "bullets.s" .include "enemies.s" |
