Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (495)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1] 2 3 ... 24
1  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-09-17 17:55:16
I (hackishly) changed the basic setup of Core's in Mercury (JGO Post Here).
Pretty good stuff.

Old boilerplate code would normally look like this:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
public class MyClass extends Core {
    Runner runner = Runner.getInstance();

    public MyClass() {
        super("Example");

        runner.init(this, 800, 600, false);
        runner.run();
    }

    public void init()              {}
    public void update(float delta) {}
    public void render(Graphics g)  {}
    public void cleanup()           {}

    public static void main(String[] args) {
        new MyClass();
    }
}

Now it looks like this:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
public class MyClass extends Core {
    public MyClass() {
        super("Example", 800, 600, false);
    }

    public void init()              {}
    public void update(float delta) {}
    public void render(Graphics g)  {}
    public void cleanup()           {}

    public static void main(String[] args) {
        new MyClass().run();
    }
}

You can read more about this here. Not the biggest change in the world, but still neat IMO.

I actually did this two days ago, but I figured I might as well post about it. Smiley

- Jev
2  Games Center / WIP games, tools & toy projects / Re: Introducing Mercury: A Simple 2D Game Library | -> Beta coming soon <- on: 2014-09-16 16:25:34
Hello, Everyone.

I actually have a big announcement to make regarding the project... Quite a few of them actually.

The project is officially over a year old now, and a lot has happened in the past year that we've been developing this.
The original goal, a full year ago, was just to make a game library for shits and giggles.

In the past few months, our project's goal has completely changed. Now we're actually making a game library that intends to both stay simple and avoid the unnecessary. That's pretty much it. Whether or not we have yet reached those goals is up for debate Roll Eyes. We figured that if we want others to recognize this mindset though, we need to turn our entire development philosophy around. To get a head start, we're officially going to rename the project to something much simpler and recognizable.

From now on, the project is just going to be called... Mercury.
That's right, I'm serious. From now on there will be no more of those 3 annoying capitalized letters.
Incase you were wondering what they were there for, it was supposed to be a cheesy recursive acronym:
"MERCury is Easy, Reliable, and Capable!"


With that out of the way, we're also taking on a whole new approach to the way we design the library and give its description meaning..

To describe Mercury, we normally tend to say that it's 'A Simple Java Game Library'. The problem with this is that we don't actually think about what it means nor what impact it has on our development and design decisions. It has no meaning right now, to say the least. Currently we're in a whole new chapter of Mercury's development, and because of this we're finally going to solve this problem. In other words, we're going to actually make the project live up to what we've described it as previously. We, the developers, are and always have been minimalists to some extent. We live by the philosophy that less is more and demonstrate that in our non-coding work. Now, I would say that it's time we start actually bringing this philosophy into Mercury's development for the better. We're going to begin by working on avoiding clutter and gradually move away from the distracting and unnecessary parts of functionality that we previously would've wanted to have. From now on, expect a lot of experimentation to go down. We're going to be trying out completely new ideas with the goal of simplifying game development in a modern, simple way that anybody can pick up with ease. That's how we plan to give the project and its description some meaning again.
This was probably horribly worded.

Enough said regarding that, now let's move on to the code itself!

For the past week and a half I've been tinkering around and fixing many kinks and bugs in the library. (Changelog here) And honestly, there is a lot of stuff wrong with it right now. Currently, our main issue is the staggering amount of leftover code in the library from its early days. In-case some of you hadn't known, Mercury had originally started out as a 3D library and 'downgraded' to 2D about a week in for the sake of making things less time-consuming. There were still a few tools built into the library to deliver not-so-good support for it, and now they've finally been removed in my latest commit.

I'm also proud to say that the way Core's are setup now has been completely reworked as well. I'm just going to let the code explain for itself.

Here is what your average class would be like, using Mercury just but a couple days ago:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
public class MyClass extends Core {
   Runner runner = Runner.getInstance();

   public MyClass() {
      super("Hello");

      runner.init(this, 800, 600);
      runner.run();
   }

   public void init()              {}
   public void update(float delta) {}
   public void render(Graphics g)  {}
   public void cleanup()           {}

   public static void main(String[] args) {
      new MyClass();
   }
}

While this is extremely short when compared to class setups in things like Slick2D, I figured that we could do this better and in a much more simplistic manner.

Here's how the basic layout of a Mercury program looks now:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
public class MyClass extends Core {
   public MyClass() {
      super("Hello", 800, 600);
   }

   public void init()              {}
   public void update(float delta) {}
   public void render(Graphics g)  {}
   public void cleanup()           {}

   public static void main(String[] args) {
      new MyClass().run();
   }
}

