Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (579)
games submitted by our members
Games in WIP (500)
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 ... 8
  ignore  |  Print  
  MERCury - 2d Game Engine  (Read 13484 times)
0 Members and 1 Guest are viewing this topic.
Offline SHC
« Reply #60 - Posted 2013-10-06 04:08:44 »

@wesley.laferriere
If you have access to windows, installing Ext2Fsd driver enables you to see linux hard disks from windows.

Offline wessles

JGO Ninja


Medals: 49
Projects: 4
Exp: 3 years


Coding with bad posture since 2011... Nonstop.


« Reply #61 - Posted 2013-10-19 22: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!). This was my first attempt at this 'sprite batching' badilla, but It seems to be worth it. Tell me if I am mistaken at any parts.

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

EDIT:
Oh, and I added in a TextureFactory for those of you that like to use one image for all sprites Smiley.

You don't know nerdiness yet; you haven't even met me!
www.wessles.com
Offline opiop65

JGO Kernel


Medals: 124
Projects: 7
Exp: 3 years


Team Alluminum


« Reply #62 - Posted 2013-10-19 22: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.

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

JGO Ninja


Medals: 49
Projects: 4
Exp: 3 years


Coding with bad posture since 2011... Nonstop.


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

Added in some javadoc!

You don't know nerdiness yet; you haven't even met me!
www.wessles.com
Online Agro
« Reply #64 - Posted 2013-10-21 05:21:57 »

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

Offline SHC
« Reply #65 - Posted 2013-10-21 14:22:27 »

Better use JavaDoc 7

Offline saucymeatman
« Reply #66 - Posted 2013-10-25 18:28:57 »

Hey wes,
Check your email!
Offline opiop65

JGO Kernel


Medals: 124
Projects: 7
Exp: 3 years


Team Alluminum


« Reply #67 - Posted 2013-10-25 21:53:45 »

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

Offline wessles

JGO Ninja


Medals: 49
Projects: 4
Exp: 3 years


Coding with bad posture since 2011... Nonstop.


« Reply #68 - Posted 2013-10-25 23:31:48 »

Okay, I just added in some Ellipses and Circles and their corresponding Graphics methods. I will soon add in intersections to the geometry package.
Also, soon people may want a camera class. That will come soon!

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

Please, give me some more recommendations?
Do not restrain yourself at all! Tell me everything you want here!
I am running purely off of what YOU want!


Thanks a million!

-wes
(jk, I would never add that line at the end of everything. That is for cargo-pants nerds! I, however am a basement dweller!)

You don't know nerdiness yet; you haven't even met me!
www.wessles.com
Offline opiop65

JGO Kernel


Medals: 124
Projects: 7
Exp: 3 years


Team Alluminum


« Reply #69 - Posted 2013-10-26 01:11:34 »

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

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

JGO Ninja


Medals: 49
Projects: 4
Exp: 3 years


Coding with bad posture since 2011... Nonstop.


« Reply #70 - Posted 2013-10-26 20:39:16 »

