I Made a Pong Thing

Discussion of development of software for any "obsolete" computer or video game system. See the WSdev wiki and ObscureDev wiki for more information on certain platforms.
User avatar
nicklausw
Posts: 376
Joined: Sat Jan 03, 2015 5:58 pm
Location: ...

I Made a Pong Thing

Post by nicklausw »

You can find it in my signature, or here's just the link: http://www.smspower.org/Homebrew/Pong-SMS

I'm thinking about making Pong on the GB to make all the Nintendo peeps happy, but while Z80 ain't hard (as proven by the game this thread is about,) I just don't get how the Gameboy works for the life of me.

(If anyone was ever to write tutorials for the GB which target WLA, I'd make out with you. Or at least give you a hug. Or a handshake. Or a thank-you. Yeah, prolly the last one.)
tepples
Posts: 22993
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)

Re: I Made a Pong Thing

Post by tepples »

Can the SMS continuously read the Light Phaser's photodiode?
lidnariq
Site Admin
Posts: 11803
Joined: Sun Apr 13, 2008 11:12 am

Re: I Made a Pong Thing

Post by lidnariq »

Had you found http://www.stellae.fr/classicvg/ yet?
They've got two WLA-based demos and one SDCC-based one.
User avatar
nicklausw
Posts: 376
Joined: Sat Jan 03, 2015 5:58 pm
Location: ...

Re: I Made a Pong Thing

Post by nicklausw »

lidnariq wrote:Had you found http://www.stellae.fr/classicvg/ yet?
They've got two WLA-based demos and one SDCC-based one.
Thankya so much. I can't stand RGBDS, it seems like every piece of code I see written for it is always just...sloppy.
User avatar
nicklausw
Posts: 376
Joined: Sat Jan 03, 2015 5:58 pm
Location: ...

Re: I Made a Pong Thing

Post by nicklausw »

tepples wrote:Can the SMS continuously read the Light Phaser's photodiode?
......Explain?
lidnariq
Site Admin
Posts: 11803
Joined: Sun Apr 13, 2008 11:12 am

Re: I Made a Pong Thing

Post by lidnariq »

I'd guess tepples is hoping to recreate ZapPing for the SMS. Possibly with two axes, if the SMS lightgun doesn't have the same demodulator that the NES does.
User avatar
nicklausw
Posts: 376
Joined: Sat Jan 03, 2015 5:58 pm
Location: ...

Re: I Made a Pong Thing

Post by nicklausw »

What do you mean photodiode, though?
lidnariq
Site Admin
Posts: 11803
Joined: Sun Apr 13, 2008 11:12 am

Re: I Made a Pong Thing

Post by lidnariq »

The light gun for all these older consoles is basically a one-pixel camera ... the sensor they use is a photodiode.
User avatar
nicklausw
Posts: 376
Joined: Sat Jan 03, 2015 5:58 pm
Location: ...

Re: I Made a Pong Thing

Post by nicklausw »

From what I can tell of a document from SMSPower, the registers $7e and $7f can constantly be read for the pixel. Vertical (?) and horizontal, respectively.

EDIT: It seems not so, if you're trying to put a trigger on the screen...looks like the ports can only be read when the trigger is actually fired, from what the games that use it depict.
Sik
Posts: 1589
Joined: Thu Aug 12, 2010 3:43 am

Re: I Made a Pong Thing

Post by Sik »

I thought SMS games went into a loop constantly reading the lightgun until it registered a hit, then checked the beam counter value at that position? (better than the NES that doesn't even have a counter) In any case you should be able to read its value constantly as far as I know.
User avatar
nicklausw
Posts: 376
Joined: Sat Jan 03, 2015 5:58 pm
Location: ...

Re: I Made a Pong Thing

Post by nicklausw »

Sik wrote:I thought SMS games went into a loop constantly reading the lightgun until it registered a hit, then checked the beam counter value at that position? (better than the NES that doesn't even have a counter) In any case you should be able to read its value constantly as far as I know.
That sounds about right. You can read the trigger value all the time, but reading the coordinates of the gun is a different story; pretty sure they're only properly registered at a hit.

To be honest, I'm not the person to ask. If anyone is really curious about it, there's plenty of "enthusiasts" you can ask over at http://www.smspower.org/forums/f3-Development
User avatar
nicklausw
Posts: 376
Joined: Sat Jan 03, 2015 5:58 pm
Location: ...

Re: I Made a Pong Thing

Post by nicklausw »

Update: although I did this a little while ago, Pong is on GitHub. Think the link in my signature is broken...

My main project now: Sudoku. Wish me luck. So far a bunch of random numbers between 1 and 9 are on a grid, just need to do things from there?
User avatar
nicklausw
Posts: 376
Joined: Sat Jan 03, 2015 5:58 pm
Location: ...

Re: I Made a Pong Thing

Post by nicklausw »

(The wonderful triple post, I know).

Anyone else had to deal with plain frustrating loss of data? As it appears my nearly finished port of this game to the nes has been destroyed. Great.

Whatever, I've been getting sick of Pong anyway. (I'll stop complaining now).
tepples
Posts: 22993
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)

Re: I Made a Pong Thing

Post by tepples »

PROTIP: Daily backups to Dropbox help.
User avatar
tokumaru
Posts: 12668
Joined: Sat Feb 12, 2005 9:43 pm
Location: Rio de Janeiro - Brazil

Re: I Made a Pong Thing

Post by tokumaru »

tepples wrote:PROTIP: Daily backups to Dropbox help.
Daily backups anywhere help. I use Google Drive most of the time.