Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (744)
Games in Android Showcase (225)
games submitted by our members
Games in WIP (825)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Java 2D Racer  (Read 5291 times)
0 Members and 1 Guest are viewing this topic.
Offline krypto

Junior Devvie




while(true) { self.caffeinate (); }


« Posted 2004-09-29 14:58:02 »

I want to try to implement a 2d racer in pure java. top down view. I have been looking for some examples to get started but am having trouble. Anyone got any ideas? I would also like to find an editor that would be well suitedfor the task, and not be hard to setup and use.

JRPG Users -  General Users Site
JRPG Developers -  The JRPG Project's Home
Offline trembovetski

Senior Devvie




If only I knew what I'm talking about!


« Reply #1 - Posted 2004-10-03 05:29:12 »

Check out the Post Your Games here forum, you might find what you're looking for.

Also, there's a bunch of cool games over here:
 http://grexengine.com/sections/externalgames/
some of them are with source code, and there are some excellent articles there, too.

As for the editon, do you mean  a Java IDE? Take a look at  www.netbeans.org, or www.eclipse.org, or ask on Dev Tools forum..
Offline krypto

Junior Devvie




while(true) { self.caffeinate (); }


« Reply #2 - Posted 2004-10-05 07:57:58 »

Quote

As for the editon, do you mean  a Java IDE? Take a look at  www.netbeans.org, or www.eclipse.org, or ask on Dev Tools forum..


No, I use netbeans everyday, I meant an editor for the racing maps/tracks i.e. a generic (java-based) tile editor. Thanks for your reply.

JRPG Users -  General Users Site
JRPG Developers -  The JRPG Project's Home
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline elgarv

Innocent Bystander




Java games rock!


« Reply #3 - Posted 2004-10-06 11:28:04 »

I found this little multiplayer racing game :

http://website.lineone.net/~john.montgomery/RacingGame

Maybe that can help you.
Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #4 - Posted 2004-10-08 16:54:56 »

There's a 2D racing game in the "your games here" forum but it's not a good example. There are none on the java games factory at the moment (nb: now has an easier to remember URL Smiley see below) apart from a very simple but fun one (Driving Ambition) where you are always racing forwards (which is probably not what you want). There will be at least one coming in the next 6 months, because I'm writing one for my book. But, publishing being what it is, that means it will be at least 9 months, maybe much longer, before the book appears with the source etc.

You could have a look at the spaceship and asteroids games for some ideas - they solve a lot of similar problems, bar the "staying on the track" problem.

For the editor, you could try Mappy (google for it). If they ever get out a full java version we'll add it to the JGF tech section, but for now it seems there's only partial java support Sad.

malloc will be first against the wall when the revolution comes...
Offline Abuse

JGO Ninja


Medals: 60


falling into the abyss of reality


« Reply #5 - Posted 2004-10-08 17:18:34 »

If we start up the 4K games contest again, i'm sure there will be atleast 1 4K top down racer entered in it. <hint> <hint> Wink
Offline jojoh

JGO Knight


Medals: 8
Projects: 8


games4j.com


« Reply #6 - Posted 2004-10-14 08:18:31 »

I created a 2D car game a few ages ago. You can have a look at it: http://valhallawebdesign.com/Bumper/ . Maybe you can get some inspiration/ideas from it. One of these days I should bring it into this century and make it fullscreen and bigger tracks...

Offline luisoft

JGO Coder


Projects: 6
Exp: 10 years


Java games rock!


« Reply #7 - Posted 2004-10-14 09:48:14 »

very nice game! is the source code avaiable?
Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #8 - Posted 2004-10-14 12:26:29 »

Quote
If we start up the 4K games contest again, i'm sure there will be atleast 1 4K top down racer entered in it. <hint> <hint> Wink


I'm thinking of starting a competition like that in around a month or so (once JGFv3 is up and running). I'm not sure what competition to go for though. Hmm.

New thread:

http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=Announcements;action=display;num=1097763765

malloc will be first against the wall when the revolution comes...
Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #9 - Posted 2004-10-14 12:37:14 »

Quote
I created a 2D car game a few ages ago. You can have a look at it: http://valhallawebdesign.com/Bumper/ . Maybe you can get some inspiration/ideas from it. One of these days I should bring it into this century and make it fullscreen and bigger tracks...


1  
Adjustable view size to accommodate different CPU-speeds and workloads. If you think the scrolling window is too small, the only thing you have to do is to buy a faster computer. This game is made to cram all the CPU-power out of your machine, so if you got things running in the background you might want to shut them down.


Uh, I don't think so. Or else the CPU just dropped out of my 1Ghz PC and left behind some random 1Mhz chip on the motherboard to do all the work Grin. The render window shrunk down to about 200x200 Sad making th game unplayable. I wasn't given much confidence by the fact that your repaint routine was broken (the panel with the timer in doesn't repaint any more if you drag/resize the applet window) nor by the fact that your gui controls on the bottom left are black text on almost-black background.

All that aside...it feels like it would be great fun if you fixed it up - the controls felt good and the tracks were funky. Making a racing game "feel" right is one of the hardest parts, so if you just fixed up the "easy" bits (i.e. corrected the rendering, got rid of whatever is stealing most of the CPU, etc) then I reckon it would be a cool game Smiley.

Howabout...

1. you get rid of all the GUI, and just render numbers etc directly onto the main window (i.e. a HUD - very easy to do)
2. you replace the gui controls with an "options menu" so that you don't have to worry whether they're screwing up the rendering for the main game
3. you profile it to see where the CPU time is going
4. you use GIFs or BMPs as your level-file format (e.g. "color(0,255,0) == track; color(255,255,255) == wall, etc)
5. webstart it

Then...you'll have a game that is VERY easy for people to make their own tracks, and takes very little effort for you to get running. Then you can put it up here and on JGF, and see if people like it (I think they will) - and you'll probably get enough positive momentum that you then end up spending much more effort to make a really nice version with OpenGL and a real map-editor etc,  plus (eventually) multiplayer mode etc?

Just a thought Roll Eyes

malloc will be first against the wall when the revolution comes...
Pages: [1]
  ignore  |  Print  
 
 

 
Ecumene (145 views)
2017-09-30 02:57:34

theagentd (213 views)
2017-09-26 18:23:31

cybrmynd (292 views)
2017-08-02 12:28:51

cybrmynd (284 views)
2017-08-02 12:19:43

cybrmynd (294 views)
2017-08-02 12:18:09

Sralse (287 views)
2017-07-25 17:13:48

Archive (966 views)
2017-04-27 17:45:51

buddyBro (1092 views)
2017-04-05 03:38:00

CopyableCougar4 (1663 views)
2017-03-24 15:39:42

theagentd (1425 views)
2017-03-24 15:32:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05
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!