Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (578)
games submitted by our members
Games in WIP (499)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1] 2
  ignore  |  Print  
  Speed4k  (Read 7319 times)
0 Members and 1 Guest are viewing this topic.
Offline Alan_W

JGO Knight


Medals: 8
Projects: 3


Java tames rock!


« Posted 2005-12-04 18:09:00 »

Achieve 10 laps in the best possible time, whilst avoiding the other innocent road users.

Play Speed4k

Controls:
- Move Player:    Cursor Keys
- Start Game:     Enter Key

Notes:
- 2GHz or better processor recommended for best framerate.
- Tested on Windows, Mac OSX & Linux  (Thanks to arne for the linux testing)

Time flies like a bird. Fruit flies like a banana.
Offline kevglass

JGO Kernel


Medals: 85
Projects: 25


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #1 - Posted 2005-12-04 18:15:37 »

Wow! New technology level in 4k achieved!

Brilliant! Brialliant! Brillaint!

Kev

PS. Hard to control tho Wink

Offline darkprophet

Senior Member




Go Go Gadget Arms


« Reply #2 - Posted 2005-12-04 18:19:31 »

as brummies would say : "tha' is well nice"

Friends don't let friends make MMORPGs.

Blog | Volatile-Engine
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 70
Projects: 15


★★★★★


« Reply #3 - Posted 2005-12-04 18:33:23 »

damn the tech on this game is on another level  Shocked

if only it had a motor bike as the vehicle you drive it'd be a road rash clone Smiley
Offline arne

Senior Member




money is the worst drug- we should not let it rule


« Reply #4 - Posted 2005-12-04 18:40:40 »

How did you manage to put that into 4K Huh

Great Game !! Cheesy

- Only tested on Windows so far

works on Linux, too.

Arne

:: JOODE :: Xith3d :: OdeJava ::
Offline f.l.x

Senior Member


Projects: 3


there is no place like 127.0.0.1


« Reply #5 - Posted 2005-12-04 18:48:11 »

really impresive! congrats

ran pretty smooth in a 1.3ghz athlon  Roll Eyes

Litterarum radices amaras, fructus dulces
http://flx.proyectoanonimo.com
figth spam!
Offline Alan_W

JGO Knight


Medals: 8
Projects: 3


Java tames rock!


« Reply #6 - Posted 2005-12-04 18:52:18 »

How did you manage to put that into 4K Huh

With great difficulty.  It's been over 4k all weekend.  Fortunately it's now scraping in.

Quote
works on Linux, too.

Thanks for testing.  I just need to fire up my Mac now.

if only it had a motor bike as the vehicle you drive it'd be a road rash clone Smiley

I see what you mean.  However getting the bikes to lean over realistically on corners would be challenging Wink

PS. Hard to control tho Wink

 Smiley  

Time flies like a bird. Fruit flies like a banana.
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #7 - Posted 2005-12-04 19:19:29 »

Wow.

My game is still at 4400 bytes and it's very lame by comparison. 

Offline nonnus29

Senior Member




Giving Java a second chance after ludumdare fiasco


« Reply #8 - Posted 2005-12-04 19:28:02 »

Wow, wow, wow  Shocked .

I can't even begin to imagine how your rendering that terrain.  This is very well done.

This contest is only...  4 days old?  It's going to be a good year for the 4k  Wink .

Oh, and this runs fine on my 866 p3.
Offline jbanes

JGO Coder


Projects: 1


"Java Games? Incredible! Mr. Incredible, that is!"


« Reply #9 - Posted 2005-12-04 19:36:43 »

Is anyone else having control problems? I try to steer, but the car keeps understeering. I can't find any way to take a sharp curve without going right off the road. Even driving on a straight road is a challenge. Sad

Java Game Console Project
Last Journal Entry: 12/17/04
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Alan_W

JGO Knight


Medals: 8
Projects: 3


Java tames rock!


« Reply #10 - Posted 2005-12-04 19:42:52 »

Is anyone else having control problems? I try to steer, but the car keeps understeering. I can't find any way to take a sharp curve without going right off the road. Even driving on a straight road is a challenge. Sad

The steering is tricky.  I tried to give it realistic dynamics, it doesn't really work well with the cursor keys.
I'll have to work on it some more.  However, if you brake before the corner, you get less understeer.

