Featured games (78)
games approved by the League of Dukes
Games in Showcase (429)
Games in Android Showcase (89)
games submitted by our members
Games in WIP (467)
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 ... 72
1  Game Development / Shared Code / Re: Noise in 2D on: 2012-05-07 19:21:04
depending on your need, alternativly you may use this one ^^  :
2  Game Development / Game Mechanics / Re: Triangulating contour data on: 2012-04-27 16:56:37
If you're going to interpolate normals, those long, narrow triangles will become a PITA. To completely work around this problem, use normalmaps.

IMHO, I am not sure it is necessary to use normalmaps, you can get smooth result with normal interpolation by using the angle of the two edges of the triangle that touch the vertex as a weights on computation of the resulting normal. It usually give good results.

(also maybe I would rather consider a lighting/shadow map (and disable light on rendering if not requiered), as it is easy/fast to compute/update in 2d for land/terrain and can also be used to cast other object shadow)
3  Game Development / Game Mechanics / Re: Triangulating contour data on: 2012-04-15 12:08:36
One thought would be to use something like ROAM but not sure that it is the best for contour

here an old applet with source code

EDIT : you can imediatly test the result by converting your contour image in blue gradiant and test it with the above applet
4  Game Development / Newbie & Debugging Questions / Re: FPS difference on: 2012-04-13 23:53:53
maybe this kind of loop will help (inded feel free to replace currentTimeMillis by nonoTime...)

EDIT: after reading it dos not seems to be as good :/

this one seems better, it will do a fixed step logic/physic and will render only if at least one logic update has been performed (and then max FPS will be also limited to update logic rate but will run logic the same even on computer with very low FPS and will only consume requiered CPU on fastest computer):
time=getTime(); //System.currentTimeMillis or other method
int elapsedTime=(time-lastTime);
int nbLogic=elapsedTime/20;
int interpolateMs=elapsedTime%20;

  for(int n=0;n<nbLogic;n++)
  //interpolateMs can be used to extrapolate rendering...


5  Game Development / Performance Tuning / Re: Fastest way to determine if two rotated rectangles intersect? on: 2012-04-13 11:21:16
If you are looking for fastness rather than precision I would advice to make a first pass using bounding radius of both view and objects (basically distance between center of view and center of object) and remove all object that are too far and than use another method smarter for all remaining viewable objects

basically :

for each objects
double dx=objectX-viewX;
double dx=objectY-viewY;
double distMinSqrt = (viewRadius+objectRadius)²; //<== for even faster test, this value could be precomputed and stored for each object if there size doesnt change

if(dx*dx+dy*dy>distMinSqrt ) //Object wont be viewable

 //Here use a smarter test if requiered

6  Discussions / General Discussions / Re: Raspberry Pi ultra-low-cost ARM based computer (about the size of an USB key) on: 2012-02-29 21:57:24
nb: can also be usefull for prototyping something for a client that would cost a lot of money
7  Discussions / General Discussions / Re: Raspberry Pi ultra-low-cost ARM based computer (about the size of an USB key) on: 2012-02-29 19:52:25
But you can't code on your phone
yes you can ! Wink

but anyway this "toy" is really fun, I found it even more interresting for doing some kind of robotics
8  Game Development / Networking & Multiplayer / Re: Starting point for multiplayer development needed! on: 2012-02-29 18:34:24
I would advice to start by trying & playing with standard network object (Sockets) than once you understand how it work you may want to switch to a library (as it is IMO always important to understand how things works).

Also start with TCP it is a lot easier, you should be able to build you first client/server pretty quickly with a good tutorial
9  Discussions / General Discussions / Re: SCRATCH : An excellent tool for learning the basics of programming on: 2012-02-29 11:35:50
I adopted the Scratch interface for Stencyl a while back. It took a lot of iteration to adapt it for games, and we're still learning and refining the approach a few years later...
wow stencyl looks very nice
10  Discussions / General Discussions / Re: How Long Have You Been Coding? on: 2012-02-28 21:18:59
arround 25 years, starting by doing my first game on a CPC 464 in basic, than going on 8086 assembly for my first 3d engine, and after turbo pascal, and after ..., and after..., and... finally java!

