Java-Gaming.org Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
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 6 ... 8
  ignore  |  Print  
  Mercury: The Simple 2D Game Library | >> BETA coming soon <<  (Read 150279 times)
0 Members and 1 Guest are viewing this topic.
Offline Opiop
« Reply #90 - Posted 2014-03-06 23:50:29 »

I'm coming back too Wes Wink The teams all back together! *cliche music plays*
Offline saucymeatman
« Reply #91 - Posted 2014-03-07 00:07:32 »

Dude your old laptop looks EXACTLY like mine! Ha.
HP Pavilion ENVY dv6 is mine, that one looks like a HP Pavilion ENVY also.
Offline kpars
« Reply #92 - Posted 2014-03-07 00:16:01 »

Can we get back on topic before this ends up in the chitchat monster?

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

JGO Kernel


Medals: 382
Projects: 11
Exp: 4 years


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


« Reply #93 - Posted 2014-03-08 21:54:38 »

http://www.indiedb.com/engines/mercury-engine

Looks like you have a problem.

Offline Opiop
« Reply #94 - Posted 2014-03-08 22:00:08 »

Meh, our name is an abbreviation. I don't think it could possibly matter legally because... They are just game engines that are free.
Offline Opiop
« Reply #95 - Posted 2014-03-08 22:11:15 »

Yeah but Apple is a huge company just looking to snatch up more money from smaller companies. I seriously doubt this person would have a problem with us, but it would be a good move to email her.
Offline Agro
« Reply #96 - Posted 2014-03-08 22:12:25 »

it doesnt really matter, its just a name really... how many products/engines have i seen out there that have the same name

Offline HeroesGraveDev

JGO Kernel


Medals: 382
Projects: 11
Exp: 4 years


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


« Reply #97 - Posted 2014-03-08 22:47:34 »

I bet there is no SAGL engine already taken.  Cool

http://sourceforge.net/projects/sagl/

Offline Opiop
« Reply #98 - Posted 2014-03-10 04:12:07 »

So I've been whipping up something fun!

Presenting the AutoLoader function! One thing I always hated when working with resources in other libraries was having to load every single resource one at a time, so I decided to implement a loading function that will load all resources for you!

It's very simple to use (although it is a WIP). Here's how:

First, you can load resources from within or outside of your Jar file. Currently loading for external is the only function that is complete, internal is going to take some more work. To load resources from a folder (relative to the Jar file):
1  
RM.autoLoad("src_base/com/teama/merc/test/resTest", false);

The first parameter the function takes is the folder you wish to load resources from. The second parameter is whether the path is pointing to external or internal resources. The function then loads the files (only files that have parsers for them will load) and adds them to the list of resources contained in the ResourceManager.

Anyway, hope someone enjoys my brain child Smiley

- Team Alluminum
Offline kpars
« Reply #99 - Posted 2014-03-13 21:11:56 »

Thank you for posting this, I feel more people should use IRC.

On a second note, I added a bot to the channel. Feel free to mess around with it.

- Jev
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline saucymeatman
« Reply #100 - Posted 2014-03-18 01:51:45 »

That last part that, I definetly didnt read of course Wink made me laugh hahaha

My frustration expressed in prose :

Oh, my Vanessa
do none other bear the same name as thou?
Because my Vanessa, I'd betcha
your name is all the sweeter shared

Doth only one namespace exist in c++?
Nay, a single identifier in Java?
Hath one's symbols never, not once, been redefined?

Oh, my Vanessa
And if this be all true,
could the Mercurys not share names too?

Vanessa, your giving me the blues.
Are we not indie too?


Offline kpars
« Reply #101 - Posted 2014-03-18 06:28:21 »

I honestly don't think we have to rename the engine 'MERC.ury' for it all to work out. There are a ton of other people using the name 'Mercury' for their game engines, and MERCury is something completely apart from that. I feel that case sensitivity should apply to this, and MERCury has 4 capitalised letters.

