Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (539)
Games in Android Showcase (132)
games submitted by our members
Games in WIP (603)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1] 2
  ignore  |  Print  
  MorePong  (Read 3779 times)
0 Members and 1 Guest are viewing this topic.
Offline Drenius
« Posted 2014-02-22 23:34:42 »

Hi there!
Just got a little frustrated by my main project and decided to make something small. Here it is!
It is... well... Pong. But with more boards and more balls and without game over.
Hope somebody likes it.

Download

Screenshot:



Offline LiquidNitrogen
« Reply #1 - Posted 2014-02-23 03:23:27 »

the game runs so fast that i cant play it.

Offline Drenius
« Reply #2 - Posted 2014-02-23 03:46:53 »

Uploaded a new version in which you can hold F1 to show FPS - could you report your average?
Maybe it is just my device where it has maximum about 60 FPS...
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline saucymeatman
« Reply #3 - Posted 2014-02-23 03:54:12 »

Im getting 1500 fps. Unplayable. :{
Offline Drenius
« Reply #4 - Posted 2014-02-23 03:55:07 »

Ugh, okay, sorry!
Will limit it, wait a minute!
Online opiop65

JGO Kernel


Medals: 161
Projects: 7
Exp: 4 years


JumpButton Studios


« Reply #5 - Posted 2014-02-23 03:55:27 »

I'm getting 60... odd! I still gave up after I hit -16 points though... Tongue

Offline Drenius
« Reply #6 - Posted 2014-02-23 04:01:49 »

Okaay, limit implemented! Better?

@opiop64:
Thats reassuring!
About "-16" - it takes some practise, but it is possible to get over +20!^^
Offline LiquidNitrogen
« Reply #7 - Posted 2014-02-23 05:22:30 »

still running about 1400fps here

Offline BurntPizza

« JGO Bitwise Duke »


Medals: 289
Exp: 5 years



« Reply #8 - Posted 2014-02-23 05:35:35 »

I'm getting a smooth 60 here. Running Win7 64

Pretty hard, I keep bouncing between (pun intended) -2 and 1 or so. The opponents move quicker and can launch the ball (square?) much faster than the player.
Offline Drenius
« Reply #9 - Posted 2014-02-23 13:31:03 »

@LiquidNitrogen: *facepalm* forgot to update the "lastFrameStart" variable every frame. But now it should be better...
@BurntPizza: Normally the boards should be exactly equal fast. There are some glichy balls exceeding the velocity limit, are you talking about those?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Gibbo3771
« Reply #10 - Posted 2014-02-23 13:36:43 »

LOL dude this is awesome, you know why?


"This code works flawlessly first time and exactly how I wanted it"
Said no programmer ever
Offline Drenius
« Reply #11 - Posted 2014-02-23 13:48:33 »

Of course there has been something like it.
The concept is just too simple...
Offline Gibbo3771
« Reply #12 - Posted 2014-02-23 14:14:10 »

I had a ton of fun playing crash bash, if you made this local multiplayer for giggles it would be epic lol.

"This code works flawlessly first time and exactly how I wanted it"
Said no programmer ever
Offline Drenius
« Reply #13 - Posted 2014-02-23 14:23:02 »

Er... What?
Online opiop65

JGO Kernel


Medals: 161
Projects: 7
Exp: 4 years


JumpButton Studios


« Reply #14 - Posted 2014-02-23 14:31:10 »

If you made the game multiplayer and included LAN capabilities you will giggle, apparently Wink

Offline Gibbo3771
« Reply #15 - Posted 2014-02-23 14:33:50 »

Er... What?

Basically just have different keys to control different paddles, that means when I am drunk with a bunch of mates we can play this and have epic battles lol.

It is good, simple and nice.

"This code works flawlessly first time and exactly how I wanted it"
Said no programmer ever
Offline Drenius
« Reply #16 - Posted 2014-02-23 15:45:54 »

Okay, new version:
F2 enables 2-player mode!
Control with A/D.
Offline Danny02
« Reply #17 - Posted 2014-02-23 18:37:51 »

can you package lwjgl with it?
I can't play because it can't find lwjgl native libs
Offline Drenius
« Reply #18 - Posted 2014-02-23 19:10:00 »

Okay, another update. F2 now switches between 1-2-3-4-player mode. Leftshift/Ctrl for Player3 (West) and Enter/+ for Player4 (East).

@Danny02: It should extract its natives automatically. On which OS are you trying to run it?
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 81
Projects: 15


★★★★★


« Reply #19 - Posted 2014-02-23 19:15:59 »

I can't play because it can't find lwjgl native libs
Same problem here, on Linux.
Offline Drenius
« Reply #20 - Posted 2014-02-23 19:20:42 »

Thats good. Just have to find a way to determine whether the OS is Linux...
Just a moment...
Online Longarmx
« Reply #21 - Posted 2014-02-23 19:23:56 »

1  
String os = System.getProperty("os.name").toLowerCase();

Offline Drenius
« Reply #22 - Posted 2014-02-23 19:26:26 »

Using this, but the Strings for all the OSs...
What are yours?
Offline LiquidNitrogen
« Reply #23 - Posted 2014-02-23 20:12:07 »

sweet i got 12 points

Offline BurntPizza

« JGO Bitwise Duke »


Medals: 289
Exp: 5 years



« Reply #24 - Posted 2014-02-23 20:15:22 »

Using this, but the Strings for all the OSs...
What are yours?

Should work:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
public enum OS {
      Windows, Mac, Unix, Solaris;
}

public OS detectOS() {
      String os = System.getProperty("os.name").toLowerCase();

      if(os.indexOf("win") >= 0) return OS.Windows;
      if(os.indexOf("mac") >= 0) return OS.Mac;
      if(os.indexOf("nix") >= 0 || OS.indexOf("nux") >= 0 || OS.indexOf("aix") > 0 ) return OS.Unix;
      if(os.indexOf("sunos") >= 0) return OS.Solaris;
}


Adapted from http://www.mkyong.com/java/how-to-detect-os-in-java-systemgetpropertyosname/
Offline Drenius
« Reply #25 - Posted 2014-02-23 20:49:51 »

Ok, changed the determination to this method.
Does it work?
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 81
Projects: 15


★★★★★


« Reply #26 - Posted 2014-02-23 21:02:32 »

Ok, changed the determination to this method.
Does it work?
Tried download again, nope still doesn't work.
Offline Drenius
« Reply #27 - Posted 2014-02-23 21:07:20 »

Is there any error log?
Offline BurntPizza

« JGO Bitwise Duke »


Medals: 289
Exp: 5 years



« Reply #28 - Posted 2014-02-23 21:14:24 »

@Drenius, you should add some print statements or something to Project.loadNatives() so that people can see if their os was even detected.
Offline Drenius
« Reply #29 - Posted 2014-02-23 21:19:16 »

Well, it should print "Unable to load native libraries: Operating System not supportet or not recognized" if not...
Uploading another new version printing which OS was detected.

Does it run now or what does it print in?
Pages: [1] 2
  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.

rwatson462 (35 views)
2014-12-15 09:26:44

Mr.CodeIt (26 views)
2014-12-14 19:50:38

BurntPizza (53 views)
2014-12-09 22:41:13

BurntPizza (86 views)
2014-12-08 04:46:31

JscottyBieshaar (48 views)
2014-12-05 12:39:02

SHC (63 views)
2014-12-03 16:27:13

CopyableCougar4 (65 views)
2014-11-29 21:32:03

toopeicgaming1999 (126 views)
2014-11-26 15:22:04

toopeicgaming1999 (117 views)
2014-11-26 15:20:36

toopeicgaming1999 (34 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

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
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!