Time flies like a bird. Fruit flies like a banana.
Offline Alan_W

JGO Knight


Medals: 8
Projects: 3


Java tames rock!


« Reply #11 - Posted 2005-12-04 19:55:49 »

I can't even begin to imagine how your rendering that terrain.  This is very well done.

The terain rendering is sort of fake voxels.  Rather than full 3D raycasting,  I'm doing 2D raycasting, checking the ray against a procedural heightmap at intervals inversely proportional to the distance from the viewer.

Alan Smiley

Time flies like a bird. Fruit flies like a banana.
Offline Markus_Persson

JGO Wizard


Medals: 12
Projects: 19


Mojang Specifications


« Reply #12 - Posted 2005-12-04 20:29:32 »

Suh...weet!!

Very very nice. =D

Play Minecraft!
Offline Morre

JGO Knight


Medals: 2
Projects: 10


I'm Dragonene on IRC.


« Reply #13 - Posted 2005-12-04 20:33:45 »

THAT IS NOT 4k!

Well, I'm sure it is, I haven't checked, but HOW ON EARTH DID YOU DO THAT?!

So awesome. Amazing. Splendid.

I love it! High-tech!

Offline oNyx

JGO Coder


Medals: 1


pixels! :x


« Reply #14 - Posted 2005-12-04 22:17:31 »

Amazing tech. Shocked

弾幕 ☆ @mahonnaiseblog
Offline CaptainJester

JGO Knight


Medals: 12
Projects: 2


Make it work; make it better.


« Reply #15 - Posted 2005-12-05 02:37:01 »

Great job.

Offline woogley
« Reply #16 - Posted 2005-12-05 06:31:16 »

unbelievable! Cheesy
Offline JoC

Junior Member




I love YaBB 1G - SP1!


« Reply #17 - Posted 2005-12-05 08:26:03 »

Very nice, had no problem playing it on my mac at work.  Smiley
Offline c_lilian

Senior Member


Projects: 1


Java games will probably rock someday...


« Reply #18 - Posted 2005-12-05 08:49:19 »

Hi, well done !... but the invisible cars are hard to avoid (Mac os 10.3, latest 1.4.2 jre) !!!

Lilian

Offline Alan_W

JGO Knight


Medals: 8
Projects: 3


Java tames rock!


« Reply #19 - Posted 2005-12-05 09:20:54 »

Hi, well done !... but the invisible cars are hard to avoid (Mac os 10.3, latest 1.4.2 jre) !!!

Lilian

Sorry to hear that the invisible cars have joined the invisible monsters.  The cars are visible with OS 10.4, JRE 1.4.2, it there must be something subtle.  Can you see the Lap times at the top of the screen?  I used slightly different code for that.
Thanks

The car image copying code.  This just checks the transparency bits. They ought to be set as the carImage is TYPE_INT_ARGB.
1  
2  
3  
4  
if ((carData[img][src] & 0xff000000) != 0){
 zBuffer[dst] = lz;
 screenData[dst] = carData[img][src];
}


The time/last lap/best lap/lap display code. This ignores the transparency bits and maps black to transparent.  I could do that for the cars too, since they don't have any black:
1  
2  
3  
col = scoreData[xx+SCREENWIDTH*yy];
if ((col & 0xffffff) != 0)
 screenData[xx+SCREENWIDTH*(20+yy)] = col;


Time flies like a bird. Fruit flies like a banana.
Offline c_lilian

Senior Member


Projects: 1


Java games will probably rock someday...


« Reply #20 - Posted 2005-12-05 09:51:36 »

Yes I can see the 4 top label headers...

sorry to bother you with all these mac issues... I should test on my win xp box ! Wink

Lilian


Offline Alan_W

JGO Knight


Medals: 8
Projects: 3


Java tames rock!


« Reply #21 - Posted 2005-12-05 20:54:52 »

New Version:

- Lap counter fixed
- Spurious pixels on overlay fixed
- Invisible Car on OS X 10.3 possibly fixed
- Steering improved - but may need more work
- Window resized to make room for 'Java Application Window' when webstarted

Edit:  The original steering control concept increased the rate of turn the longer you held the left/right cursor keys down.  Thus just dabbing the keys gave small corrections, whilst a long press gave a bigger turn.  All steering stopped on key up.  This didn't give enough steering control on the bends.

