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   
  Show Posts
Pages: [1] 2 3 ... 40
1  Game Development / Shared Code / Re: XML Reader Classes on: 2014-07-28 22:54:11
Generally I agree with the idea that you should only ever roll something yourself if learning is what matters to you and not productivity, but Java has 3 built-in ways of parsing XML (DOM, SAX, StAX) which are all really easy to use so why would anyone use a library for this? Huh
Because you still have to do the marshaling yourself. With SimpleXML you create POJOs and then use a serializer to read/write your XML file. All the marshaling is done for you.
2  Game Development / Shared Code / Re: XML Reader Classes on: 2014-07-12 20:04:18
Yeah, don't always just say I am going to roll it myself. If you are trying to get a project done in a certain amount of time then you should always try to find a library. If it is a hobby project that you are trying to learn things then go ahead. Even then sometimes you can get frustrated with a hobby project when you are trying to do everything yourself.
3  Game Development / Shared Code / Re: XML Reader Classes on: 2014-07-10 03:08:18
Have you ever looked at
4  Discussions / General Discussions / Re: "No, You Can't Make Video Games" on: 2014-05-19 13:37:58
This is the biggest problem I have:
No, we really don't, unless you want to encourage the creation of white noise in the medium and devalue everyones work.


DeviantArt is the place where art goes to die in noise.

Just because there are lots of bad games out there does not devalue other peoples work. I went to Deviant Art and saw a lot of nice art. The only problem with a lot of bad games is if the site you are trying to find them on cannot help avoid the chaff and find the gems.
5  Discussions / Miscellaneous Topics / Contribute to the development of the next Unreal Tournament on: 2014-05-10 03:10:17

That's right. They are planning to completely community develop this. They want everyone's input and you can even contribute code.
6  Discussions / General Discussions / Re: The Big Linux Distro Thread on: 2014-04-02 23:27:08
-Photoshop (hmm)

I have tried CentOS and liked it. Although I manually install the JDK and Eclipse because the package manager only has OpenJDK. You also should manually install ANT since if you install it with the package manager it will also install OpenJDK.
7  Games Center / 4K Game Competition - 2014 / Re: Community voting on: 2014-03-02 18:16:40
Figured it out. I thought I could have a 64bit JDK but then install the 32bit JRE for the plugin, but the 64bit took over. Uninstalled everything and reinstalled the 32bit JDK and it is all working.
8  Games Center / 4K Game Competition - 2014 / Re: Community voting on: 2014-03-01 22:06:51
Bloody Java plugin won't keep my security settings. I am running Windows 7 64bit. Whenever I change the Java security to low to try and run an applet, I go into any web browser(IE, Firefox, Chrome). As soon as go to the Java4k site and launch an applet it resets the security to high. Anyone else run into this? I am trying to look at the 4K games but I can't.
9  Discussions / Miscellaneous Topics / Re: Which open source license? on: 2014-02-13 23:54:41
You can allow mods without releasing your source code. Just provide interfaces for people to use. Also use those interfaces for yourself so anyone who makes a mod can do anything that you can do.
10  Java Game APIs & Engines / Engines, Libraries and Tools / Re: Why make a graphics context object? on: 2013-09-27 02:07:23
It is more that just that. The graphics context is an interface used to hide the underlying implementation. So you can start with LWJGL. Then you can add JOGL later and the user of your library can easily switch.
11  Discussions / General Discussions / Re: Do you customize your IDE (Eclipse?) on: 2013-09-17 13:41:32
Okay, but you admit that my syntax coloring preferences and naming schemes are 100% objective. I forgot to mention my indent size is two. When the indent size is ridiculously, impractically large, there is much less marginal utility to one style versus the other. Although to be honest I prefer BASIC style grouping to no-free-line style brackets. In my method you can use the nearly blank line as a "bookmark" and there is a structural symmetry that makes it easy to scan. BASIC syntax also makes it clearer which blocks belong to which initial line, but it's not my favorite.
Again personal preference. I don't like the white space after the for line. I find it harder to read not easier. I also tab 4 not 2. If you need 2 because your nesting so much that it goes off the screen you have to look at your logic to reduce the nesting.
12  Discussions / General Discussions / Re: Do you customize your IDE (Eclipse?) on: 2013-09-16 03:06:24
Syntax coloring is not nearly as useful for identifying code at a glance as white space is. I put brackets on separate lines so that they are alined. It makes control flow structures easier and methods to see. Code that takes more than one line is indented by a slightly amount than the normal indent so it is visually obvious what is and isn't a continuation of a previous line. I also break the rule about CONSTANT_VARIABLES because, really... we have character sets with both upper AND lower case letters. Camel case is superior because it's easier to read and doesn't have underscores. Underscores introduce negative space that looks like white space which makes it harder to "visually parse" code while holding down the page down button or at a glance.
That would be personal preference. I find having braces on separate lines messy and distracting. I use extensive syntax highlighting and that makes it easy to read the code.

