Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (512)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (576)
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  Discussions / Miscellaneous Topics / Re: Whays the story behind your name on: 2014-10-04 15:07:30
I read a comedy Science Fiction series by Robert Asprin. The first book is called 'Phule's Company' and the main character is Willard M. Phule. He is in the space legion where most people go to disappear and choose an alias and no one asks questions about your past. He started with Lieutenant Scaramouche and then got promoted and had to change his name so he chose Captain Jester. I have been using CaptainJester ever since.
2  Game Development / Shared Code / Re: XML Reader Classes on: 2014-07-28 20: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.
3  Game Development / Shared Code / Re: XML Reader Classes on: 2014-07-12 18: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.
4  Game Development / Shared Code / Re: XML Reader Classes on: 2014-07-10 01:08:18
Have you ever looked at http://simple.sourceforge.net/?
5  Discussions / General Discussions / Re: "No, You Can't Make Video Games" on: 2014-05-19 11:37:58
This is the biggest problem I have:
Quote
No, we really don't, unless you want to encourage the creation of white noise in the medium and devalue everyones work.

DeviantArt.

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.
6  Discussions / Miscellaneous Topics / Contribute to the development of the next Unreal Tournament on: 2014-05-10 01:10:17
https://www.unrealengine.com/blog/the-future-of-unreal-tournament-begins-today

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

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.
8  Games Center / 4K Game Competition - 2014 / Re: Community voting on: 2014-03-02 17: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.
9  Games Center / 4K Game Competition - 2014 / Re: Community voting on: 2014-03-01 21: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.
10  Discussions / Miscellaneous Topics / Re: Which open source license? on: 2014-02-13 22: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.
11  Java Game APIs & Engines / Engines, Libraries and Tools / Re: Why make a graphics context object? on: 2013-09-27 00: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.
12  Discussions / General Discussions / Re: Do you customize your IDE (Eclipse?) on: 2013-09-17 11: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.
13  Discussions / General Discussions / Re: Do you customize your IDE (Eclipse?) on: 2013-09-16 01: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.
14  Discussions / General Discussions / Re: What would you modify in Swing if you had to rewrite it? on: 2013-08-15 00: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.
15  Discussions / General Discussions / Re: What would you modify in Swing if you had to rewrite it? on: 2013-08-15 00: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.
Quote
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.
Quote
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.
Quote
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.
Agreed.
Quote
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.
Quote
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.
16  Discussions / General Discussions / Re: What would you modify in Swing if you had to rewrite it? on: 2013-07-27 03: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?
17  Game Development / Newbie & Debugging Questions / Re: Eclipse is Opening old build on: 2013-06-26 00: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.
18  Discussions / Miscellaneous Topics / Re: if you are not a programmer, what would you be ? on: 2013-06-04 22: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.
19  Game Development / Networking & Multiplayer / Re: Some general Java NIO questions on: 2013-05-24 00: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.
20  Game Development / Game Mechanics / Re: Entity knockback on: 2013-04-21 14: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.
21  Game Development / Newbie & Debugging Questions / Re: File loads in eclipse but not in a runnable .jar [unsolved] on: 2013-01-09 04:15:54
1  
midiPlayer.setSequence(MidiSystem.getSequence(getClass().getResourceAsStream("/res/music/"+song.name+".mid")));

The res folder needs to be placed at the root of your package tree (Typically the root of the jar).
22  Game Development / Newbie & Debugging Questions / Re: Canvas and Images Resizing Proportionately? on: 2012-12-29 12: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.
23  Games Center / 4K Game Competition - 2013 / Re: Trace 4K on: 2012-12-18 01:24:20
Actually it's not too bad.

Good job.
24  Game Development / Newbie & Debugging Questions / Re: EofException when instantiating ObjectInputStream? on: 2012-12-16 02: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.
25  Game Development / Newbie & Debugging Questions / Re: EofException when instantiating ObjectInputStream? on: 2012-12-14 23: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.
26  Discussions / General Discussions / Re: The JVM and bit errors on: 2012-12-11 03: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.
27  Games Center / 4K Game Competition - 2013 / Re: Furious Birds on: 2012-12-03 12:37:58
Good job.

Found 1 bug. Your max shot count is not reset when a new game begins.
28  Discussions / Miscellaneous Topics / Re: Titan Attacks by Puppy Games is C#? on: 2012-12-02 13: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.
29  Java Game APIs & Engines / Java 2D / Re: GUI for active rendering in Java2D on: 2012-11-29 22: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.
30  Game Development / Newbie & Debugging Questions / Re: I can't build my project on: 2012-11-11 13: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.
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.

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

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

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

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

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

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

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

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

BurntPizza (43 views)
2014-10-11 23:10:45

BurntPizza (84 views)
2014-10-11 22:30:10
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!