Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (121)
games submitted by our members
Games in WIP (577)
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 [3] 4 5 ... 11
  ignore  |  Print  
  Mercury: A Simple 2D Game Library | -> Beta coming soon <-  (Read 28938 times)
actual and 1 Guest are viewing this topic.
Online wessles

JGO Wizard


Medals: 67
Projects: 4
Exp: 3 years


Profile picture isn't relevant.


« Reply #60 - Posted 2013-10-19 20:28:25 »

Well everyone, it took quite a bit, and a lot of effort, but I finished the next version. I have a very primitive sprite-batcher and some better geometry. There is also better sound support, and in general the framework has been cleaned up and is pretty good for use (I think? Reply your thoughts!). Tell me if you got any ideas/advice!

What should I add next? Bugs? Criticisms?
Thanks for trying, and have a wonderful day!

EDIT:
Also, I added in a TextureFactory class for if you want to handle spritesheets.

Offline opiop65

JGO Kernel


Medals: 156
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #61 - Posted 2013-10-19 20:40:04 »

Eh, I would test it out but I don't feel like downloading tiny sound... Maybe later I'll take a look at it and tell you what I think! I downloaded the actually library though.

Online wessles

JGO Wizard


Medals: 67
Projects: 4
Exp: 3 years


Profile picture isn't relevant.


« Reply #62 - Posted 2013-10-21 02:02:26 »

Added in some Javadoc!
No idea how well this will go.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Online Agro
« Reply #63 - Posted 2013-10-21 03:21:57 »

why dont you use the newer javadoc version? this is the old one

Offline SHC
« Reply #64 - Posted 2013-10-21 12:22:27 »

Better use JavaDoc 7

Offline saucymeatman
« Reply #65 - Posted 2013-10-25 16:28:57 »

Hey wes,
Check your email!
Offline opiop65

JGO Kernel


Medals: 156
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #66 - Posted 2013-10-25 19:53:45 »

Hey wes,
Check your email!
You really couldn't of just sent him a message?

Online wessles

JGO Wizard


Medals: 67
Projects: 4
Exp: 3 years


Profile picture isn't relevant.


« Reply #67 - Posted 2013-10-25 21:31:48 »

Okay, I just added in some Ellipses and Circles and their corresponding Graphics methods. Soon I will add in intersections to the geometry package.
Also, later on I plan on adding a Camera class!

Finally, can anyone more 'GLSL inclined' try to test out all of the Shader capabilities? I just scratch my head at that stuff...

Thanks a ton!

Offline opiop65

JGO Kernel


Medals: 156
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #68 - Posted 2013-10-25 23:11:34 »

A camera is a must with practically any good graphics library.

Online wessles

JGO Wizard


Medals: 67
Projects: 4
Exp: 3 years


Profile picture isn't relevant.


« Reply #69 - Posted 2013-10-26 18:39:16 »

I personally have never used a library with one. Any features you would like in them?

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline opiop65

JGO Kernel


Medals: 156
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #70 - Posted 2013-10-26 19:05:31 »

Scaling, positioning, rotation control over all the low level features like the matrices. Frustum culling and hmmm... I'll think of other stuff!

Online wessles

JGO Wizard


Medals: 67
Projects: 4
Exp: 3 years


Profile picture isn't relevant.


« Reply #71 - Posted 2013-10-27 02:58:17 »

[snip]

Demo was lost in time.

Offline opiop65

JGO Kernel


Medals: 156
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #72 - Posted 2013-10-27 03:04:51 »

Well, I tried to play your game but I received this error:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
Exception in thread "main" java.lang.UnsatisfiedLinkError: no lwjgl in java.libr
ary.path
        at java.lang.ClassLoader.loadLibrary(Unknown Source)
        at java.lang.Runtime.loadLibrary0(Unknown Source)
        at java.lang.System.loadLibrary(Unknown Source)
        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.opengl.Display.<clinit>(Display.java:135)
        at com.wessles.MERCury.Core.initDisplay(Core.java:64)
        at com.wessles.MERCury.Runner.boot(Runner.java:40)
        at com.wessles.MERCury.Core.<init>(Core.java:39)
        at com.wessles.MERCury.Core.<init>(Core.java:35)
        at com.wessles.MERCury.Core.<init>(Core.java:31)
        at com.wessles.MERCury.Core.<init>(Core.java:27)
        at com.wessles.MERCury.demos.jump.Jump.<init>(Jump.java:27)
        at com.wessles.MERCury.demos.jump.Jump.main(Jump.java:86)