This is perfect in my opinion. Now the user doesn't have to do anything with the Runner nor know exactly what it does to get a basic program going. Not the biggest change in the world, but still pretty awesome I feel.

Granted, a bit of hackery was required to get this to work. All of the code for it should be cleaned up very soon, probably by Me or Wesley.

With that out of the way, there's still even more to discuss. Remember that awful Color class? We've already gotten some complaints about that one. I'm very happy to say that now it's much easier to use, yet less buggy too. I've additionally added new g.setColor(); functions that simply take in 1, 3 and/or 4 variables containing each component. So now you have the choice of either creating a new object for your colors or passing in all of the variables for one right there. Pretty neat stuff IMO. I've also re-done the color palette entirely. This time, I've decided to do it with easy-on-the-eye colors that I feel are and will be very delightful to use in different projects.

Demos of the library are also now in development, and most of the classes in the test package have been removed for the sake of keeping the library clean. The code for them tends to be very awful. I've also made a few changes regarding splash-screens, now you don't have to manually display them in your render function. I've also brought back the drawRectangle() function, for it was gone a while back and replaced with drawPolygon(). (Still not replacing drawPolygon() though)

We're only about 80% done with the renaming process and going through all of the files to make sure we don't miss anything. Right now we're still in the middle of having to update splash screens, leftover documentation, GitHub-related things, and a bunch of other junk. Feel free to contact me or Wesley to report any files/code that still uses the 'MERCury' name. The Wiki will also be updated later. So don't worry about that.

That's pretty much it really. A lot of other things have been changed, but they're not significant enough for me to need to mention them in this post. Tongue
Again, check the (horribly-written) change-log if you really want to know all of what happened.

TL;DR Update:
Core's are now much easier to setup,
We've changed the project's name to 'Mercury,'
We've turned our entire development philosophy around,
1.0.1 Beta, our first official release, will be released later within the next 1-2 months with various changes,
Many bugs have been, will be, and are being fixed.

You can download the latest build here:
Mercury-1.0.1.jar (1.0mb)

The code is still really hackish right now and everything is still a bit buggy, so please don't hesitate to leave an issue on the issue tracker at any time if you experience any problems.

Thanks, that should give you guys a bit of an update as to what's going on with the project.

I've probably made a ton of grammatical errors in this post and may have not worded things too well, I'm tired from having worked on the project all night. I'll probably just make a second edit later with some typo-fixes. Tongue

- Jev

EDIT: Yep, I know the versions on the JARs are all messed up.
1.0.1 isn't going to be out for a while, so ignore the name of the JAR files. I'll fix this issue soon. Tongue
3  Discussions / General Discussions / Re: Microsoft to buy Mojang for $2 billion? on: 2014-09-16 15:43:20
-snip-

Sounds like somebody misinterpreted my post. Wink

- Jev
4  Discussions / General Discussions / Re: Microsoft to buy Mojang for $2 billion? on: 2014-09-16 07:42:03
pps: I hope he aint leaving java though. That would be sad imho.

He already "left" Java two years ago. He's been working on things with Unity and Dart/WebGL in the meantime.

Quote from: Notch
I’ve become a symbol. I don’t want to be a symbol, responsible for something huge that I don’t understand, that I don’t want to work on, that keeps coming back to me.

I'm going to be 100% honest here, I don't blame him.

As @KevinWorkman had said earlier, people have basically turned Notch's public image into an arrogant, clichéd hipster that calls himself an 'Indie Game Developer', who is some kind of sage of the video games industry and spews out controversial opinions on Twitter every once in a while. The reality is that Notch is just a hobbyist game developer who had become successful for once. He isn't a god, he isn't a complete hipster either. He isn't a game design genius, nor is he an authority on video game development. He's just a hobbyist programmer just like you and me, just like most of the people who go on this forum. He literally just is a JGO-tier game programmer. People should stop seeing and treating him as to that of how others see and treat him.

As for the Mojang/Microsoft deal itself... I don't really give a damn. More power to Mojang for actually going through with it. Now I haven't played Minecraft in a while, but I'm pretty sure everybody who's played it knows that it's pretty much a gigantic clusterf**k right now. If Microsoft has any impact on Minecraft's development, let's hope to goodness it's a positive one. Maybe they'll get professional developers in on the project so it will, as people have suggested earlier, stop looking like the world's biggest hobbyist/pet project.

I think everybody, including myself, is just being a douche about the deal.
I'm no Mojang/Notch fanboy, but those are just my two-cents on the situation.  

- Jev
5  Discussions / General Discussions / Re: Why are people jerks? on: 2014-09-12 17:44:29
Because we're humans. We hate by nature.

- Jev
6  Games Center / Cube World Projects / Re: Open source cube world projects on: 2014-09-08 02:34:13
There's this small game called minecraft Grin

