from Hacker News

Show HN: I made a game, Tippy Coco

by malgorithms on 2/13/23, 9:53 PM with 11 comments

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

  • by clusmore on 2/14/23, 1:10 AM

    This reminds me a lot of Slime Volleyball, which I loved as a kid. Thanks for sharing.
  • by gardenhedge on 2/14/23, 12:10 AM

    I lol'd when I realised I could go to my opponents side.
  • by Sami_Lehtinen on 2/18/23, 9:54 AM

    For historical reasons let's just mention this: https://en.wikipedia.org/wiki/Arcade_Volleyball
  • by gus_massa on 2/15/23, 7:49 PM

    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.
  • by consumer451 on 2/13/23, 10:36 PM

    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.

  • by gus_massa on 2/14/23, 12:11 AM

    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.)
  • by jabza on 2/13/23, 11:13 PM

    Satisfying physics!
  • by bitcoin01 on 2/14/23, 10:13 AM

    Nice! Is there something similar on mobile?