There's nothing she can really do as of right now. If you gave her a list of all other game engines named Mercury, and manage to find one made before hers, then maybe she'll change her mind. It all depends. I'll try to stay out of the situation and just work on other things that have to do with the engine itself.

- Jev

EDIT: It should probably be noted that MERCury is no longer named as a game engine but rather a game library, which I assume also contributes some to the issue.
EDIT #2: It should also be noted that MERCury is no longer called MERCury, but just Mercury as of August 2014.
Offline Drenius
« Reply #102 - Posted 2014-03-18 17:08:57 »

That '.' is absolutely ugly.
Offline kpars
« Reply #103 - Posted 2014-03-20 21:38:52 »

Been working on the GUI a lot lately!

Plans for a default look & feel are set for the future, but as of right now nothing along those lines will come.

There's also a bug where the final words of a paragraph will be wrapped even where there's plenty of room for the.
Other than that, It's going along pretty well! GUI stuff is much more fun to do than I thought it would be.

- Jev
Offline saucymeatman
« Reply #104 - Posted 2014-03-30 19:59:37 »

Thats the perfect use case for lambdas, your right...

That looks awsome though. Would you have to register each command you want, or could you just call methods by name?
Offline Phibedy

Senior Devvie


Medals: 9



« Reply #105 - Posted 2014-03-30 20:30:29 »

we also have commandline. "[command] ? " is usefull. it says what type args should have.
[command.part].? shows all commands that start with the command-part (Because we were to lazy to implement a preview  Smiley )
for example:
debug.?
shows debug.log, debug.drawfps, etc.
Offline saucymeatman
« Reply #106 - Posted 2014-03-30 21:50:12 »

Reflection is slow, and allows for alot of misuse, but if this is a debugging took than the person using it knows what they're doing. If its for also intended for an ingame console, you could maybe add in the disabling/enabling of reflection.
Online kingroka123
« Reply #107 - Posted 2014-03-31 02:36:16 »

Maybe you should integrate a console window  Like the Portal console that appears when you press the "`" key

Console cmds:
1  
2  
3  
4  
5  
pause - pauses main thread
resume- self explanatory
getScreen - takes a shot of the window with the game in it, not the console widow or any other window  
getCpuData - prints how much cpu the program is using
newInstance - creates a new instance of the program


Just some ideas  Wink
Offline BurntPizza

« JGO Bitwise Duke »


Medals: 485
Exp: 7 years



« Reply #108 - Posted 2014-03-31 15:14:19 »

Not entirely sure what exactly you're trying to accomplish (I'm short on time) but it sounds like you might be interested in the concept of a REPL.
Offline kpars
« Reply #109 - Posted 2014-04-01 13:34:50 »

[snip]

-wes  Wink

Oh my god Wes, you're becoming Cas.

- Jev Smiley
Offline SHC
« Reply #110 - Posted 2014-04-01 13:37:35 »

Oh my god Wes, you're becoming Cas.

True  Tongue

Offline saucymeatman
« Reply #111 - Posted 2014-04-01 22:55:13 »

*Lame Joke*

I only wish there was a depreciate or -1
Offline BurntPizza

« JGO Bitwise Duke »


Medals: 485
Exp: 7 years



« Reply #112 - Posted 2014-04-02 01:25:17 »

A bit late, but I saw your (wes) post at the top of this page, there is no need for reflection, what you want is the (aptly named, no?) Command Pattern. Example usage:

1  
2  
3  
4  
5  
6  
7  
//pseudocode

while(input.hasMore()) {
      String cmdName = input.getNextToken();
      Object[] args = input.processUntilEndOfLine();
      commandMap.get(cmdName).execute(args);
}



I will also add in variables soon as well. MAYBE you will be able to do math

Again, sounds like you want a REPL.
Offline BurntPizza

« JGO Bitwise Duke »


Medals: 485
Exp: 7 years



« Reply #113 - Posted 2014-04-02 01:39:59 »

You could also use Janino and use Java itself as your "scripting language," but it's likely overkill/not intuitive enough for users.
Offline Opiop
« Reply #114 - Posted 2014-04-02 01:49:53 »

