Java-Gaming.org Hi !
Featured games (81)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (576)
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 3499 times)
0 Members and 1 Guest are viewing this topic.
Offline FireFreek

Senior Newbie


Projects: 1



« Posted 2012-02-29 01: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 01: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 02: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!
Legends of Yore - The Casual Retro Roguelike
Offline StonePickaxes

JGO Coder


Medals: 4
Projects: 2


Nathan Kramber


« Reply #3 - Posted 2012-02-29 02: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 02:13:49 »

Well that's not the problem. It's all the other balls coming in right after it.
Offline mike_bike_kite
« Reply #5 - Posted 2012-02-29 08: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 04: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 Duke


Medals: 3



« Reply #7 - Posted 2012-03-05 08: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
« League of Dukes »

JGO Kernel


Medals: 136
Projects: 4
Exp: 3 years



« Reply #8 - Posted 2012-03-06 01: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 02: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.

 

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

The first screenshot will be displayed as a thumbnail.

Longarmx (46 views)
2014-10-17 03:59:02

Norakomi (37 views)
2014-10-16 15:22:06

Norakomi (29 views)
2014-10-16 15:20:20

lcass (32 views)
2014-10-15 16:18:58

TehJavaDev (62 views)
2014-10-14 00:39:48

TehJavaDev (62 views)
2014-10-14 00:35:47

TehJavaDev (52 views)
2014-10-14 00:32:37

BurntPizza (70 views)
2014-10-11 23:24:42

BurntPizza (40 views)
2014-10-11 23:10:45

BurntPizza (82 views)
2014-10-11 22:30:10
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
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!