Erik Zimmermann Posted February 11, 2022 Share Posted February 11, 2022 Hello, In the games in Laser Blast or in Missile Command, players fire a laser beam. A sprite is a maximum of 8 pixels wide. How do you generate a laser beam it? Bye Erik Quote Link to comment https://forums.atariage.com/topic/331156-how-to-create-a-laser-like-in-laser-blast-or-missile-command/ Share on other sites More sharing options...
+SpiceWare Posted February 11, 2022 Share Posted February 11, 2022 Using Stella's Fixed Debug Colors mode can help you figure out how things were drawn in a game. It uses preset colors to draw everything: You can toggle this mode pressing the <ALT> and <.> keys on Linux or windows, or the <COMMAND> and <.> keys on a Mac. By using those colors we can see that player's ship is drawn using P0 (player 0) while the player's laser is drawn using M0 (missile 0) and in this screenshot we can see the enemy are drawn using P1 (player 1) while their laser is drawn using M1 (missile 1) So both are drawn using a 1 pixel wide missile. The secret is the missiles' X positions are shifted on some scanlines. This is accomplished by the HM (HMOVE, aka horizontal movement) on the left of almost every scanline. This is a more advanced 2600 technique, I don't know if bB supports it. Assembly would let you do that. You might find my tutorial useful in that regard, it covers the development of a 2K game. 1 Quote Link to comment https://forums.atariage.com/topic/331156-how-to-create-a-laser-like-in-laser-blast-or-missile-command/#findComment-5002982 Share on other sites More sharing options...
KevKelley Posted February 11, 2022 Share Posted February 11, 2022 2 hours ago, SpiceWare said: This is a more advanced 2600 technique, I don't know if bB supports it. It this interesting! I had always been curious about HMOVE and assembly and making that kind of effect. Quote Link to comment https://forums.atariage.com/topic/331156-how-to-create-a-laser-like-in-laser-blast-or-missile-command/#findComment-5003053 Share on other sites More sharing options...
+Random Terrain Posted February 11, 2022 Share Posted February 11, 2022 Below are two related posts. We had hope in 2008, but that hope balloon was popped in 2010: atariage.com/forums/topic/122024-64k-bb-games/?tab=comments#comment-1483436 On 3/14/2008 at 4:35 PM, batari said: I have what I'm calling "vectors" working in the standard kernel, but need to add compiler support for them. By "vector," I mean you are able to turn a missile into a line or an arc connecting two points, for example like the Pitfall vines. Or you can also use a missile as a "fake player" by varying the width, or you can shift a player object per line to make it look more interesting, like the cows in Stampede or the dolphin in Dolphin. The only drawback to this is the HMOVE "comb" at the left edge of the screen, but there seems to be no way around that. atariage.com/forums/topic/169278-looking-for-a-post-by-batari-about-wriggling-sprites/?tab=comments#comment-2094491 On 9/14/2010 at 4:36 PM, batari said: IIRC, I think I had trouble getting the "wiggling sprites" to fit properly with all of the assembly directives in the standard kernel, and doing something like a vine would have required a ton of data - i.e. a table for every possible frame, as opposed to Pitfall which calculated the vine within the kernel. I tried to implement a calculated vine like that but could not make it work. I'll look into it again someday. 1 Quote Link to comment https://forums.atariage.com/topic/331156-how-to-create-a-laser-like-in-laser-blast-or-missile-command/#findComment-5003091 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.