Minecraft isn't open-source.

There are de-obfuscated versions of the game's code, but to redistribute any versions of it would be illegal regardless of what modifications are made to it.

There wouldn't be anything to learn from its code either way.

- Jev
7  Game Development / Newbie & Debugging Questions / Re: Noob Questions From Nickropheliac: Adding ScreenShake Every Collision on: 2014-09-06 07:04:51
Assuming you're using Java2D, just use a function like
g.translate(x, y)
for this. The easiest way to create a screenshake 'effect' is by generating a couple random values and translating the viewport to wherever those values point to.

To do this, use Java's
Random
class. It's really useful for doing small things like what you're trying to do right now.

- Jev
8  Discussions / Miscellaneous Topics / Re: What other programming languages do you use & why? on: 2014-09-06 00:52:13
Many.

Personally, I don't have any reason for using different programming languages for the same task.
I feel that you shouldn't have a reason either.

I think a better question to ask would be: "What other tasks do you use Java for besides game development?"

I say this because the truth is: game development is a really odd field to be in from a programming perspective. There are no real and/or good languages out there that are completely intended to be used with game development, and to build one you would have to look at nearly every single one of the problems and flaws that we see when creating games with the other ones. It would involve eliminating every issue with other popular languages and platforms that are already used for game development, while then figuring out a way to find good solutions for them; which is a horrifically difficult thing to do. The reality is that this will most likely never happen. I honestly just don't see what benefits such a thing would have when we're already doing such a fine job with the languages we're working with currently.

I guess it really just depends on what perspective you take on different programming languages in general. I personally don't believe in the idea that there is one programming language to rule them all, I think that is just stupid. All programming languages have their merits, and if you feel the need to argue between them and as well think that there is one brilliant, perfect language that magically fits all tasks, you shouldn't be programming in the first place. Programming languages are like weapons in a fighting game or first-person shooter: They're all good for different situations, but for the wrong reasons. And similar to weapons in a first-person shooter: everybody can do well with any of them provided that they know what the hell they're doing. Wink

Those are my thoughts on this.
Keep 'em coming!

- Jev
9  Discussions / Miscellaneous Topics / Re: Killers/Murderers - Are they really wrong? on: 2014-08-28 23:10:59
Our entire society is driven by psychopaths. It has been for years now, and it will never stop.

Cope.

- Jev

How come I never see leaders who actually want to work on  (despite money) helping the planet?
Random Excuse: "Well, it's still there so I don't need to worry about it"

The truth is that a lot of the leaders you see aren't actually making that much money for what they do.

That's why they act like maniacs.

Quote
Our entire society is driven by psychopaths.
Psychopaths or sociopaths?

Well really they're almost the same thing.

+1.
They're terms we all just randomly toss around. Like many other words they're slowly losing their meaning.
I don't have an issue with it.

- Jev
10  Discussions / Miscellaneous Topics / Re: Killers/Murderers - Are they really wrong? on: 2014-08-27 22:40:00
Our entire society is driven by psychopaths. It has been for years now, and it will never stop.

Cope.

- Jev
11  Discussions / General Discussions / Re: dart on: 2014-08-27 20:24:29
You forgot to link to the homepage:
http://dartlang.org/

Personally, I'm not that interested.
Seems like a good language, but I don't see what new stuff it brings to the table for game development.

- Jev
12  Games Center / Contests / Re: Ludum Dare 30 (Connected Worlds) on: 2014-08-23 20:44:55
I'm still continuing. I just now got to the design portion of the game.

Hopefully this will be fun.

28 hours left. I may go into the jam if I completely run out of time.

- Jev
13  Games Center / Contests / Re: Ludum Dare 30 (Theme Voting Open) on: 2014-08-22 19:55:29
I am officially prepared.



- Jev
14  Games Center / Contests / Re: Ludum Dare 30 (Theme Voting Open) on: 2014-08-21 14:42:49
Ludum Dare 30 begins 1 day, 10 hours, 17 minutes and 20 seconds from now.

Get Hyped.

- Jev
15  Discussions / Miscellaneous Topics / Re: Interesting Profile pictures on: 2014-08-21 12:23:12
I code, therefore I am.

- Jev
16  Games Center / Contests / Re: Ludum Dare 30 (Theme Voting Open) on: 2014-08-21 07:42:20
I would be making a warmup game if I weren't in the middle of rewriting MERCury's GUI system, which I plan on using this LD.

Potato Salad is love.
Potato Salad is life.

- Jev

17  Discussions / Miscellaneous Topics / Re: How often do you code on: 2014-08-18 18:52:05
Whenever I find myself needing to solve a problem that requires code to be solved.

