It is currently Sat Dec 16, 2017 6:18 am

All times are UTC - 7 hours





Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: I Made a Pong Thing
PostPosted: Tue Apr 07, 2015 3:36 pm 
Offline
User avatar

Joined: Sat Jan 03, 2015 5:58 pm
Posts: 368
Location: ...
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.)


Top
 Profile  
 
 Post subject: Re: I Made a Pong Thing
PostPosted: Tue Apr 07, 2015 3:49 pm 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19348
Location: NE Indiana, USA (NTSC)
Can the SMS continuously read the Light Phaser's photodiode?


Top
 Profile  
 
 Post subject: Re: I Made a Pong Thing
PostPosted: Tue Apr 07, 2015 3:55 pm 
Offline

Joined: Sun Apr 13, 2008 11:12 am
Posts: 6534
Location: Seattle
Had you found http://www.stellae.fr/classicvg/ yet?
They've got two WLA-based demos and one SDCC-based one.


Top
 Profile  
 
 Post subject: Re: I Made a Pong Thing
PostPosted: Tue Apr 07, 2015 4:29 pm 
Offline
User avatar

Joined: Sat Jan 03, 2015 5:58 pm
Posts: 368
Location: ...
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.


Top
 Profile  
 
 Post subject: Re: I Made a Pong Thing
PostPosted: Tue Apr 07, 2015 4:29 pm 
Offline
User avatar

Joined: Sat Jan 03, 2015 5:58 pm
Posts: 368
Location: ...
tepples wrote:
Can the SMS continuously read the Light Phaser's photodiode?

......Explain?


Top
 Profile  
 
 Post subject: Re: I Made a Pong Thing
PostPosted: Tue Apr 07, 2015 4:46 pm 
Offline

Joined: Sun Apr 13, 2008 11:12 am
Posts: 6534
Location: Seattle
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.


Top
 Profile  
 
 Post subject: Re: I Made a Pong Thing
PostPosted: Tue Apr 07, 2015 4:50 pm 
Offline
User avatar

Joined: Sat Jan 03, 2015 5:58 pm
Posts: 368
Location: ...
What do you mean photodiode, though?


Top
 Profile  
 
 Post subject: Re: I Made a Pong Thing
PostPosted: Tue Apr 07, 2015 4:55 pm 
Offline

Joined: Sun Apr 13, 2008 11:12 am
Posts: 6534
Location: Seattle
The light gun for all these older consoles is basically a one-pixel camera ... the sensor they use is a photodiode.


Top
 Profile  
 
 Post subject: Re: I Made a Pong Thing
PostPosted: Tue Apr 07, 2015 4:57 pm 
Offline
User avatar

Joined: Sat Jan 03, 2015 5:58 pm
Posts: 368
Location: ...
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.


Top
 Profile  
 
 Post subject: Re: I Made a Pong Thing
PostPosted: Tue Apr 07, 2015 5:35 pm 
Offline

Joined: Thu Aug 12, 2010 3:43 am
Posts: 1589
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.


Top
 Profile  
 
 Post subject: Re: I Made a Pong Thing
PostPosted: Tue Apr 07, 2015 6:01 pm 
Offline
User avatar

Joined: Sat Jan 03, 2015 5:58 pm
Posts: 368
Location: ...
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


Top
 Profile  
 
 Post subject: Re: I Made a Pong Thing
PostPosted: Sat Apr 11, 2015 7:28 am 
Offline
User avatar

Joined: Sat Jan 03, 2015 5:58 pm
Posts: 368
Location: ...
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?


Top
 Profile  
 
 Post subject: Re: I Made a Pong Thing
PostPosted: Sat Jun 13, 2015 12:53 pm 
Offline
User avatar

Joined: Sat Jan 03, 2015 5:58 pm
Posts: 368
Location: ...
(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).


Top
 Profile  
 
 Post subject: Re: I Made a Pong Thing
PostPosted: Sat Jun 13, 2015 3:31 pm 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19348
Location: NE Indiana, USA (NTSC)
PROTIP: Daily backups to Dropbox help.


Top
 Profile  
 
 Post subject: Re: I Made a Pong Thing
PostPosted: Sat Jun 13, 2015 3:42 pm 
Offline
User avatar

Joined: Sat Feb 12, 2005 9:43 pm
Posts: 10165
Location: Rio de Janeiro - Brazil
tepples wrote:
PROTIP: Daily backups to Dropbox help.

Daily backups anywhere help. I use Google Drive most of the time.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group