I personally have never used a library with one (mostly b/c stubborn me won't use any libraries!). Any features you would like in them?

You don't know nerdiness yet; you haven't even met me!
www.wessles.com
Offline opiop65

JGO Kernel


Medals: 124
Projects: 7
Exp: 3 years


Team Alluminum


« Reply #71 - Posted 2013-10-26 21: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!

Offline wessles

JGO Ninja


Medals: 49
Projects: 4
Exp: 3 years


Coding with bad posture since 2011... Nonstop.


« Reply #72 - Posted 2013-10-27 03:58:17 »

Was working on the camera, but got stumped (its coming, but not tonight  Tongue)... So I decided to get funky! I am starting work on a 'Far-Out' demo that will be a dancing game. Here is the earliest version (no interaction, but some 'fab' tunes!), 'To The Max!'

Thank you, and i'll be sure to Catch You All On The Flip~Side!

You don't know nerdiness yet; you haven't even met me!
www.wessles.com
Offline opiop65

JGO Kernel


Medals: 124
Projects: 7
Exp: 3 years


Team Alluminum


« Reply #73 - Posted 2013-10-27 04: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.

Offline wessles

JGO Ninja


Medals: 49
Projects: 4
Exp: 3 years


Coding with bad posture since 2011... Nonstop.


« Reply #74 - Posted 2013-10-27 04:18:43 »

There. It should work now  Smiley.

EDIT:
Oh, and don't really expect to
Quote
see what your library is 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!

You don't know nerdiness yet; you haven't even met me!
www.wessles.com
Offline opiop65

JGO Kernel


Medals: 124
Projects: 7
Exp: 3 years


Team Alluminum


« Reply #75 - Posted 2013-10-27 04: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

Offline wessles

JGO Ninja


Medals: 49
Projects: 4
Exp: 3 years


Coding with bad posture since 2011... Nonstop.


« Reply #76 - Posted 2013-10-27 04: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...). Have a far-out-hip-hoppeddy-disco-moon-fruit-to-the-6th-power-demo-playing time.

You don't know nerdiness yet; you haven't even met me!
www.wessles.com
Offline opiop65

JGO Kernel


Medals: 124
Projects: 7
Exp: 3 years


Team Alluminum


« Reply #77 - Posted 2013-10-27 04:42:50 »

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

Offline wessles

JGO Ninja


Medals: 49
Projects: 4
Exp: 3 years


Coding with bad posture since 2011... Nonstop.


« Reply #78 - Posted 2013-10-27 04: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

You don't know nerdiness yet; you haven't even met me!
www.wessles.com
Offline opiop65

JGO Kernel


Medals: 124
Projects: 7
Exp: 3 years


Team Alluminum


« Reply #79 - Posted 2013-10-27 04: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.

Offline wessles

JGO Ninja


Medals: 49
Projects: 4
Exp: 3 years


Coding with bad posture since 2011... Nonstop.


« Reply #80 - Posted 2013-10-27 04:52:15 »

Then why is it running on mine?  Undecided

You don't know nerdiness yet; you haven't even met me!
www.wessles.com
Offline opiop65

JGO Kernel


Medals: 124
Projects: 7
Exp: 3 years


Team Alluminum


« Reply #81 - Posted 2013-10-27 04: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 #82 - Posted 2013-10-27 04:54:37 »

Then why is it running on mine?  Undecided

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

Offline wessles

JGO Ninja


Medals: 49
Projects: 4
Exp: 3 years


Coding with bad posture since 2011... Nonstop.


« Reply #83 - Posted 2013-10-27 05:03:56 »

The duplicate...

KAAAAAAAAAAAAAAAAAAAAAAAAAAAHHHHHHNNN!

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, ...

You don't know nerdiness yet; you haven't even met me!
www.wessles.com
Offline opiop65

JGO Kernel


Medals: 124
Projects: 7
Exp: 3 years


Team Alluminum


« Reply #84 - Posted 2013-10-27 05:29:00 »

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

Offline wessles

JGO Ninja


Medals: 49
Projects: 4
Exp: 3 years


Coding with bad posture since 2011... Nonstop.


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

Well guys, after a bit of programming a MERCury re-half-re-make of Horde with this engine seems to be all of what I used out of slick2d now... Albeit less fast, more buggy, but it produces about the same workload-relief as slick2d did while I was making Horde! Granted slick2d did a LOT more than I used, but this engine works for simple games!
Milestone!

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

Like said, I still need someone more 'Shader-Experienced' to test out my shader capabilities. Well, not test, since I have no doubt it will be the WORST shader code ever, but just give me something to work on!

How do you like it? What else would you like to be add? Your feedback is much appreciated!

Thank You All!

-wessles
(I am debating with myself now... Should I add in a signiture?! If so, should it be superscripted?!)

You don't know nerdiness yet; you haven't even met me!
www.wessles.com
Offline saucymeatman
« Reply #86 - Posted 2013-11-04 01:41:07 »

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

JGO Ninja


Medals: 49
Projects: 4
Exp: 3 years


Coding with bad posture since 2011... Nonstop.


« Reply #87 - Posted 2013-11-04 01: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 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!

You don't know nerdiness yet; you haven't even met me!
www.wessles.com
Offline HeroesGraveDev

JGO Kernel


Medals: 212
Projects: 11
Exp: 2 years


If it wasn't Awesome, it wasn't me.


« Reply #88 - Posted 2013-11-04 05: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.

Offline wessles

JGO Ninja


Medals: 49
Projects: 4
Exp: 3 years


Coding with bad posture since 2011... Nonstop.


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

Thanks! Will research!

You don't know nerdiness yet; you haven't even met me!
www.wessles.com
Pages: 1 2 [3] 4 5 ... 8
  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.

xsi3rr4x (35 views)
2014-04-15 18:08:23

BurntPizza (31 views)
2014-04-15 03:46:01

UprightPath (46 views)
2014-04-14 17:39:50

UprightPath (29 views)
2014-04-14 17:35:47

Porlus (46 views)
2014-04-14 15:48:38

tom_mai78101 (67 views)
2014-04-10 04:04:31

BurntPizza (127 views)
2014-04-08 23:06:04

tom_mai78101 (227 views)
2014-04-05 13:34:39

trollwarrior1 (192 views)
2014-04-04 12:06:45

CJLetsGame (199 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
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!