I also set up CTRL-TAB as a shortcut for quick editor switching. I move perspectives and views to the left side with no text for easy access. I also maximize the editor window and quickview all the views.
13  Discussions / General Discussions / Re: What would you modify in Swing if you had to rewrite it? on: 2013-08-15 02:25:32
What would you modify in Swing if you had to rewrite it?
If you are thinking of starting a project like this I would be interested.

If you want cross compatability with Android, libgdx might be an option.
14  Discussions / General Discussions / Re: What would you modify in Swing if you had to rewrite it? on: 2013-08-15 02:22:31
The amount of sizes you have to set to make stuff work. Setting size doesn't work, setting defaultSize doesn't work, setting preferred size doesn't work, then you have to create a random dimension object to set another size. Seems like I'm always setting everything to get it to work.
Unless you are sub-classing a swing component you should not be trying to set the size. If you are sub-classing then you should over-ride getPreferedSize() to get the correct size you need.
Repaint is awkward. I end up with every class having a local reference to the repaint thread and it is annoying. My custom list has altered? Well I need to repaint everything then, oh, I cant.
You don't need to repaint everywhere. Repaint cascades down the hierarchy. Just repaint from the top most point you need to. If you have multiple custom components that need repainting then you might want to think about only having one.
Some of the behaviour is twisted. It says in the javadoc that it works when you do X, but in reality it only works when you have a bunch of random prerequisites which it didn't tell you about. Did you remember to call method doRandomStuff(XYZManager x) AFTER you have created the object? Well it doesn't work. Should have been in the constructor then, shouldn't it?
Would need a specific example to comment.
The amount of inherited fields and methods gets in the way sometimes. I know it inherited them from Component, but I don't care about them and I cant find the method I am actually interested in. I would prefer swingObject hasa Component.
Some children are possible only from a JFrame, but not in nested objects. So you want a filedialog window to appear when you click a button in your panel? Well, you can't.
If you are opening a dialog that needs a JFrame you can either pass null or create a dialog builder class that contains static methods but you set it up in the JFrame and pass a reference to the JFrame object.
Is swing JFrame the one where you cant convert easily to an Applet?
You should never put anything directly on a JFrame other than menus. If you want to make your application applet friendly you should build your app from a JPanel down and then you can use that JPanel in either a JFrame or JApplet.
15  Discussions / General Discussions / Re: What would you modify in Swing if you had to rewrite it? on: 2013-07-27 05:18:38
Everyone always complains about Layout managers in Swing. I have never had a problem getting it to do what I want. Is it more just the nesting required to get layouts to work that people don't like?
16  Game Development / Newbie & Debugging Questions / Re: Eclipse is Opening old build on: 2013-06-26 02:32:03
Try going to Window > Show View > Problems.

It might tell you what is going on. It usually takes some kind of error for the project not to build.
17  Discussions / Miscellaneous Topics / Re: if you are not a programmer, what would you be ? on: 2013-06-05 00:37:17
I always planned to become an author when I turned 40. Now, here I am, at 40. Hmm.

Cas Smiley

Go for it. They say it only takes 15 minutes of writing a day to write a book in a year.(Cliche)

I would be a military pilot.
18  Game Development / Networking & Multiplayer / Re: Some general Java NIO questions on: 2013-05-24 02:36:31
Normal sockets need multiple threads to handle multiple clients concurrently, which would result in a cumbersome and resource-hungry multithreading implementation.

With the new concurrent libraries and executor services threading is a piece of cake. You can now write a standard IO socket based server with threading that is dead simple compared to the old thread way or even with NIO.
19  Game Development / Game Mechanics / Re: Entity knockback on: 2013-04-21 16:54:24
I would recommend against having knockback specifically in the entity. Instead you should have an acceleration attribute. You could just use a vector for acceleration. You then apply acceleration to speed every update. Then you apply friction to acceleration right after. This way anything that affects the entity can just change acceleration.
20  Game Development / Newbie & Debugging Questions / Re: File loads in eclipse but not in a runnable .jar [unsolved] on: 2013-01-09 05:15:54