Currently the steering sensitivity is varied with velocity, decreasing with speed.  However mid-range speeds are tricky.  I need high sensitivity to give a small turning radius to get round the hairpin turns, yet this is too sensitive really for fine maneouvring.

Maybe I need a composite of the two?  It's ridiculous.  Steering should be the easy part, but is proving awkward.  I'll get there eventually Wink

Time flies like a bird. Fruit flies like a banana.
Offline Rick

Junior Member


Projects: 1


Java games rock!


« Reply #22 - Posted 2005-12-05 21:20:30 »

Great game Alan. What did you do to compensate for the webstart window, did you just leave some extra space.
Offline Alan_W

JGO Knight


Medals: 8
Projects: 3


Java tames rock!


« Reply #23 - Posted 2005-12-05 21:26:56 »

Great game Alan. What did you do to compensate for the webstart window, did you just leave some extra space.

I'm using:
1  
2  
3  
4  
5  
6  
7  
        // Create Window
        setIconImage(carImage[1]);
        setResizable(false);
        show();
        setSize(SCREENWIDTH, SCREENHEIGHT +
            getHeight()-getContentPane().getHeight());
        show();


It might be possible to improve on this though Smiley

/Edit: ...and I'm painting on getContentPane().getGraphics().   If you don't mind clipping the bottom of the window, this might be sufficient without the resizing stuff.

Time flies like a bird. Fruit flies like a banana.
Offline Alan_W

JGO Knight


Medals: 8
Projects: 3


Java tames rock!


« Reply #24 - Posted 2005-12-07 00:16:39 »

Update:
- Added Speedometer
- Updated steering

Time flies like a bird. Fruit flies like a banana.
Offline f.l.x

Senior Member


Projects: 3


there is no place like 127.0.0.1


« Reply #25 - Posted 2005-12-07 00:32:58 »

Steer is fine now.

man, this is a masterpiece in 4k

Litterarum radices amaras, fructus dulces
http://flx.proyectoanonimo.com
figth spam!
Offline c_lilian

Senior Member


Projects: 1


Java games will probably rock someday...


« Reply #26 - Posted 2005-12-07 08:26:11 »

cars always missing on mac... sorry

Lilian

Offline jojoh

JGO Knight


Medals: 5
Projects: 7


games4j.com


« Reply #27 - Posted 2005-12-07 11:30:27 »

Shocked WOW!!!

Only a few days into the competition and already some amazing games entered. Amazing look and I really like the feeling that you are going absolutely flat out!!! One interesting thing I noticed is that when you get closer to a tree, it grows on the screen as you would expect, but when you get really close, it shrinks down (and dies)...

I think gameplay score might be hurting quite a bit from only left turn track  Wink But quite impressive what you have squeezed in already!

Offline Morre

JGO Knight


Medals: 2
Projects: 10


I'm Dragonene on IRC.


« Reply #28 - Posted 2005-12-07 11:45:34 »

This just keeps getting better! Good work on speedometer, or whavetever it's called. Oh, and the steering works much better now Cheesy

Offline Alan_W

JGO Knight


Medals: 8
Projects: 3


Java tames rock!


« Reply #29 - Posted 2005-12-09 08:58:18 »

One interesting thing I noticed is that when you get closer to a tree, it grows on the screen as you would expect, but when you get really close, it shrinks down (and dies)
I added that effect to avoid attempting to draw infinitely large trees as you pass through them.  An alternative would be to implement collision detection for the trees, but this would take a few more bytes, which are in short supply.

Quote
I think gameplay score might be hurting quite a bit from only left turn track.
The track is generated from an ellipse equation.  It is possible to make much more interesting tracks with more complex equations, but the catch is that it must be easy to convert from cartesian to polar coordinates and back really easily.  The bottom line is that I can easily do a much more wiggly track, but can't easily compute the positions of the computer controlled cars on the track.    It might be possible to do something with a linear combination of several ellipses.  Certainly worth a try Smiley

/Edit: Nope - A linear combination of two ellipses is just another ellipse.

Alan

Time flies like a bird. Fruit flies like a banana.
Pages: [1] 2
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

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 (31 views)
2014-04-15 18:08:23

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

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

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

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

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

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

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

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

CJLetsGame (198 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
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!