The only online multiplayer game you'll ever need.
💰 This is Cash.io
(It's recommended that you visit some of the sections below such as Challenges and Instructions so you can know the do's and don’ts of the game since it's still technically in development.) The game was created using socket.io and Phaser 3, so be sure to check both out for your own use.
You play as a coin, and the object of the game is to... gain coins by eating them. While that may seem bizarre, our other ideas made even less sense, so cannibalistic coins: take it or leave it.
Use the WASD to control your player. You will speed up the longer you keep moving.
You can visit banks scattered around the map which will spawn little coins every few seconds, which you are welcome to consume by moving over them.
You can also attack other players by ramming into them. They will lose coins depending on your velocity if it is past a certain threshold. When a player's coins reach zero, they will explode into more little coins for others to consume.
👱 Team Members
Wrote the code for client and server side.
Planned the game and major logic. Wrote the leaderboard.
Kenny “Keq_qer” Lee
Artist. Created sprites such as the bank and the coin.
So enters the player, a simple coin. We brainstormed a lot at the beginning, but all our ideas ended up being exactly like Agar.io, so we ended up scrapping a lot of our original ideas. We eventually came up with the concept you see now - a humble game that we’re proud to call truly unique.
In this section, we’re going to outline some of the major components of our game, and really just show it off.
1. Fully-featured online multiplayer
You can play anywhere and with anyone, as long as you have a stable internet connection. We find this feature really appealing because as nerds, we tend to stay inside and this allows us to play with our few friends without getting touched by the sun. By “fully-featured” we really mean it. Cash.io features spawners as well as a scoreboard so you always know who the supreme leader of the server is.
2. Phaser 3 Arcade Physics Engine
3. Lightweight browser experience
Cash.io runs entirely in your browser. As students who work on school Chromebooks daily, we’re constantly reminded of the inability to download games and apps. Browsers have been evolving over the past few years, and Phaser being browser-based means we can have a great game that runs right in Google Chrome, Firefox, and maybe even Internet Explorer (we’re too scared to check).
⛰️ Challenges and Code
Obviously, the Game Jam is centred around programming ability and creativity, so I'll discuss some challenges we encountered and how we fixed them.
1. Server and Client Continuity
In order to reduce server lag, we wanted the local player to handle as many of the calculations and general processing as possible. This proved to be a difficult task as the player had certain attributes that were only visible to themselves, such as velocity. Making it visible to other players would require a large amount of transport code within the server, making it less efficient. We eventually found workarounds, such as letting players communicate their attributes only when absolutely vital.
2. SetInterval and Cheating
🚪 Closing Notes
We think we created a game that’s worthy of first prize in the Game Jam. If you agree, leave an upvote and tag your friends and maybe even subscribe to the channel! Hit that bell icon to join the notification squad!