Settings

Theme

Show HN: I made a game, Tippy Coco

tippycoco.com

29 points by malgorithms · 13 comments · 1 min read

Reader

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

8 threads
clusmore

This reminds me a lot of Slime Volleyball, which I loved as a kid. Thanks for sharing.

gardenhedge

I lol'd when I realised I could go to my opponents side.

  • gus_massa

    I tried a few times, but all I got was stupid loses :(

  • consumer451

    It 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.

Sami_Lehtinen

For historical reasons let's just mention this: https://en.wikipedia.org/wiki/Arcade_Volleyball

gus_massa

Perhaps 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.

consumer451

Very fun! Sharing with my nephew as he is learning to code with a focus on games. Thanks!

One request would be a volume control.

gus_massa

It'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.)

jabza

Satisfying physics!

bitcoin01

Nice! Is there something similar on mobile?

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection