Featured games (81)
games approved by the League of Dukes
Games in Showcase (494)
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 ... 20
1  Discussions / General Discussions / Re: How does the JRE run a jar on: 2014-09-16 16:15:44
in Windows you set the file association of a *.jar file to java.exe (..mypath../bin/java.exe)

Control Panel\Programs\Default Programs\Set Associations

Dont know where in the registry this is stored.

Anyhow, java.exe gets launched and then must get the link to the jar file as a parameter.

From there the JavaVM will load the zip-file and look up whats stated in the MANIFEST.MF file, and launches the jar if alls things are set


anyway, its the OS that associated the program or protocol with the file.
2  Discussions / General Discussions / Re: Microsoft to buy Mojang for $2 billion? on: 2014-09-16 15:41:11
Well having lots of money is a good way to have a neverending supply of new friends.   Grin
3  Game Development / Newbie & Debugging Questions / Re: [solved] Finding the distance between 2 rectangles on: 2014-09-16 07:55:46
If you only want to COMPARE  distances (like a heuristic in A*) you can also
leave out the square root, and just calculate   c1 = a*a + b*b

then see wich distance is closer, eg.  c1 > c2  etc,

This gives you a big performance boost skipping the expensive Math.sqrt()

double distanceRaw(int x1, int y1, int x2, int y2) {
    int dx = x2 - x1;
    int dy = y2 - y1;
    return (dx * dx + dy * dy);
4  Discussions / Miscellaneous Topics / Re: What other programming languages do you use & why? on: 2014-09-16 07:38:48
I tend to write some proprietary script + a parser for it,
suited for my needs when having a system that
has to process lots of specific instructions in batch, and has to be easily editable.

It usually only gets as complex as needed for the task.

Apart from that, Im using XML and SQL a lot.
5  Discussions / General Discussions / Re: Microsoft to buy Mojang for $2 billion? on: 2014-09-15 19:54:17
If he is really cool, he will buy a 1 cubic metre gold block.
6  Discussions / General Discussions / Re: Microsoft to buy Mojang for $2 billion? on: 2014-09-15 19:45:23
What I have to thank Notch indirectly and the others here is for having fun creating some Java4K games.
Nice to squeeze some Ideas into ugly looking code lines.

I can also understand leaving a project behind tha became "unreal" in terms of popularity.
Not everyone wants to stand in the spotlight, beeing followed by paparazzis to the loo.
7  Discussions / General Discussions / Re: Microsoft to buy Mojang for $2 billion? on: 2014-09-15 15:53:23
There was a statement from Notch:

I’ve become a symbol. I don’t want to be a symbol

I guess he would join incognito into online forums, not to get all trampled over by fans.
8  Discussions / General Discussions / Re: Microsoft to buy Mojang for $2 billion? on: 2014-09-15 15:36:30
Hm, I already bought Minecraft for like 20€.
Why did they pay so much  persecutioncomplex

Anyway, good Deal for Mojang.
Lots of inspiration came from that game.
9  Games Center / Featured Games / Re: FarSky on: 2014-04-24 13:08:41
The trailer is nice, but the music could use some more touch.

Try to play a bit with the echo/reverb , and maybe upregulate the lower frequency tones (bass)
to make it more film-score like. It also sounds a bit too loud (maybe check if the wave is in "overdrive", eg maxing out the volume-space)
10  Discussions / General Discussions / Re: 30 vs 60 vs 120 FPS on: 2014-03-20 13:59:54
If you would shoot a 24FPS Theatrical Movie using a camera that has an exposure  of only 1/1000 of a second per frame, the movie would apear choppy.

The reason movies in the cinema run smooth, is that each frame has an exposure  of almost 1/24 of a second.
It picks up the change in movement during this time.

Thats the reason computer games appear choppy at even higher FPS,
because their frames represent still snapshots of the scene, not a scene in movement.

eg: the faster your scene changes in a game, the higher the FPS shall be.
A first person game profits more from a higher FPS than a top-down isometric game.
11  Discussions / General Discussions / Re: The balance between quality and accessibility. on: 2014-03-18 13:43:10
Having a slow computer is a good way to test for potential performance issues.

Its too easy to overdo resource demanding procedures and graphics if you
develop on a high end system (ending up to run sloppy on an avarage system),
So regularily checking your project on a slow system can show you what to be cautious of.
12  Game Development / Newbie & Debugging Questions / Re: Reading data from a binary file. on: 2014-03-18 13:27:54
throws a "Log cant use dot int the end" Exception ?

seriously, always print Details about what Exception was thrown, and the Stack trace.
Here check first if your can reference the File (path) in the first place.

13  Game Development / Artificial Intelligence / Re: Pathfinding efficiency on: 2014-03-18 13:19:04
Try "nullifying the path object" before the first path-search,

If it crashed there already, its not related to the path-search itself, but your reset approach.
14  Game Development / Artificial Intelligence / Re: AI Challenge: '2048' on: 2014-03-14 13:55:24
If the random component would be deterministic (ok, only needs a seeded Random), you could implement an AI that at least
can brute force a few rounds ahead, to see a favorable current move. (ending up with the highest card collection, not beeing locked, and having high cards adjacent)
Then repeat it for every move.
15  Discussions / Business and Project Management Discussions / Re: RTS Programmers WANTED! on: 2014-02-21 04:29:20
Here an interesting article about syncronized simulation done in Age of Empires

This explains how to manage a huge number of entities on a very narrow bandwith network.
Basically it works by not sending position/animation data of all entities, but only sending player commands to all clients,
and then having a syncronized simulation run on each client.
It could be relevant to your multiplayer design.
16  Game Development / Game Play & Game Design / Re: The Modern RPG and Inventory Systems on: 2014-02-18 10:56:44
Another choice: only let the player have 2 or 3 weapons and no inventory.
This way the player must pic up the appropriate weapon for the mission.
(by far the most realistc one). Games like FarCry or Arma use this approach.

The question is: do you want a game where you collect (and thus have to spend time managing your stuff)
or do you want to have the player just choose the appropriate equipment for the current mission.

Collecting stuff ist fun, whereas running back and forth to sell your worthles pickups is not.
Also looking at the stats of every pickup can be annoying micromanagement.

In Two worlds Two, they chose a nice solution: you can break up any item into resources, that
can be used to improve your favored items.
This way you are not forced to run to the dealer for every pickup, but can salvage it.

The inventory system to choose is realy a question if your game is item-stat centered or mission configuration centered
17  Game Development / Game Play & Game Design / Re: Game Pausing. Opinions? on: 2014-02-09 01:15:26
providing purchasable items for the gameplay sound like a good business idea.
Just make shure the (free) core game it not broken without the upgrades.
the purchasable items should provide extra fun, but not be a nessesity.

To keep players feels a sense of "fairness", offer them to purchase the item when earning a certain large amount of
points ingame. Most players will not be so determined and choose the purchase instead. but offering them the
alternative (earning points ingame) will leave them  a feeling of having an option to do so.
18  Game Development / Game Play & Game Design / Re: Game Pausing. Opinions? on: 2014-02-08 08:38:13
If its a mobile game there should always be a pause. (a call coming, getting into the bus etc)
The question is, if the player can see the gamescreen and interact with it,
or if it should just black out to a pause screen.

"Interaction pause" could be an optional (easy) mode for example.
19  Games Center / Cube World Projects / Re: First ever 3D Game on: 2014-02-03 09:22:17
The first game that Ive played where you can create a world out of block elements and walk around them in 3D
was in the beginning of the 90s.
An Amiga game called "Tower of Babel".

The concept of a 3D "Block" world is quite old in itself.
20  Game Development / Newbie & Debugging Questions / Re: New on java game developing! on: 2014-02-03 09:09:43
A tip for learning Java:  look into the sourcecode of basic Java classes.
In Eclipse and others you can link the sourcecode bundle of the standard API.
There you can look up thee classes actual implementation.

Its really helpful to see what the String class, or Hashtables do under the hood.
Also it can give you some hints how the "pros" organize their code and naming conventions.
And makes it feel less magic.
21  Discussions / General Discussions / Re: New feature: coding experience on: 2014-02-02 00:19:14
Ok, strictly talking I will count my first jump&run game, i have made as startin point for coding experience (on a Sinclair ZX Spectrum)
22  Discussions / General Discussions / Re: When you're typing on the keyboard, how slouched are you sitting in your chair? on: 2014-01-29 11:35:08
I sit slouched about 80% of the time, dont have any back problems.

I think that humans naturally go into the most convenient and thus healthy position.
Actually forcing yourself to sit "propper" is causing lower back problems:

Of course, actually doing some sport has major benefits to eventual back problems.

(plus get a propper office chair;  just as with your bed, you use it for many hours per day,
thus the price per hour of use is quite low compared to many other expensive toys)
23  Discussions / Miscellaneous Topics / Re: A stupid bug I wrote... on: 2014-01-27 15:37:51
well: there is an angry face in the code:

always delete the angry faces!
24  Discussions / General Discussions / Re: A Reminder To Everyone Here on: 2014-01-22 16:14:43

rank-count = post-count +  medals-count + number of published games + (300 * invisible medals given by Riven)
25  Discussions / General Discussions / Re: A Reminder To Everyone Here on: 2014-01-22 16:00:44
is the algorythm like this ?

rank-count = post-count +  medals-count + number of published games
26  Java Game APIs & Engines / OpenGL Development / Re: MD3 Models on: 2014-01-22 13:38:02
Hello gouessej ,
is the sample MD3 Model used by the Renderer for download somewhere?


edit, Ok, found it

nice MD3 implementation
27  Discussions / Miscellaneous Topics / Re: Comment Tricks on: 2014-01-21 11:22:45
You can conveniently toogle whole blocks by just adding a slash



28  Discussions / Miscellaneous Topics / Re: In one of many Java class files of a commercially release product, so many ints. on: 2014-01-20 15:34:37
Back in the JavaME days, very professional Game Companies tried to use as few Classes as possible,
for compatibility reasons with weaker devices.
The code looked messy from an OOP perspective, but there was a very good reason to do so.

The best solution is not the one that looks nicest (with a little flower on top), but the one that
results in the best stability of the application and understandability for the developer teams.

Plus: you have to also think about the situation that 2 or more Developers have to work simultaniously on the
same class. (that containes the redering logic or so)
In this case merging a list of altered variablenames is easier / less conflics for the sourcecontrol than merging
refactored class-files.
It really depends on the specific workflow during development.
29  Discussions / Miscellaneous Topics / Re: In one of many Java class files of a commercially release product, so many ints. on: 2014-01-20 15:27:43
#1 the Application works (obviously, else it would not have been released)
#2 you only see the obfuscated code, so its guesswork if this is ugly code or has a very pragmatic reason to do so.

I have seen lots of very nice looking code, for projects that just dont work....
30  Game Development / Newbie & Debugging Questions / Re: Confused about NPC's and map editor on: 2014-01-20 09:41:17
I think you need to first seperate your games architecture into relevant Components:

-The Renderer, how is my world brought to the screen.

-the World layout and layers (how are static and dynamic object in the world positioned,
for example:  a bottom layer for the ground, a layer for static buildings, a layer of dynamic objects (NPCs)

-How do I fill the world with content / eg how to load Data.
this could be done with a custom Tile editor, saving the editet worlddata in to textfile,
For NPCs, you could use xml or your own simple definietion script to customize each NPC (position, ID, looks, stats, name etc)

I would not hardcode every NPC and Dialog in the long run, especially if the game gets bigger.
Hardcoding can be done in a prototype to try out stuff.
Best is to use xml or your own file format to store and edit the world, and to seperate the code-logic from the content.
Pages: [1] 2 3 ... 20

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 (21 views)
2014-09-12 09:08:26

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

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

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

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

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

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

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

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

mitcheeb (37 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 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!