Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Oct 17, 2014 8:14:19 GMT -5
Has anyone messed around with any of the gun peripherals for the mega drive in bex? I see oompa included a light gun example, but unsure if that will work with the light phaser SMS gun, and I'm doubting the other 2 work with the example included with bex. (I believe he mentioned requiring a circuit for the NES zapper, but unsure if that's for the connection, or if the circuit does something else as well) Any info would be great
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Oct 17, 2014 10:25:57 GMT -5
I see oompa included a light gun example, but unsure if that will work with the light phaser SMS gun, and I'm doubting the other 2 work with the example included with bex. Just tried the example with a Master System Light Phaser and it doesn't do anything ( makes sense ). Would have tried it with a Justifier as well ( in fact i did ), but apparently it died ( used the aim config in Lethal Enforcers to confirm .. screen flashes when i pull the trigger but no hits ). I'll try to fix it and report back in case i managed to get it working again.Update - Nevermind, turns out it ( the Justifier ) was just dusty Anyway, it doesn't work with the example either ( tested & working fine in Lethal Enforcers & Snatcher ).
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Oct 17, 2014 11:42:23 GMT -5
Thanks for testing, moon! It's unfortunate the light phaser didn't work. Do you (or anyone else) have any ideas on how to interface it, or some docs on it? I would like to offer an alternate mode for a game I'm working on, and I think the phaser would be a cool little extra mode to include (it's still pretty cheap to obtain one, where the justifier and menacer are a bit more pricey, at least the last time I checked). From the quick googling I did the other night, it seems the phaser trigger is mapped to button 1 on the SMS, which I'm assuming would be "a" on the controller (unsure if it will work with the joypad() function), but then comes the detection Is it possible to add cross hairs to a light gun, or would that require something like the IR guns?
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Oct 17, 2014 12:28:47 GMT -5
Thanks for testing, moon! It's unfortunate the light phaser didn't work. Do you (or anyone else) have any ideas on how to interface it, or some docs on it? I only have experience with the Light Phaser for Master System homebrew. The gist of how it works is as follows. Detect if the trigger has changed from false to true .. when that is the case set the entire CRAM to white and poll a certain joypad pin / bit while the screen is being drawn. As soon as the bit is set to true ( which means the light phaser has just seen something bright ) you read the scanline and horizontal counters to determine the screen coordinates. In case the entire screen gets drawn without the bit becoming true, the light phaser was not pointed at the screen ( so you can reload or something similar ). From the quick googling I did the other night, it seems the phaser trigger is mapped to button 1 on the SMS, which I'm assuming would be "a" on the controller (unsure if it will work with the joypad() function), but then comes the detection Pulling the trigger on the Light Phaser causes both button A and B to be pressed. Is it possible to add cross hairs to a light gun, or would that require something like the IR guns? Only if your game is bright enough for the light phaser to be able to detect / see any coordinate you point it at ( which is usually not the case* ). *Unless you design your game around this of course .. one of the first Light Phaser things i made was a Wire Loop game ( the wire being bright ), and that worked just fine
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Oct 17, 2014 15:00:10 GMT -5
Anyway, here's a simple example that displays a "crosshair" ( uses a significant amount of damping to filter the noise ) palette rgb(4,4,4),0,0 sprite = addsprite(1,1) propsprite sprite,2,0 on vblank gosub main on extint gosub gun enable interrupt vblank enable interrupt external,1 end main: movesprite sprite, 54+x, 120+y return gun: x = (x << 4 - x + tvscanx()) >> 4 y = (y << 4 - y + tvscany()) >> 4 return
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Oct 17, 2014 15:40:48 GMT -5
I feel like I should be paying you for all the knowledge you've shared over the years, moon, seriously, thank you! Just out of curiosity, would this example also work with the justifier and menacer? (I'm not sure if the receiver is nothing more than a data pass through device so that you can have a wireless gun that would be compatible with all light phaser games, or if it's more complex than that). Unfortunately, that is something I can't test as I don't own either of them. And would this be a similar way to use the 4 player adapters? (I doubt it would be, but it would make sense to me if the ports were wired so the normal 1 and 2 player controllers operate as normal, and during the extint it would ready player 3 and 4's controllers, of course, I always think the more challenging things should work in unrealistic ways )
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Oct 17, 2014 15:53:45 GMT -5
Just out of curiosity, would this example also work with the justifier and menacer? Nope. And would this be a similar way to use the 4 player adapters? Sort of .. kind of .. probably. I don't have any experience with either of the multitaps though ( apart from being aware of the fact that the EA multitap isn't compatible with the one from SEGA ).
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Oct 17, 2014 16:04:50 GMT -5
Yeah, I remember there being issues with the one EA did, and isn't there a model/version of the Sega one that wasn't compatible with EA? I know there's a multitap by Sega that has "EA" mode as one of the options. Maybe I'll buy a multitap and give it a try The worst that can happen is I play 4 player games with some friends instead of 2 at a time
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Oct 17, 2014 20:19:47 GMT -5
|
|
|
Post by jlf65 on Oct 19, 2014 17:19:33 GMT -5
If you want to see how a bunch of taps/controllers/light guns work, look at the code I did for sgdk: code.google.com/p/sgdk/The code for the controllers is all mine, so if someone wants to use it with a different license, just ask. I normally make all my own code MIT or BSD (without advertising clause).
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Oct 19, 2014 19:45:07 GMT -5
Thanks jlf! I'll definitely be reading through those
|
|
|
Post by jlf65 on Oct 22, 2014 1:59:04 GMT -5
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Oct 22, 2014 7:04:48 GMT -5
Awesome I never knew a track ball existed! Knowing this, I'm surprised nobody has made a marble madness type game, or even a bowling game, using the track ball/sports pad. Any idea on working with the 4 player adapters? (Not that I'm even remotely ready to begin messing around with that yet hehe)
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Oct 22, 2014 11:21:44 GMT -5
I'm surprised nobody has made a marble madness type game, or even a bowling game, using the track ball/sports pad. The Japanese version ( by Tengen ) of Marble Madness apparently supports the SEGA Sports Pad ( and SEGA Mouse ).
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Oct 22, 2014 11:47:24 GMT -5
I'm surprised nobody has made a marble madness type game, or even a bowling game, using the track ball/sports pad. The Japanese version ( by Tengen ) of Marble Madness apparently supports the SEGA Sports Pad ( and SEGA Mouse ). Ha. I never knew about that game (or the sega mouse!) This is all really fascinating to see all these peripherals that were created and sold that I completely missed when growing up. I knew of the light guns and 4 player adapters, and the SMS 3d glasses, but never knew about the mouse and trackball. I believe there's also a mallet and board for some whack a mole style game (I believe it's an Australian exclusive?).
|
|