Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (536)
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 2866 times)
0 Members and 1 Guest are viewing this topic.
Offline BurntPizza
« Reply #30 - Posted 2014-02-23 23:16:05 »

In Linux Mint 14 VM:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
$ java -jar MorePong.jar
Detecting Linux OS
Exception in thread "main" java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1856)
        at java.lang.Runtime.loadLibrary0(Runtime.java:845)
        at java.lang.System.loadLibrary(System.java:1084)
        at org.lwjgl.Sys$1.run(Sys.java:73)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.lwjgl.Sys.doLoadLibrary(Sys.java:66)
        at org.lwjgl.Sys.loadLibrary(Sys.java:95)
        at org.lwjgl.Sys.<clinit>(Sys.java:112)
        at org.lwjgl.openal.AL.<clinit>(AL.java:59)
        at projectmanager.audio.Audio.create(Audio.java:27)
        at projectmanager.Project.load(Project.java:246)
        at morepong.Main.<init>(Main.java:24)
        at morepong.Main.main(Main.java:16)


You'll find plenty on StackOverflow if you google "no lwjgl in java.library.path"
Offline Danny02
« Reply #31 - Posted 2014-02-23 23:27:08 »

I see that you silently catch some exceptions, perhaps some of these would be helpful.
Offline Drenius
« Reply #32 - Posted 2014-02-24 17:38:43 »

Well it seems like it does not extract the natives correctly or it does not change the library path... Will have to look at this some more.
I'm sorry for this, this is the first published game made with my little lib/framework/engine/... so there are of course still some bugs...
@Danny02: Really need to improve error checking and add doc and all that... Just got it to the point it should have worked.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Drenius
« Reply #33 - Posted 2014-02-25 17:29:51 »

Update:
Should now finally work on Linux too! Simply making sure folder paths end with path seperators did the trick...
Also changed the look of the 3 and 4 player mode score bar and reorganized some internal stuff.
Offline Danny02
« Reply #34 - Posted 2014-02-25 20:33:52 »

yep works now^^
Offline Drenius
« Reply #35 - Posted 2014-02-25 20:40:01 »

Thats good, thanks for testing!
Does anybody have any suggestions?
Offline JVallius
« Reply #36 - Posted 2014-02-26 20:02:03 »

Sometimes balls moves very fast or slow. When a ball come with speed of lightning it is impossible to catch when paddle is so slow. Is this feature intentional? If my memory serves me right, in the original Pong the ball speed was constant.

The game area could be a little larger, imho. May improve the gameplay.
Offline Drenius
« Reply #37 - Posted 2014-02-26 20:09:25 »

You are supposed not to be able to get every ball but have to choose wisly where you move instead. They are also supposed to have different velocities, but with a limit.
Those fast balls are a bug. Will try to fix that now...
Offline BurntPizza
« Reply #38 - Posted 2014-02-27 00:23:39 »

Those fast balls are a bug. Will try to fix that now...

You could just check each ball every frame (or only during collisions) and cap the velocity, no? It's kind of a hack, but if you can't figure it out or simply can't make the physics accurate enough, it should be fine.
Offline Drenius
« Reply #39 - Posted 2014-02-27 16:43:02 »

Every ball has a vec2f for velocity and another one for position. I use a little function that adds either the directional velocity for x/y, or, if one is higher than LIMIT, LIMIT instead of it (GLSL min()...);
Now it checks each velocity of each ball every frame and it seems to do what it is supposed to.

Writing this I realised that I should use LIMIT for x+y velocity instead of seperating them...
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline kpars

JGO Wizard


Medals: 75
Projects: 4
Exp: 3 years


Radirius Software Developer


« Reply #40 - Posted 2014-02-27 17:41:21 »

Just played it.

Looks like a really fun game! I would probably make it a bit more fast-paced, but disregarding that it's a great game! Cheesy

- Jev


Check out #JGO on EsperNet IRC! | Check out the MERCury 2D Java Game Library! | Also, Check out My Site
Offline Drenius
« Reply #41 - Posted 2014-02-27 20:57:46 »

Another update. Those 'lightning' balls should be removed now and some collisions are improved.
Also added the ability to change the balls speed:
While holding F3 the score bar turns into a controller bar and you can increase/decrease it by pressing up/down.
The board  (also the other ones in multiplayer) is controlled by the AI as long as you are holding F3, but you get or lose no points so you have a little preview for the new speed.
This does not affect the board velocity!
Offline kpars

JGO Wizard


Medals: 75
Projects: 4
Exp: 3 years


Radirius Software Developer


« Reply #42 - Posted 2014-02-27 21:30:04 »

Also added the ability to change the balls speed:
While holding F3 the score bar turns into a controller bar and you can increase/decrease it by pressing up/down.

That's a clever design choice. +1.

- Jev

Check out #JGO on EsperNet IRC! | Check out the MERCury 2D Java Game Library! | Also, Check out My Site
Pages: 1 [2]
  ignore  |  Print  
 
 

 

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

The first screenshot will be displayed as a thumbnail.

CogWheelz (15 views)
2014-07-30 21:08:39

Riven (21 views)
2014-07-29 18:09:19

Riven (14 views)
2014-07-29 18:08:52

Dwinin (12 views)
2014-07-29 10:59:34

E.R. Fleming (32 views)
2014-07-29 03:07:13

E.R. Fleming (12 views)
2014-07-29 03:06:25

pw (42 views)
2014-07-24 01:59:36

Riven (42 views)
2014-07-23 21:16:32

Riven (30 views)
2014-07-23 21:07:15

Riven (31 views)
2014-07-23 20:56:16
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!