I am still nostalgic for that time, that was really really cool with a lot of things to discover, different computers, different languages, concurrency, games was a little crappy but imagination and coverage of games was doing all the stuffs, this was really cool
11  Discussions / General Discussions / Re: SCRATCH : An excellent tool for learning the basics of programming on: 2012-02-28 10:33:18
I found it pretty useful for learning the basics but don't expect to do anything too exciting with it
yes sure, It is not really what it is intended to do, I am more looking at this soft like a game rather than a program IDE, I found it fun to manage to get something interresting from it that's why I was saying it may be fun for a contest (with this soft as the constraint of the contest)
12  Game Development / Shared Code / Re: Fastest PerlinNoise : Improved version bicubic&bilinear grad&value noise on: 2012-02-25 23:40:21
Hi DzzD,

Your noise func is super-fast, thx for that ! (could be also easily simdized, yum!).

I needed a seamless xy result so I used your multiplication trick to get the pseudo 4D noise and feed it with two circle coordinates. This is also working a treat !

Probably silly question :
Do you think that fake 4D is overkilling / do you have a simpler solution to get your 2D perlin signal tileable ?

The tiling is working cool with your fake 4D trick for now, but I get far more pronounced bi-cubic artefacts with this multiplication trick...

Do you think quintic interpolation could solve this ?

Much thanks again !
sry I was not on JGO for a while...

but I get far more pronounced bi-cubic artefacts with this multiplication trick
yes I pointed this artefact above, this is due to a lack of precision in the bicubic computation (it can be corrected)

Do you think quintic interpolation could solve this ?
probleme come from the discretisation of computation not the computation itself , so I believe that it wont help more than correcting the integer cubic interpolation implementation
13  Discussions / General Discussions / Re: SCRATCH : An excellent tool for learning the basics of programming on: 2012-02-25 23:28:16
If you like visual design like Scratch, you should check out Unreal's Kismet.  Scratch is kind of basic, and the puzzle shapes are hardwired for simple control flow constructs you get in any other language.

Scratch is for  learning basics and IMO  really well done for kids and to help people understand, a fast look let me think that Unreal's Kismet look a bit complex ans less user friendly

(nb: we used sracth for a young trainee  (13/14) in our company and in less than one day without having any knowlege in programming he was able to nearly produce a litte game and start to understand basics of programming)
14  Game Development / Newbie & Debugging Questions / Re: Collision Detection for Circle and Rectangle (including rotated) on: 2012-02-24 15:48:13
you can simplify a lot the problem by changing frame of reference for computation (in other terms compute collision from the rectangle point of view) this way the given problem "Collision Detection for Circle and Rectangle (including rotated)"
become "Computing collision for a moving circle with a static rectangle"

to do it easily if you rectangle is done with four points ABCD like this
|     |

for each physics cycle compute circle position in the rectangle frame of reference :
x distance using the normalized vector CD and point C
y distance using the normalized vector CA and point C

this will give you the position of the circle in the rectangle frame of reference (from the rectangle point of view) where you can compute collision easily (as the rectangle is static : none rotated or translated)

something like (CD & CA normalized):
distCircleX=CDx*CircleX+CDy*CircleY - (Cx*CDx+Cy*CDy);
distCircleY=CAx*CircleX+CAy*CircleY - (Cx*CAx+Cy*CAy);

then compute collsion circle pos if any
if (distCircleX<-radius) => no collision
if (distCircleY<-radius) => no collision
if (distCircleY>CDlenght+radius) => no collision
if (distCircleY>CAlenght+radius) => no collision
if(no corner collision ?) => definitly no collision

 and convert this collison pos from rectangle to original frame of reference