That's unfortunate as I wanted to see what your library is capable of :/

Edit:
Did you only compile your game for Linux? The error is just saying it can't find the natives. I'm running windows, so that's why.

Online wessles

JGO Wizard


Medals: 67
Projects: 4
Exp: 3 years


Profile picture isn't relevant.


« Reply #73 - Posted 2013-10-27 03:18:43 »

There. It should work now. Smiley

EDIT:

Oh, and don't really expect to 'see what the library is fully-capable of.'
This is just a simple thing I threw together. Probably will be a dancing simple dancing game or something... But thanks for the enthusiasm!

Offline opiop65

JGO Kernel


Medals: 156
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #74 - Posted 2013-10-27 03:21:39 »

Sorry, but I have another error, I think you're not handling the actual paths correctly to your resources!
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
java.io.FileNotFoundException: res\backdrop.png (The system cannot find the path
 specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(Unknown Source)
        at java.io.FileInputStream.<init>(Unknown Source)
        at com.wessles.MERCury.opengl.Texture.loadTexture(Texture.java:99)
        at com.wessles.MERCury.opengl.Texture.loadTexture(Texture.java:75)
        at com.wessles.MERCury.demos.jump.Jump.init(Jump.java:36)
        at com.wessles.MERCury.Runner.boot(Runner.java:43)
        at com.wessles.MERCury.Core.<init>(Core.java:39)
        at com.wessles.MERCury.Core.<init>(Core.java:35)
        at com.wessles.MERCury.Core.<init>(Core.java:31)
        at com.wessles.MERCury.Core.<init>(Core.java:27)
        at com.wessles.MERCury.demos.jump.Jump.<init>(Jump.java:27)
        at com.wessles.MERCury.demos.jump.Jump.main(Jump.java:86)
Exception in thread "main" java.lang.NullPointerException
        at com.wessles.MERCury.demos.jump.Jump.init(Jump.java:47)
        at com.wessles.MERCury.Runner.boot(Runner.java:43)
        at com.wessles.MERCury.Core.<init>(Core.java:39)
        at com.wessles.MERCury.Core.<init>(Core.java:35)
        at com.wessles.MERCury.Core.<init>(Core.java:31)
        at com.wessles.MERCury.Core.<init>(Core.java:27)
        at com.wessles.MERCury.demos.jump.Jump.<init>(Jump.java:27)
        at com.wessles.MERCury.demos.jump.Jump.main(Jump.java:86)


Edit: Oh its fine if the game isn't all that awesome, I just want to see what you can do with your library! I'm currently working on my own for a special project Smiley

Online wessles

JGO Wizard


Medals: 67
Projects: 4
Exp: 3 years


Profile picture isn't relevant.


« Reply #75 - Posted 2013-10-27 03:40:41 »

Aha!! Fixed! It turned out I had accidentally made 2 directories of the demo? I have no idea how that slipped past me... Oh wait, Sleep! (about midnight here...).

Offline opiop65

JGO Kernel


Medals: 156
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #76 - Posted 2013-10-27 03:42:50 »

Did you upload the new one? Because I'm still getting the same error when running it Sad

Online wessles

JGO Wizard


Medals: 67
Projects: 4
Exp: 3 years


Profile picture isn't relevant.


« Reply #77 - Posted 2013-10-27 03:46:57 »

Nope. Just downloaded it, and it works with flying colors. All of the resources are there, plus the .dll's, .so's, and .jlnlb(?)'s

Offline opiop65

JGO Kernel


Medals: 156
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #78 - Posted 2013-10-27 03:49:49 »

Nope, sorry it just isn't working :/ But I'll let you go now, maybe you can figure it out tomorrow!
Edit:
I took a peek into the jar file, and there is no res folder! The game is trying to access one though.

Online wessles

JGO Wizard


Medals: 67
Projects: 4
Exp: 3 years


Profile picture isn't relevant.


« Reply #79 - Posted 2013-10-27 03:52:15 »

Then why is it running on mine?  Undecided

Offline opiop65

JGO Kernel


Medals: 156
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #80 - Posted 2013-10-27 03:53:16 »

No idea, sorry, but its not working :/ I swear, I even searched for a res folder using winzip in the jar file, but it didn't find one! Are you sure you're exporting correctly in eclipse?

Offline SHC
« Reply #81 - Posted 2013-10-27 03:54:37 »

Then why is it running on mine?  Undecided

Maybe you are having a res folder besides your jar file.

Online wessles

JGO Wizard


Medals: 67
Projects: 4
Exp: 3 years


Profile picture isn't relevant.


« Reply #82 - Posted 2013-10-27 04:03:56 »

The duplicate...

T _)T

