Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (416)
games submitted by our members
Games in WIP (307)
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: 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.
2  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.
3  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.
4  Game Development / Newbie & Debugging Questions / Re: File loads in eclipse but not in a runnable .jar [unsolved] on: 2013-01-09 05: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).
5  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.
6  Games Center / 4K Game Competition - 2013 / Re: Trace 4K on: 2012-12-18 02:24:20
Actually it's not too bad.

Good job.
7  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.
8  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.
9  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.
10  Games Center / 4K Game Competition - 2013 / Re: [WIP] 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.
11  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.
12  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.
13  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.
14  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.
15  Discussions / General Discussions / Re: Tremble, mortals! I have enslaved your administrator on: 2012-10-02 13:44:29
Congrats guys. Good luck.
16  Game Development / Newbie & Debugging Questions / Re: Changing from windowed mode to full-screen...am I doing something dangerous? on: 2012-09-29 05:08:59
One other thing. Have you downloaded your most recent graphic drivers?
17  Game Development / Newbie & Debugging Questions / Re: Changing from windowed mode to full-screen...am I doing something dangerous? on: 2012-09-28 12:48:53
It could be because you keep dumping the frame everytime you switch modes. Try using a single JFrame for the entire lifecycle of the game whether you are in fullscreen or windowed mode.
18  Discussions / General Discussions / Transparent Windows on: 2012-09-14 23:15:29
I have seen some posts in the past that have asked if Java can do transparent windows with the answers indicating that it can't be done. It looks like the ability has been added recently.

http://www.javacodegeeks.com/2012/09/make-jframe-transparent.html

I have tried it on Windows 7 and it works.
19  Discussions / General Discussions / Flip Code is coming back. on: 2012-08-30 02:49:08
It shut down 7 years ago. Now there is an announcement that it will be coming back.

http://www.flipcode.com/misc/fc3_announce/
20  Discussions / General Discussions / Re: Java GUI programming tutorial part 2 on: 2012-08-22 01:38:44
Part of this is also an exercise for me in writing. I know Swing a lot better than JavaFX. I also haven't been following that JavaFX has been brought into Java 7 as part of desktop UI. I thought it was still just for web UIs. So once I finish the Swing part I am going to write it in JavaFX so I can learn the ins and outs of JavaFX.
21  Discussions / General Discussions / Re: Java GUI programming tutorial part 2 on: 2012-08-21 02:12:59
Ok. Found out how to highlight sourcecode properly for Wrodpress. Both posts have been updated.
22  Discussions / General Discussions / Re: Java GUI programming tutorial part 2 on: 2012-08-21 01:43:53
Thanks guys. Temporarily fixed code going off the screen. I haven't looked into Wordpress  tags yet. Will have to do that next.
23  Discussions / General Discussions / Java GUI programming tutorial part 2 on: 2012-08-19 22:58:40
As mentioned in this thread, I am making a Java GUI tutorial. Part 2 is now up. You can access it at http://markbernard.wordpress.com/2012/08/19/java-gui-made-easy-part-2/

All comments are welcome, either here or in the tutorial post.
24  Game Development / Newbie & Debugging Questions / Re: Drawing directly onto the BufferStrategy on: 2012-07-24 00:47:50
When you are drawing you can cast your Graphics object to a Graphics2D object. Then call Graphics2D.scale(). Then do your drawing after calling scale. All future drawing calls will be scaled.
25  Discussions / General Discussions / Re: Java GUI programming tutorial on: 2012-07-24 00:43:44
JavaFx is pretty nice actually.
It's quite helpful with not making a hideously tangled mess of things, where in Swing it's really easy to create such a mess and very laborious to keep things clean.
Thanks erikd. Makes we want to check out JavaFX even more. Gives me an idea to finish the Swing one and then convert it to JavaFX and make a comparison.
26  Discussions / General Discussions / Re: Java GUI programming tutorial on: 2012-07-22 19:13:11
Swing is terrible for games... Sad JavaFX would be better, although in reality neither are great since most games will require an OpenGL-based UI.
Yes, Swing is terrible for most games. Hoever even if you are writing a 3D game you could still surround your game screen with a Swing interface. Or if you are doing a game that does not require high performance you could also use Swing.

Thanks for the link on JavaFX replaceing Swing. I haven't had a chance to check out JavaFX yet. I will definitely check it out soon.
27  Discussions / General Discussions / Re: Java GUI programming tutorial on: 2012-07-22 19:10:32
I don't know what's behind those links, but I surely hope that it covers how to integrate functionality into a GUI.
Because that has been like a secret for years... It's the holy grail.  persecutioncomplex
What kind of functionality are you haveing problems with? I can take note of it and make a tutorial after this one.
Edit: I went through it quickly on my crappy phone. I see you're using swing. Are youmgoing to continue to use swing?
I like swing, don't get me wrong.. I just think that.. I'm about the only one. Maybe I don't know any better Tongue
Your not the only one. Smiley I have tried some of the other GUI kits around and while the others may have better performance, none of them are as easy to use as Swing. I find a lot of people they have problems with Swing and it usually stems from LayoutManager problems. I also plan to write a tutorial on LayoutManagers too.
28  Discussions / General Discussions / Java GUI programming tutorial on: 2012-07-22 16:31:26
I am starting to write a tutorial on GUI programming in Java. It's going to start pretty simple and work into more complicated areas. All of them will be linked from http://markbernard.wordpress.com/2012/07/22/java-programming-tutorials/. The first part of the first tutorial is at http://markbernard.wordpress.com/2012/07/22/java-gui-made-easy-part-1/.

These are not directly related to making games but could help people that want to use Java GUI components around a game.

Please feel free to leave any comments over there or here on whether things are clear or not or if you just don't agree with the way I did something.
29  Discussions / Miscellaneous Topics / Re: Now listen in ladies, this is it ... (JavaZone) on: 2012-06-27 01:01:23
Way better than those lame fan movies ... that's Alan Ford himself!

Yeah. Loved his role in Snatch. He can swear with the best of them.

That trailer was hilarious too.
30  Discussions / General Discussions / Re: Flash, Java, or both on: 2012-06-26 13:24:12
Is it possible to develop in flash without paying a lot of money on software? I was going to give it a go. I got a book on it and everything, but even the open source software was like £400. I'm still not sure if I am missing something.

http://www.flashdevelop.org/

Doesn't give you the visual editor that comes with Adobe but you it support ActionScript and can create .swf files.
Pages: [1] 2 3 ... 40
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Browse for soundtracks for your game!

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

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
mrbenebob (14 views)
2013-06-19 14:55:23

BrassApparatus (23 views)
2013-06-19 08:52:37

NegativeZero (26 views)
2013-06-19 03:31:52

NegativeZero (29 views)
2013-06-19 03:24:09

Jesse_Attard (33 views)
2013-06-18 22:03:02

HeroesGraveDev (69 views)
2013-06-15 23:35:23

Vermeer (68 views)
2013-06-14 20:08:06

davedes (70 views)
2013-06-14 16:03:55

alaslipknot (62 views)
2013-06-13 07:56:31

Roquen (87 views)
2013-06-12 04:12:32
Smoothing Algorithm Question
by UprightPath
2013-05-28 02:58:26

Smoothing Algorithm Question
by UprightPath
2013-05-28 02:57:33

Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38
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!