Show HN: I made a web game called Almost Pong
171–180 of 189 posts
Re: Show HN: I made a web game called Almost Pong
#172Re: Show HN: I made a web game called Almost Pong
#173 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
#174Re: Show HN: I made a web game called Almost Pong
#175Let 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…
- 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/ArkanoidRe: Show HN: I made a web game called Almost Pong
#176Hey! 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.
Re: Show HN: I made a web game called Almost Pong
#177This 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...
Re: Show HN: I made a web game called Almost Pong
#178Be careful, especially if you do anything commercial with this: "Pong" is trademarked by Atari. Fun game, but might need to choose a different name...
Re: Show HN: I made a web game called Almost Pong
#179Re: Show HN: I made a web game called Almost Pong
#180I will feature this in upcoming issue of https://proddducts.com