Will put in a zip with res folder.

Unless I have been an idiot not once, not twice, but 4+ times, it should work. Otherwise, well, ...

Offline opiop65

JGO Kernel


Medals: 156
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #83 - Posted 2013-10-27 04:29:00 »

Ah yes, it finally works! Wasn't much of a game, but cool enough Cheesy! That background is really trippy!

Online wessles

JGO Wizard


Medals: 67
Projects: 4
Exp: 3 years


Profile picture isn't relevant.


« Reply #84 - Posted 2013-11-03 03:24:29 »

Well guys, after a bit of programming, a some-what functional MERCury port of Horde has now been developed! It's less fast, a bit buggy, but developing it gave me the same vibe I got while working with Slick2D, which I guess can be both a good and bad thing. Slick2D does A LOT more than what I needed to do to make this port, but with that said, I've proven that MERCury is capable of making simple casual games.

Milestone!

Just updated it with a few new things:
- Added in a Logger class, because I wanted to be able to log things like the time, what is being initialized, etc.
- Added in collision to geometry
- Added in rotation to geometry
- Now you can change the background color of Graphics
- Added in the Camera! Grin
- Also added in a universal 'SCALE' variable in Runner. Basically controls the scale of the game. Set it to 8? All of the game goes retro. Set it to .1? You cannot even play the game because it's so tiny!

Like said, I still need someone more 'GLSL-Experienced' to test out my Shader class's capabilities. If somebody would volunteer, that would be great...

Offline saucymeatman
« Reply #85 - Posted 2013-11-04 00:41:07 »

Nice update!
MERCury needed a camera, and I love the scaling, wish my engine had that!
Online wessles

JGO Wizard


Medals: 67
Projects: 4
Exp: 3 years


Profile picture isn't relevant.


« Reply #86 - Posted 2013-11-04 00:56:52 »

No problem!
Although it might be lacking what people want...
Tell me if there is anything lacking in the camera, and I'll do my best to add it!

I love the scaling, wish my engine had that!

It is actually pretty easy:

1  
2  
// This works for both 2D and 3D, just keep z_scale at 1 for 2d.
glScalef(x_scale, y_scale, z_scale);

But beware! You must only do this once, because it just multiplies a matrix (I believe). So if you keep on scaling every update frame, it will be REALLY small!

Offline HeroesGraveDev

JGO Kernel


Medals: 269
Projects: 11
Exp: 2 years


┬─┬ノ(ಠ_ಠノ)(╯°□°)╯︵ ┻━┻


« Reply #87 - Posted 2013-11-04 04:09:17 »

1  
2  
// This works for 2d and 3d, just keep scalez at 1 for 2d.
glScalef(scalex, scaley, scalez);


But beware! You must only do this once, because it just multiplies a matrix (I believe). So if you keep on scaling every update frame, it will be REALLY small!

That's what we have
glLoadIdentity()
for.

Also: ALL matrix operations (except obviously resetting/replacing the matrix etc.) multiply the matrix. That's how matrices work.

Online wessles

JGO Wizard


Medals: 67
Projects: 4
Exp: 3 years


Profile picture isn't relevant.


« Reply #88 - Posted 2013-11-04 12:13:41 »

Thanks! Will research!

Online wessles

JGO Wizard


Medals: 67
Projects: 4
Exp: 3 years


Profile picture isn't relevant.


« Reply #89 - Posted 2013-11-16 03:26:13 »

[snip]

Lots of broken links now.

Pages: 1 2 [3] 4 5 ... 11
  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.

theagentd (16 views)
2014-10-25 15:46:29

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

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

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

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

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

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

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

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

BurntPizza (45 views)
2014-10-11 23:10:45
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!