+atari2600land Posted January 26, 2021 Share Posted January 26, 2021 I have an idea for a game that involves the gun. I have the gun, I have a CRT TV, I have an Atari 2600. I want to make a game for the Atari 2600 using the gun. My question is: Have any of the coding gurus out there ever find out a way to detect hits with it? I'm looking for some sample code to start from. I searched this forum and all I got was this topic about how they don't work with LCDs. Any help would be greatly appreciated. Quote Link to comment Share on other sites More sharing options...
+Karl G Posted January 26, 2021 Share Posted January 26, 2021 Here's a post that has a bit of sample code: 1 Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted January 27, 2021 Author Share Posted January 27, 2021 I did this. Fire at the screen to get past the title screen. The red dot indicates where you hit the screen. I should probably have this part in so people can get a feel for it. What say you? flies3.bin Quote Link to comment Share on other sites More sharing options...
Swami Posted January 27, 2021 Share Posted January 27, 2021 17 minutes ago, atari2600land said: I did this. Fire at the screen to get past the title screen. The red dot indicates where you hit the screen. I should probably have this part in so people can get a feel for it. What say you? flies3.bin 2 kB · 1 download Bobby Needs Food is a 2600 homebrew, so there may be source code for that around. If you can, I would suggest a calibration routine at the beginning, i.e., shoot at a spot at three corners 3x each and center 3x and adjust aim for it. Apparently, Atari never bothered with this. Quote Link to comment Share on other sites More sharing options...
Swami Posted January 27, 2021 Share Posted January 27, 2021 1 hour ago, atari2600land said: I did this. Fire at the screen to get past the title screen. The red dot indicates where you hit the screen. I should probably have this part in so people can get a feel for it. What say you? flies3.bin 2 kB · 1 download Here you go. asm source inside the folder. I think this may have a small bug, but the gun source code should be good. Lightgun goes in port 2 for this one. bnf12.zip Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted January 27, 2021 Author Share Posted January 27, 2021 Thanks. I added some more stuff to my game. Next time I feel up to it I will start working on putting a fly to shoot in it. flies4.bin Quote Link to comment Share on other sites More sharing options...
Swami Posted January 27, 2021 Share Posted January 27, 2021 6 minutes ago, atari2600land said: Thanks. I added some more stuff to my game. Next time I feel up to it I will start working on putting a fly to shoot in it. flies4.bin 2 kB · 1 download Odd. No lightgun emulation options in Stella. Thought they might use the mouse. Quote Link to comment Share on other sites More sharing options...
alex_79 Posted January 27, 2021 Share Posted January 27, 2021 Stella emulates the lightgun just fine using a mouse and autodetects it correctly with the above rom, so you don't have to configure it. Anyway, if using a regular mouse, you need to enable the cursor visibility in the [Mouse] tab of [Input] settings, else you won't see where you're aiming. You can keep the cursor disabled if you use e.g. a wiimote as a pointing device, so to recreate the lightgun experience more faithfully. Quote Link to comment Share on other sites More sharing options...
Swami Posted January 27, 2021 Share Posted January 27, 2021 I needed to update my version Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted January 28, 2021 Author Share Posted January 28, 2021 I give up. I can't make any sprite appear on the screen. Quote Link to comment Share on other sites More sharing options...
+McCallister Posted January 28, 2021 Share Posted January 28, 2021 Interesting project. I just tried it out with a light gun and crt and was able to move the square around the tv, depending on where I was aiming the light gun. Quote Link to comment 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.