Well I haven't posted in this thread for a while!

Today I'm proud to present to you the new and improved Spritesheet class! Well what does it do, you may ask? Its simple really! First, you obtain or create a spritesheet, then you create a special text file that is parsed by MERCury in a specific and secret way. The information in that file is then used to split up the spritesheet into renderable sub-textures so that you (the MERCury user!) can use spritesheets with style and efficiency. But what's the best part about the new Spritesheet class? Well, read on to find out more!

First lets talk about Spritesheets. Basically, you need two files. A image file (your spritesheet), and a specially designed text file. Lets take a look at the code:
1  
sheet = Spritesheet.loadSheet(Loader.loadFromClasspath("com/radirius/merc/test/tiles.txt"), Loader.streamFromClasspath("com/radirius/merc/test/tiles.png"));

This line of code simply loads a spritesheet. The two parameters are the "special text file", and the spritesheet image file, respectively. After you have done this, you can render a sub-texture from that spritesheet like so:
1  
g.drawTexture(sheet.getTexture("Grass"), 10, 10, 128, 128);


Incredibly easy! Now lets look at the special text file:
1  
2  
3  
HEADER 16
Void 0 0
Grass 1 0


Lets break this down.

HEADER 16 basically means that on one side of the spritesheet, we have 16 sub-textures. Its VERY important you have a "square" spritesheet with the same width and height or else the entire Spritesheet class will fail Sad

Void 0 0

"Void" is the name of the tile. 0 0 specifies that the sub-texture resides at position 0, 0 in the spritesheet. Positions are counted in increments of 1. Take a look at this example spritesheet:


The Grass tile is at (according to our special text file) position 1, 0. On the actual spritesheet you can see that the grass tile (the green square) is 1 tile over from the origin (in the top left hand corner). So, logically, the stone tile (the grey square) would be at position 2, 0.

I will develop a GUI based tool that will speed up the process of creating these special text files, but for now they have to be created by hand! I am also aiming to support non-square sub-textures, but that will be down the road.

On another note, I have also added the basics of IO with text files! More on that later though when it is actually complete.

-Team Radirius (we have a new team name!)
Offline trollwarrior1
« Reply #115 - Posted 2014-04-06 07:01:08 »

Console is pretty awesome, though I don't see a use for console in 2d game engine, which is supposed to be used with code anyway (Is it gonna be like LWJGL or Unity?).
Offline kpars
« Reply #116 - Posted 2014-04-06 07:33:11 »

Cheating! \o/

merc noclip true


- Jev
Offline kpars
« Reply #117 - Posted 2014-04-06 07:34:36 »

Maybe you should integrate a console window  Like the Portal console that appears when you press the "`" key.

This is what I plan on adding once I get the GUI stuff "done!" Pointing

- Jev
Offline Slyth2727
« Reply #118 - Posted 2014-04-07 23:20:34 »

I would like to contribute to the logo part. I consider myself decent at design.

Are you guys actually planning for this to be a real library that the public will consider using, like libGDX, or is it more of a pet project?
Offline kpars
« Reply #119 - Posted 2014-04-07 23:25:12 »

Are you guys actually planning for this to be a real library that the public will consider using, like libGDX, or is it more of a pet project?

Yes. The first real release won't come about for a while though.

- Jev
Pages: 1 2 3 [4] 5 6 ... 8
  ignore  |  Print  
 
 

 
EgonOlsen (44 views)
2018-06-10 19:43:48

EgonOlsen (24 views)
2018-06-10 19:43:44

EgonOlsen (46 views)
2018-06-10 19:43:20

DesertCoockie (201 views)
2018-05-13 18:23:11

nelsongames (126 views)
2018-04-24 18:15:36

nelsongames (125 views)
2018-04-24 18:14:32

ivj94 (866 views)
2018-03-24 14:47:39

ivj94 (127 views)
2018-03-24 14:46:31

ivj94 (770 views)
2018-03-24 14:43:53

Solater (142 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05
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!