Author Topic: My Pong Game  (Read 6711 times)

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
My Pong Game
« on: 2014-12-19 21:58:48 »
I've recently been finishing my 4 player Pong game for PC (because I now know enough to do what I want to do). Shame it can't have netplay, but that's a limitation of transferring data. Even at the fastest theoretical transfer speeds, programming Pong to work with lag properly (as in, will work without disgruntled players) is literally impossible (at least, with current computer physics). That might sound stupid when you see Halo doing "just fine", but the truth is, Halo (etc) use some very nifty (and incredibly complicated) tricks to make it seem like you are synced up. But the reason these don't fail you completely is because the speed and nature of games like Halo mask the larger issue. With my Pong game, the ball can travel 2000 pixels a second over 800 pixels. Any lag at all cannot be compensated properly at those speeds and with a game like Pong.

In any case, this Pong game isn't your run of the mill Pong game. It comes with a mini game, ability to change to custom graphics, 4 player (including joypad and force feedback) support, and has a myriad of options and settings. I'm trying to create the best freeware Pong on the net. Because what is out there at the moment is badly programmed garbage, generally.  Nearly all the one's I saw made the same mistake of thinking diagonal speed is simply x:=x+1 / y:=y+1. That will actually mean the ball travels faster diagonally than it should.

Programming wise, it's a hobby.  I've added music support (and will get my mate to make some music for it) and may need a catchy tune or two. Unlike the other game, this one is fun to play long term, and programmed far superior to it too.  The downside is that my graphical abilities are crap.  So maybe I can enlist someone who is good with graphics at some point (like I said, there is an option to add your own in from a folder).

Here is a screenie of the 2+ player option screen as it currently stands


I'm currently programming the computer player AI.  Lots still to do, but the meat of it is there.
« Last Edit: 2014-12-23 14:36:18 by DLPB »

LeonhartGR

  • *
  • Posts: 2577
  • ~Whatever...~ Enjoy life!
    • View Profile
    • LeonhartGR Productions
Re: My Pong Game
« Reply #1 on: 2014-12-20 01:01:49 »
Nice! Looking forward to it!

KnifeTheSky77

  • *
  • Posts: 548
  • Somnambulistic Paraphile
    • View Profile
Re: My Pong Game
« Reply #2 on: 2014-12-20 06:19:25 »
Very cool, what lang(s) are you using? A few things I've never seen in a pong game: having real physics to calculate arcs and spin on the ball, varying friction coefficients on paddles, dynamic drag on the ball as it travels etc.

You could compensate for latency through gimmicky mechanics like having the ball disappear after crossing the half way point, have the ball appear on their end so they make their move, draw the paddle and ball movement from the opponent's screen on yours after their move and continue and vice versa... it would be almost turn based, that would probably not be super fun lol

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Re: My Pong Game
« Reply #3 on: 2014-12-20 10:05:12 »
I use Borland Delphi with the Asphyre framework. I'm still adding a few features to it and perfecting others, like "Spin" where you can add curves to ball like a tennis player does.  Some of the game is modelled after tennis. And the minigame is pretty cool too.

You'll see ;)

Shard

  • *
  • Posts: 330
    • View Profile
Re: My Pong Game
« Reply #4 on: 2014-12-20 20:15:06 »
There aren't any movable obstructions in the center of the play area, right? If it usually takes more than 100ms for the ball to travel between collisions, you can have very good lag compensation to make up for it.

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Re: My Pong Game
« Reply #5 on: 2014-12-21 00:33:00 »
The problem is where the paddles will be.  With this game, even the slightest deviance means it's a problem.  The logistics of programming lag compensation to any competent degree is way ahead of anything I'd even attempt.

Kaldarasha

  • *
  • Posts: 2449
  • Prince of Model Editing
    • View Profile
Re: My Pong Game
« Reply #6 on: 2014-12-23 05:27:33 »
Silly question of me, but is it possible to add this as a minigame to FFVII? Similar as the card minigames in FFVIII and FFIX.
Would be funny to have a Pong quest. The ball could be a materia and depending what materia you or your opponent use different effects will be used at the materia ball. I think Materia Smasher is a nice name for it.
Imagine a Materia Smasher tournament on the event square... oh it's so nice to dream...  :roll:

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Re: My Pong Game
« Reply #7 on: 2014-12-23 08:38:54 »
Nope.   ;D

Kaldarasha

  • *
  • Posts: 2449
  • Prince of Model Editing
    • View Profile
Re: My Pong Game
« Reply #8 on: 2014-12-23 12:51:53 »

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Re: My Pong Game
« Reply #9 on: 2014-12-23 19:09:08 »
https://www.youtube.com/watch?v=IZFfrjE_Z48&feature=youtu.be

A nice test with the "Obscured Area" mode.

The game is actually very smooth, but had to convert from 75fps render to 60.

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Re: My Pong Game
« Reply #10 on: 2014-12-29 01:54:00 »
https://www.youtube.com/watch?v=TNQlzq7ZZ7s&list=UUXvDNLQWLBrn8qlJu_TQ5pg

haha, still jerky has hell though in the recording.  Not during play.

Shard

  • *
  • Posts: 330
    • View Profile
Re: My Pong Game
« Reply #11 on: 2014-12-29 22:31:02 »
Seems legit.

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Re: My Pong Game
« Reply #12 on: 2015-01-14 18:09:32 »
https://www.youtube.com/watch?v=lR8hyswy6Sw

Work is going quite well.  I've expanded the game area and made it 720p and sorted text. The video may appear really stuttery but that's because Firefox and certain other browsers do not support Youtube 60fps videos (As Covarr explained).  I've moved to Chrome anyway.