The res folder needs to be placed at the root of your package tree (Typically the root of the jar).
21  Game Development / Newbie & Debugging Questions / Re: Canvas and Images Resizing Proportionately? on: 2012-12-29 13:44:24
Use Java2D full screen or fake full screen and scale your image a fixed amount. This way you control the size of the screen yourself.
22  Games Center / 4K Game Competition - 2013 / Re: Trace 4K on: 2012-12-18 02:24:20
Actually it's not too bad.

Good job.
23  Game Development / Newbie & Debugging Questions / Re: EofException when instantiating ObjectInputStream? on: 2012-12-16 03:17:14
In FileInputStream it returns -1 at the end and doesn't throw an exception. Normal behaviour should not throw an exception. I would expect readObject to return null if it has reached end of stream.
24  Game Development / Newbie & Debugging Questions / Re: EofException when instantiating ObjectInputStream? on: 2012-12-15 00:51:06
I don't know why it is not documented but readObject will throw an EOFException once you try to read past the last object. It is an indicator that you are done reading.
25  Discussions / General Discussions / Re: The JVM and bit errors on: 2012-12-11 04:16:01
Long running games will tend to save automatically as the game progresses. So if it crashes there will be a closer point of recovery.
26  Games Center / 4K Game Competition - 2013 / Re: Furious Birds on: 2012-12-03 13:37:58
Good job.

Found 1 bug. Your max shot count is not reset when a new game begins.
27  Discussions / Miscellaneous Topics / Re: Titan Attacks by Puppy Games is C#? on: 2012-12-02 14:20:39
Just for once would people try to actually educate themselves before starting this idiotic "C# is a Java ripoff" meme again?  Anders Hejlsberg has a history in creating programming languages that's probably longer than James Gosling's, nor did Sun invent the concept of bytecode.  Microsoft is a big company that does a lot of different things, and this constant knee-jerk railing and ranting against everything they've ever touched is infantile, irratating, and just so much noise.

C# is a microsoft language intended to write programs which only run on microsoft system.
third party developers have made it possible by then use it in ways it wasn't intended, like Mono, which is great for us.
Nevertheless the fact that microsoft has to develop their own standards all the time is quite annoying to me, they will copy whatever they see, and I will not support even one thing. (Everything the made is a blatant copy of already existing stuff, only with the microsoft seal of quality, which is faster release for more money, regardless of stability or completion, see, among others, VISTA, BSODs, RROD etc)
Even though they do not get real "support" by me using C#, but its idealism. I will try to use options other than microsoft whenever I can, and I will certainly try to avoid giving them money.

I simply stated "I dont like C#", thats it. I knew it wouldn't end there, because people on the internet have a tendency to question your reasoning and then arguing it.
So you must use Linux? No wait that's direct ripoff of Unix. Mac then? No they first copy everyone else then sue people who copy them. I guess you must use a home grown OS, else that would make you a hypocrite. The world has always worked by people seeing something and saying I can make that better. So whining about who stole what from whom is totally counter productive and wasteful. That's why billions of dollars are wasted in patent and copyright cases instead of people just trying to do some work.
28  Java Game APIs & Engines / Java 2D / Re: GUI for active rendering in Java2D on: 2012-11-29 23:51:33
namrog84's suggestion is the way to go. Use a standard JFrame with normal Swing components and put your active rendered code on a panel by itself.
29  Game Development / Newbie & Debugging Questions / Re: I can't build my project on: 2012-11-11 14:08:48
Where is the resource folder located in the jar file? Where is the class that is loading the image? The path you have set for resource is a relative path from the level of the class that is trying to load it. Try using absolute path from the root of your source package.
30  Game Development / Shared Code / Re: Quadtree and Octree implementation on: 2012-10-17 19:10:56
I prefer my implementations based on JUNG.
We always like alternatives Smiley (and I like tutorials a lot Smiley ) pleeaaasee Cheesy *kindish voice*
(Currently I'm thinking about using quadtrees for a collision lib...)
JUNG has a lot more features. DrHalfway's example is nice in his particular case but I wouldn't use it in a library as is, I would rather use a part of his source code with a more general API for trees. My source code goes farther than JUNG for the tree support, there are a lot more tests similar to Java scenegraphs (Ardor3D, JMonkeyEngine).
Then share.

Don't shoot someone else down for sharing code. This would be a place to start learning since he was nice enough to share it.
Pages: [1] 2 3 ... 40

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 (7 views)
2014-07-30 21:08:39

Riven (20 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 (29 views)
2014-07-23 21:07:15

Riven (30 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 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‑
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!