Hardware Multiplayer (game)

#1

Hey folks,

For those lucky enough to get their hands on some Arcade hardware (by GHI or Kittenbot) here’s a sample that shows how to do multiplayer between devices! To play the game, load the UF2 on two devices and connect them via the headphone jack.

Please note that the APIs I use here are subject to change. Also, this game cannot be played in the simulator right now (hardware only).

Want to learn more about how it works? Check out JACDAC at https://jacdac.org/ and our recent blog post https://makecode.com/blog/ozette/ozette

5 Likes
#2

Great! Looking forward to an Arduino library.

#3

I’ve got the two hardware devices. MeowBit and BrainPad, I clicked on your link to the MakeCode explanation about using jacdac. I searched for a cable on Google: buy headphone jack to connect two jacdac devices…I clicked your “share” link and get a message “waiting for connection”. I’m trying to put this together so as to explain to parents or teachers how to do mulitplayer. I don’t have hardware that looks anything like what is in the picture.

#4

All you need is a cable with headphone jacks on each end (3.5 mm stereo jacks) and the two boards (meowbit and brainpad should work fine). It’s the same kind of cable you would normally use when connecting to speakers.

The game won’t start until you connect the two devices with that cable

#5

An example https://www.amazon.com/dp/B00NO73Q84/ref=cm_sw_r_cp_awdb_t1_L.vYCb1S5WS8M

#6

I see these cables on WalMart web site for about $4. Has anyone actually used multiplayer ? I have searched for Google answers to “jacdac multiplayer” , web, video or images. Nothing. I have searched for these terms on YouTube, nothing. You would think that if multiplayer was possible, someone would have made a video of it. Any links to see what it would look like or if it has been done with Arcade? Thax
. ps, I have sent a request to Kittenbot if they have a battery available for the MeowBit. Since I have not seen 2 people playing multiplayer, I would have to assume that the consoles are NOT connected to computers while playing (but maybe they are) so that implies that battery power is necessary. I can plug 5v into Meowbit with a micro USB cable but don’t know if that would interfere with the system. I do have 3 AAA batts. on my BrainPad Arcade now.

This might work, I don’t have any proof that it doesn’t. Both consoles have the same game, Pong 2 player on them. Pressing the “A” button on both boards starts the game. I don’t know that one player plays against the other or how that works, Moving an up arrow on one board and hitting the ball does not alter the ball on the other board-as it would in a real ping pong game. I mean , here, there are two separate balls and 2 sets of paddles. So I would say that I don’t know enough about gaming to know what to expect. An interesting side note is that one console seems to be sending some type of signal to the other or to the other’s power connection because the 5 v. battery pack for the Meowbit does not go dormant after 15-30 seconds as it does if there is no cable connection to another board. The pink battery pack stays “on” while the 3.5mm cable is connected from BrainPad to Meowbit…for what that’s worth. I’ll have to find two teens to test this

out to tell me more about it.

#7

This do not need a PC after the game is loaded. This is a new feature that is just coming out. You will be making the first multiplayer video :slight_smile:

#8

I have a request into Jumping Yang (Colorbit, 51bit/colorbit extension on github) which is a 3 person conversation asking if this has been done in China with 2 MewoBits. They may have shown how to do it. I see a jacdac extension in makecode arcade. Wondering if that is necessary or ‘built-in’ to the program ? I think I saw a double player ‘pong’ game.

#9

Well, here goes.

#10

I think you have to load the multiplayer game on both boards individually. ie, the game does not transfer from one console to the other. …so far.

I switched from Pong pvp to Space destroyer linked above and controlling one console does control sprites on the other. So at this point multiplayer does appear to work, at least to that extent. Don’t know why Pong 2 player did not but will look in to that. The game does have to be uploaded to each console separately.

#11

I did not include the jacdac drivers in the Pong PvP game, as they weren’t yet ready when I wrote the game. So, Pong PvP via jacdac probably won’t work until they are added.