5 ms·
Show HN: I made a game, Tippy Coco
Tippy Coco is a volleyball game in the browser. You can play with a friend at the same keyboard, or solo challenge the built-in opponents.
As for the tech: it's all TypeScript + HTML5. I did not use a game engine; I just made a game loop with setTimeout and the artwork is all just png's drawn on the canvas. The sound is played through the HTML audio API. Input is watching keyboard events and the Gamepad API.
One thing: I know this is 2023 but it's not a game for phones. It's for a laptop or desktop PC with a physical keyboard. It also works ok on an iPad with a physical keyboard.
Tippy Coco is free and without ads. The code is available (MIT license) at https://github.com/malgorithms/tippycoco https://github.com/malgorithms/tippycoco
- consumer451 4y agoVery fun! Sharing with my nephew as he is learning to code with a focus on games. Thanks! One request would be a volume control.
- jabza 4y agoSatisfying physics!
- gardenhedge 4y agoI lol'd when I realised I could go to my opponents side.
- consumer451 4y agoIt took me a bit to realize this and I felt bad about doing it at first. Then later I found that the eponymous opponent does it as well.
- gus_massa 4y agoI tried a few times, but all I got was stupid loses :(
- gus_massa 4y agoIt's very strange that I can pass to the other side and even touch the ball. I expected that passing the middle would be a fault, or touching the ball in the wrong side would be a fault. (I don't remember the exact rules in volleyball now.)
- deleted 4y ago[deleted]
- clusmore 4y agoThis reminds me a lot of Slime Volleyball, which I loved as a kid. Thanks for sharing.
- malgorithms 4y agoSlime Volleyball directly inspired it! I mention that on the about page, https://tippycoco.com/about https://tippycoco.com/about . And ~20 years ago, I actually programmed one of the popular Slime Volleyball bots.
- taskqa 4y ago[dead]
- bitcoin01 4y agoNice! Is there something similar on mobile?
- Sami_Lehtinen 4y agoFor historical reasons let's just mention this: https://en.wikipedia.org/wiki/Arcade_Volleyball https://en.wikipedia.org/wiki/Arcade_Volleyball
- gus_massa 4y agoPerhaps it's too late, but it would be interesting to read about how you programed the "AI" for each level. It took me a while to discover that there are a few opponents, but then I was surprised they have very different strategies.