- Jev
18  Games Center / Contests / Re: Ludum Dare 30 (Next Weekend) on: 2014-08-18 13:25:00
Might Enter. Cheesy

Highly depends on what I'll be doing when the time comes, but I'll try to get in.
No clue how it will go, haven't done much game development recently.

I'll most likely be using MERCury to make my game, if I actually manage to get enough time to do the competition.

Will prepare drinks in the meantime.

- Jev
19  Discussions / Miscellaneous Topics / Re: Popular Game Genres/Trends on: 2014-08-04 05:22:57
Copying.

- Jev
20  Games Center / WIP games, tools & toy projects / Re: Introducing MERCury: A Simple 2D Game Library >> Beta Coming Soon << on: 2014-08-04 00:53:33
@saucymeatman:

Done. Smiley
Thanks for the great idea.



@Everyone:

In this past month, we've been working pretty hard on 4 requested things, and I'm happy to say that they're finally ready.

Here are 4 new places where you can go to learn about and discuss MERCury.



1. The MERCury Website

A portal to all things regarding MERCury. Link.

2. The MERCury Forum

A place to discuss game development with MERCury and improvements to the library. Link.

3. The MERCury Wiki

A carefully written place to learn how to use MERCury and how MERCury works. Link.

4. The MERCury IRC

A place for general chat and discussion about MERCury. Webchat Link.



So join the forum, get in the IRC channel, enhance the wiki, and do whatever you can to enhance the project!
Thanks for helping with everything.

- Jev
21  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-08-01 18:39:45
Tore apart my computer, made a ton of upgrades.
Re-Installed Linux.

Decided to give KDE another chance.
Pretty Fun.

- Jev
22  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-07-17 01:27:23
I am working on my Game-Framework again, slowly turning it into a Game-Engine.

The result looks awesome (Using Portal 2 textures in this Image):
-image-

That looks f**king amazing.

- Jev
23  Discussions / Miscellaneous Topics / Re: [Girls] How to completely block them from our lives? on: 2014-07-12 20:28:55
Okay. Lock up the thread. I think it's done with.



- Jev
24  Discussions / Miscellaneous Topics / Re: [Girls] How to completely block them from our lives? on: 2014-07-12 19:16:10
I prefer to get beauty done, not shit. Smiley

- Jev
25  Discussions / Miscellaneous Topics / Re: [Girls] How to completely block them from our lives? on: 2014-07-12 19:03:43
Less Program, More Inspiration.

- Jev
26  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-07-12 06:46:49
Wow, that looks really nice Smiley Is it online yet, or sill in development?

Still working on it. Tongue
I can PM you a link to a demo version of it if you want.

@SHC:
I like the effect that you have going on with your image, but the text is barely readable IMO.

- Jev
27  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-07-12 06:42:55
I too have been working on a site:


I still don't know what to think about this design.

Oh, and I also made this thing on accident:


Some cool stuff is showing up in this thread! Cheesy

- Jev
28  Discussions / Miscellaneous Topics / Re: [Girls] How to completely block them from our lives? on: 2014-07-12 04:52:17
I'm done.

This thread is horrible. Why am I even reading this?
It takes an insane masochist to browse a thread like this. Oh well.

You've clearly done no research on drugs, which I would recommend doing before you get thrown into high school. You seem to have a backwards perspective on the whole drugs situation.

Anyways, just stop. Please. I know that you want to learn and get some advice, but please refrain from posting stuff like this in the future.

Feel free to post stuff like this to 4chan, just do whatever you have to do to keep it away from JGO.

Thank you, and sorry if this seemed too harsh.
- Jev
29  Games Center / WIP games, tools & toy projects / Re: MERCury - 2d Game Library | Experimental release in development; test it out! on: 2014-07-12 00:38:31
Fixed.

- Jev
30  Games Center / WIP games, tools & toy projects / Re: Square World 0.3.5 on: 2014-07-10 20:58:11
Don't use either.

Both Applets and Web-Start are dead.

- Jev
Pages: [1] 2 3 ... 24
 

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

The first screenshot will be displayed as a thumbnail.

Dwinin (28 views)
2014-09-12 09:08:26

Norakomi (57 views)
2014-09-10 13:57:51

TehJavaDev (75 views)
2014-09-10 06:39:09

Tekkerue (38 views)
2014-09-09 02:24:56

mitcheeb (57 views)
2014-09-08 06:06:29

BurntPizza (45 views)
2014-09-07 01:13:42

Longarmx (28 views)
2014-09-07 01:12:14

Longarmx (34 views)
2014-09-07 01:11:22

Longarmx (35 views)
2014-09-07 01:10:19

mitcheeb (40 views)
2014-09-04 23:08:59
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

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!