15  Discussions / General Discussions / SCRATCH : An excellent tool for learning the basics of programming on: 2012-02-24 14:05:54
I encourage every one to look & try for fun this project :

I found it fun and very interresting to help people understand basics of programming

You program just using the mouse and can publish your project via Java Applet

(a JGO contest for fun on this tool may be very fun ^^)
16  Discussions / Miscellaneous Topics / Re: Java to Flash (or ActionScript ?) on: 2011-11-22 02:34:16
Why would you want to design in Flash over Java?
hum... du to the crappy java plugin implementation, most customer ask for flash instead of java

AS3 is very much like Java
only for the syntax (and that's not that true, local variable scope are just really stupid in flash)

java & flash have a completly different approach, you wont be able to convert a full project flash to java easily (you can for simple class) but: flash is higher (or at least more far .... ) level language, flash have a lot of predefined features as filters / sprite / etc... that you cant convert from java as it, you also dont manage the rendering loop and flash is damnly slow (maybe slower than javascript if you dont use the right tools : PixelBender/ColorFilter etc ... to deal with pixels) so... as Java & Flash use a completly different approach it is IMO not a good idea to build a project in flash and try to convert it later in flash (it may be right fo simple class test but you may need to earn some experience on flash before)
17  Discussions / General Discussions / Re: Nothing related to Java ! on: 2011-11-22 01:13:46
Off-topic: We haven't seen you for a long time DzzD! Where have you been?
doing some work (for Superdev.... : a startup that Hire me, pleasant but... ) not "that interresting" but enought to "stuck me out" for out-job stuff :/ I really miss that but I plan/hope that i will soon post some interresting code in shared section

you're right about long time, I got 7 pages on "unread topic" :/
18  Discussions / General Discussions / Re: Nothing related to Java ! on: 2011-11-22 01:08:48
LOL at the enthusiastic fat guy at the end Smiley
yes, very enthusiast !

I really like the song! It's quite awesome to see people fight for equality and their rights!

On Lache Rien!! On Lache Rien!! On Lache Rien....ON...LACHEEEEEE RIENN!!!
walou !
19  Discussions / General Discussions / Nothing related to Java ! on: 2011-11-22 00:30:54
Would like to come back with something a bit more technical but I reallly love this one

<a href=";amp;hl=fr_FR" target="_blank">;amp;hl=fr_FR</a>
20  Game Development / Networking & Multiplayer / Re: Java Game Server (RedDwarf) job in North Boston on: 2011-05-25 14:53:40
Are you sure you can't cope with remote working? ;p

+/- 1 : would be really nice.... we also had to deal with remote working but unfortunatly it has never been really satisfying, remote work really require to be well organized
21  Games Center / Showcase / Re: JTetris on: 2011-05-22 20:13:11
Why did you make a Windows and Mac version? It would be better to leave it as a Jar file so anyone can run it.
even better if it was an applet  Wink
22  Games Center / Archived Projects / Re: Joebung tanks on: 2011-05-18 00:29:52
there is something wrong in the loading process (related to sound maybe) it took more than 30s to start (20Mb bandwith), also the gamesize is to small (maybe it was a bug but I only add very few pixels in height).

it may be a fun game to play with other people
23  Discussions / Jobs and Resumes / Re: ATTENTION GAME DEVELOPING GRADUATE IOS PROGRAMMERS! on: 2011-05-18 00:04:53
porting those game may requiere gameplay review / deep modification no ? I mean some of them will no be adapted to some IOS device capabilities : screensize / touchscreen
24  Game Development / Game Mechanics / Re: Customizable avatars in your RPG on: 2011-05-17 23:58:50
depending on the requested goal : use different layers, and a sprite hierarchie : like weapon is child of body

example :
have n weapons animations and only one body animation, if you want to just change clothes/skin/hair colors you may use same spritesheeet but with a tint filter, when user change weapon tou will just change its children weapon spritesheet/animation
25  Game Development / Newbie & Debugging Questions / Re: Random image placement? [Array] on: 2011-05-17 23:51:18
you may use a grid placement to avoid two object to overlap and a stack of pos and maybe a PRNG to avoid different generation, not very optimised but should work well until you use very small object on very big area.

something like :

Vector freePos=new Vector();
int nbPosX = screenWidth / objectWidth;
int nbPosY = screenHeight / objectHeight;
//fill free pos
for(int cx=0;cx<nbPosX :cx++)
 for(int cy=0;cy<nbPosY :cy++)
  freePos.addElement(new Point(cx,cy));

for(int n=0;n<nbObject;n++)
 int pos=(int)(pseudoRandom()*freePos.size());
 Point gridPos=(Point)freePos.elementAt(n);
26  Discussions / General Discussions / Re: Advice for Game Designers on: 2011-05-17 23:22:24
Some people like writing libraries and other people like using those. Both sides can be equally interesting.
yes you're absolutely right, this is two separate way and both have their motivations (this was just a personal opinion)
27  Discussions / General Discussions / Re: Advice for Game Designers on: 2011-05-17 22:31:15
hoho! this topis is becoming hot, where is the JGO fairplay/coolness  Roll Eyes

[size=9pt]2 cents :

related to a previous post about libraries :
being employed dont mind you cannot have fun anymore  Undecided that's why my side I usually prefer rebuilt everything from scratch, including GUI/network/physics/etc... because often, when thinked enought it does not take so much time to rebuild something (anything), it ends more adapted to the project you're working on and a lot more fun to do. IMHO there is nothing more boring to be employed in a big (blockbuster) company that only use/reuse "pre-made" engine. I mean you can use software/libraries or write software/libraries for other and the second one is a lot more interresting.

about studying to get a job (in all area of work), nothing is more efficient then real work, someone who can show real project  and/or have referent people in different companies will always get more attention to anyone having any study/certification, study is only interresting for the first job.[/size]
28  Games Center / Archived Projects / Re: Virtual Ocean Races II (1500€ prices) on: 2011-05-17 19:04:04
22/05/2011 will start a race with 1500€ of prices to win

The race is 950 nm long, duration should be arround 8/15 days depending on skipper ability
Note that before this day we will put a new functionality online, the programmator enable to change direction or sails automatically based on two kinds of trigger : dates & gates.

Also a new boat has been modelised and will be available "Class 40" wich is one of the fastest monohull boat.
29  Game Development / Shared Code / Re: Easy readable PNG decoder on: 2011-05-15 20:36:08
yes ^^
30  Game Development / Shared Code / Re: Easy readable PNG decoder on: 2011-05-15 14:27:14
I did not find any one at the time I wrote it (last year

yours looks nice and more complete too, anyway I dont find it "easily readable", the one I posted above is short and IMO really easy to "read" even by someone who dont understand anything on PNG, but it is more a base to anyone wanting to write its own, I mean I know it is incomplete in many ways, I just wanted to give "base code"

for example showing where the int chunk value come from :
public final static int CHUNK_PLTE = 1347179589;//bytesToInt("PLTE".getBytes());
Pages: [1] 2 3 ... 72

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

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (81 views)
2014-04-15 18:08:23

BurntPizza (73 views)
2014-04-15 03:46:01

UprightPath (84 views)
2014-04-14 17:39:50

UprightPath (67 views)
2014-04-14 17:35:47

Porlus (84 views)
2014-04-14 15:48:38

tom_mai78101 (107 views)
2014-04-10 04:04:31

BurntPizza (167 views)
2014-04-08 23:06:04

tom_mai78101 (263 views)
2014-04-05 13:34:39

trollwarrior1 (214 views)
2014-04-04 12:06:45

CJLetsGame (223 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30 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!