Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (404)
games submitted by our members
Games in WIP (289)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Pong^2  (Read 2238 times)
0 Members and 1 Guest are viewing this topic.
Offline FireFreek

Senior Newbie


Projects: 1



« Posted 2012-02-29 02:51:58 »

So yeah it's Pong, but the ball splits every time it hits a Paddle. I made it with libGDX. This is my first post here, and my first game worth releasing. I wish it was a bit cooler than this, but meh.

http://thisissilly.x10.mx/pong.php



Offline StonePickaxes

JGO Coder


Medals: 4
Projects: 2


Nathan Kramber


« Reply #1 - Posted 2012-02-29 02:59:21 »

This is really cool! Smiley

The only problem I noticed was the AI for the enemy. It.. doesn't seem very intuitive. Am I wrong or does it just track the balls position and move directly proportional to the ball closest to it?

-Nathan

Check out my website!
Offline FireFreek

Senior Newbie


Projects: 1



« Reply #2 - Posted 2012-02-29 03:07:42 »

Yeah it's really dumb. It follows what is supposed to be the oldest ball. What would you suggest the AI do in a situation like this? Even human intelligence panics when confronted with the situation.
Games published by our own members! Check 'em out!
Try the Free Demo of Droid Assault
Offline StonePickaxes

JGO Coder


Medals: 4
Projects: 2


Nathan Kramber


« Reply #3 - Posted 2012-02-29 03:09:58 »

No idea :x I have never done any sort of AI programming, other than this basic pac-man game --> http://natekramber.co.cc/ (click the pac-man link on top)

I'm guessing you should try to predict where the ball is going to go based off of its direction and velocity, and move accordingly, instead of moving pixel-for-pixel with it.

-Nathan

Check out my website!
Offline FireFreek

Senior Newbie


Projects: 1



« Reply #4 - Posted 2012-02-29 03:13:49 »

Well that's not the problem. It's all the other balls coming in right after it.
Offline mike_bike_kite

Junior Member


Projects: 1



« Reply #5 - Posted 2012-02-29 09:24:27 »

What would you suggest the AI do in a situation like this?
Could you work out where each ball will pass the line and then move the paddle to the place that meets the most of the ball. Obviously time comes into play ie when will the balls pass the line and can the paddle get to position in time.

Arcade swarm
Board Chess - Checkers - Othello
Offline FireFreek

Senior Newbie


Projects: 1



« Reply #6 - Posted 2012-03-05 05:33:37 »

Okay, updated it. Now it has pausing, smoother controls, and a harder AI that gets the ball that will arrive first. I have yet to beat it. Can you?
Offline RylandAlmanza

Junior Member


Medals: 3



« Reply #7 - Posted 2012-03-05 09:32:18 »

Okay, updated it. Now it has pausing, smoother controls, and a harder AI that gets the ball that will arrive first. I have yet to beat it. Can you?
Holy shit, that AI is crazy! Nice job!
Offline Jimmt
« Reply #8 - Posted 2012-03-06 02:05:36 »

How to do the AI:
Well when I think about this kind of stuff I imagine what the player has to do. Generally the player will attempt to hit the ball closest to their goal. Correct?
So we get the ball that is closest in x-terms to the AI's paddle, and navigate the paddle to that ball.
Offline FireFreek

Senior Newbie


Projects: 1



« Reply #9 - Posted 2012-03-06 03:10:09 »

How to do the AI:
Well when I think about this kind of stuff I imagine what the player has to do. Generally the player will attempt to hit the ball closest to their goal. Correct?
So we get the ball that is closest in x-terms to the AI's paddle, and navigate the paddle to that ball.
Yeah, I guess that could be a thing for a medium difficulty, instead of factoring speed as well.
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars and Titan!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (49 views)
2013-05-17 21:29:12

alaslipknot (58 views)
2013-05-16 21:24:48

gouessej (88 views)
2013-05-16 00:53:38

gouessej (86 views)
2013-05-16 00:17:58

theagentd (95 views)
2013-05-15 15:01:13

theagentd (88 views)
2013-05-15 15:00:54

StreetDoggy (133 views)
2013-05-14 15:56:26

kutucuk (154 views)
2013-05-12 17:10:36

kutucuk (154 views)
2013-05-12 15:36:09

UnluckyDevil (164 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!
Page created in 0.089 seconds with 20 queries.