View Single Post
  #20    
Old August 27th, 2011 (06:51 AM).
Full Metal's Avatar
Full Metal Full Metal is offline
C(++) Developer.
Silver Tier
 
Join Date: Jan 2008
Location: In my mind.
Age: 19
Gender: Male
Nature: Timid
Posts: 805
Send a message via Windows Live Messenger to Full Metal
^ And furthermore, I believe the bandwidth for the accessory port on the GBA is tiny. Maybe 4 bytes, if I remember correctly. So you'd be re-inventing P2P.
Send Header ( 2 bytes ) "Move Change" New ( relative ) XY position ( 2 bytes )
Send Header ( 2 bytes ) "BattleReq" - trainerID ( 2 bytes )
Send Header ( 2 bytes ) "Accept" - trainerID ( 2 bytes ) #global. the one with that trainerID is listening for this after a "BattleReq" or something is sent.
Send Header ( 2 bytes ) "TradeReq" - trainerID
Send Header ( 2 bytes ) "Leave" - trainerID
Send Header ( 2 bytes ) "Enter" - OW type

trainerID is just the order in which player's entered the area.
So basically, you would still need to sync the games ( like they do in the pokecenter )
Then every 1/60th of a second, check for any headers. If there are any that apply to your game, then apply them. However, I see one problem with this: You have more than 1 person. IDK How that would work. Would one message overwrite the other? [ I still have yet to do any actual research on this ]. And in general, it would just be fairly disappointing.
__________________

★ full metal.

I like to push it,
and push it,
until my luck is over.
Reply With Quote