From 638dfdca6e773d4b1ec573606cac90bdb1778667 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Thu, 15 May 2025 22:06:00 +0200 Subject: Initialize enemies at a random Y coordinate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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à --- src/jetpac.s | 1 + 1 file changed, 1 insertion(+) (limited to 'src/jetpac.s') 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" -- cgit v1.2.3