Live data from Hacker News

Show HN: I made a web game called Almost Pong

lessmilk.com

171–180 of 189 posts

Re: Show HN: I made a web game called Almost Pong

#173
I find it fun to write scripts to play games like this, here's my solution:

    setInterval(() => {
      function jump() {
        function fireSpaceBarToDocumentElement(eventName) {
          const SPACE_BAR = 32
          const ev = new KeyboardEvent(eventName, { bubbles: true, keyCode: SPACE_BAR })
          document.documentElement.dispatchEvent(ev)
        }

        fireSpaceBarToDocumentElement('keydown')
        fireSpaceBarToDocumentElement('keyup')
      }

      function shouldJump() {
        function goingLeft() { return ball.speedX  0 }
        function leftPaddleAboveBall() { return ball.y 

Re: Show HN: I made a web game called Almost Pong

#175

Let me use this thread to tell this somewhat related story of mine. When I was still at university we had a C class and were doing it in a computer lab with partners (back then very few students could afford a laptop). I was always partnering up with the same friend. Since we were a bit bored with the class we started building our own pong in C. Rendering was done in ASCII in the command line, with paddles being 3 pi…

Ever heard of Arkanoid[1] ? Your changes maps pretty much to what the bonus pills did in Arkanoid. Some possibility in Arkanoid that you did not mention in your version:

   - Makeing the paddle wider or narrower
   - Multi-ball
   - Capturing / releasing the ball when it hits the paddle.
   - Destructive ball (pass through walls)
   - Extra life
[1] https://www.classicgame.com/Arkanoid

Re: Show HN: I made a web game called Almost Pong

#176
post #16

Hey! Your 12 games in 12 weeks thing (back in ...2014? Jesus, time flies) was what got me into HTML5 game dev! So I wanted to say thank you for the inspiration :) I especially appreciate the "loads no assets" aspect. I will take a look at the code in the morning! p.s. have you considered the name "Flappy Pong"?

That's awesome to hear! And yes my "one game per week" challenge was in 2014. This game was definitely inspired by Flappy Bird, but no I didn't think about that name before today.

I'm having a hard time believing it but Flappy Bird was launched over 8 years ago in 2013!

Re: Show HN: I made a web game called Almost Pong

#177
post #142

This has a real chance to be a successful mobile game, if I were you I may start thinking about an app. Every project has to stop somewhere, though, so leaving it as a fun little game in the browser would be fine too!

It is a mobile game. Used to play it years ago. Different style, but same idea. https://apps.apple.com/us/app/dont-touch-the-spikes/id895942...

There's gotta be some law about the finite set of "truly different" mobile games that can be created - forget oil: the real disappearing resource is game concepts!

Re: Show HN: I made a web game called Almost Pong

#178

Be careful, especially if you do anything commercial with this: "Pong" is trademarked by Atari. Fun game, but might need to choose a different name...

Call it "Bong" because in "Pong" you control the [P]addles but in "Bong" you control the [B]all. Is that too close to the trademark, though?
Post reply on HN