Log In  

5

Please visit picariogame.com to play! Try having your friend open the game on their computer to play with you, or open the game in a separate browser tab or on your phone! (Note: the game may not work as intended on mobile, and if it becomes de-synced on your browser try refreshing the page)

You are a fruit. Eat the tiny dots to grow bigger, or eat other fruit that are smaller than you. Just make sure that none of the larger fruits eat you!

Controls:
Arrow Keys : Move
Mouse : Click and hold to move in direction of cursor
Touchscreen : Touch and hold to move in that direction

The code for this project can be found at This Github Page.

This is a proof of concept game made by Dylan Tran, Zachary Petersen, John Chau, and Sterling Salvaterra. Special thanks to our amazing instructor Adam Smith at UC Santa Cruz for his advice and encouragement, and to Mathew Kuhn for the music.

Our goal was to show that the PICO-8 can support a relatively massive number of simultaneous players in a single game given its constraints. We decided to recreate the popular agar.io to achieve this goal.

In our largest test, we had 35+ simultaneous players. Theoretically, the game can handle 64+ simultaneous players.

One of the biggest challenges we faced is that there are only 128 bytes of GPIO in the PICO-8 meaning that the each client can only handle take in 128 bytes of Input/Output per frame. We decided to represent each object with six bytes, one for ID, one for size, two for X Coordinate, and two for Y Coordinate. With 128 bytes of I/O, that meant we could update 21 objects per frame. We designated three of these objects to output (The client telling the server about changes in the player's state and the state of any objects the player eats) and the other 18 to Input (The server telling the client about the change of objects in the world).

We wrote the server in python. Since the clients can only handle 18 updated objects per frame, we implemented a spatial hashing optimization so that each client only receives updates about objects that are nearby the player. The connection between the clients and the server is made using websockets.

online multiplayer agar.io browser javascript large internet networked server
P#45131 2017-10-12 02:27

::

Fantastic work! :D This is quite an achievement. And fun to boot! :D

P#45134 2017-10-12 04:10

::

Excellent stuff! :D

I was wondering whether something like this would be possible after seeing Javascript/local network stuff like Pico8Com.

This could be the start of some very interesting times for PICO-8! :o)

P#45135 2017-10-12 04:43

::

So many of my ideas that seemed impossible, Suddenly possible. <3

Co-op Alien breed redux, Anyone?

P#45141 2017-10-12 07:42

::

Impressive.

P#45145 2017-10-12 10:01

Log in to post a comment

user:
password:

New User | Account Help
:: New User
X
About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2017-10-24 02:10 | 0.198s | 1572k | Q:13