Alan_W
|
 |
«
Posted
2005-12-04 17:09:00 » |
|
Achieve 10 laps in the best possible time, whilst avoiding the other innocent road users. Play Speed4kControls: - 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.
|
|
|
kevglass
|
 |
«
Reply #1 - Posted
2005-12-04 17:15:37 » |
|
Wow! New technology level in 4k achieved! Brilliant! Brialliant! Brillaint! Kev PS. Hard to control tho 
|
|
|
|
darkprophet
Senior Devvie   
Go Go Gadget Arms
|
 |
«
Reply #2 - Posted
2005-12-04 17:19:31 » |
|
as brummies would say : "tha' is well nice"
|
|
|
|
Games published by our own members! Check 'em out!
|
|
kappa
|
 |
«
Reply #3 - Posted
2005-12-04 17:33:23 » |
|
damn the tech on this game is on another level  if only it had a motor bike as the vehicle you drive it'd be a road rash clone 
|
|
|
|
arne
Senior Devvie   
money is the worst drug- we should not let it rule
|
 |
«
Reply #4 - Posted
2005-12-04 17:40:40 » |
|
How did you manage to put that into 4K  Great Game !!  - Only tested on Windows so far
works on Linux, too. Arne
|
|
|
|
f.l.x
|
 |
«
Reply #5 - Posted
2005-12-04 17:48:11 » |
|
really impresive! congrats ran pretty smooth in a 1.3ghz athlon 
|
|
|
|
Alan_W
|
 |
«
Reply #6 - Posted
2005-12-04 17:52:18 » |
|
How did you manage to put that into 4K  With great difficulty. It's been over 4k all weekend. Fortunately it's now scraping in. 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  I see what you mean. However getting the bikes to lean over realistically on corners would be challenging  PS. Hard to control tho 
|
Time flies like a bird. Fruit flies like a banana.
|
|
|
swpalmer
|
 |
«
Reply #7 - Posted
2005-12-04 18:19:29 » |
|
Wow.
My game is still at 4400 bytes and it's very lame by comparison.
|
|
|
|
nonnus29
Senior Devvie   
Giving Java a second chance after ludumdare fiasco
|
 |
«
Reply #8 - Posted
2005-12-04 18:28:02 » |
|
Wow, wow, wow  . 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  . Oh, and this runs fine on my 866 p3.
|
|
|
|
jbanes
|
 |
«
Reply #9 - Posted
2005-12-04 18: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. 
|
|
|
|
Games published by our own members! Check 'em out!
|
|
Alan_W
|
 |
«
Reply #10 - Posted
2005-12-04 18: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.  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.
|
|
|
Alan_W
|
 |
«
Reply #11 - Posted
2005-12-04 18: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 
|
Time flies like a bird. Fruit flies like a banana.
|
|
|
Markus_Persson
|
 |
«
Reply #12 - Posted
2005-12-04 19:29:32 » |
|
Suh...weet!!
Very very nice. =D
|
|
|
|
Morre
|
 |
«
Reply #13 - Posted
2005-12-04 19: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!
|
|
|
|
oNyx
|
 |
«
Reply #14 - Posted
2005-12-04 21:17:31 » |
|
Amazing tech. 
|
|
|
|
CaptainJester
|
 |
«
Reply #15 - Posted
2005-12-05 01:37:01 » |
|
Great job.
|
|
|
|
woogley
|
 |
«
Reply #16 - Posted
2005-12-05 05:31:16 » |
|
unbelievable! 
|
|
|
|
JoC
Junior Devvie  
I love YaBB 1G - SP1!
|
 |
«
Reply #17 - Posted
2005-12-05 07:26:03 » |
|
Very nice, had no problem playing it on my mac at work. 
|
|
|
|
c_lilian
Senior Devvie    Projects: 1
Java games will probably rock someday...
|
 |
«
Reply #18 - Posted
2005-12-05 07:49:19 » |
|
Hi, well done !... but the invisible cars are hard to avoid (Mac os 10.3, latest 1.4.2 jre) !!!
Lilian
|
|
|
|
Alan_W
|
 |
«
Reply #19 - Posted
2005-12-05 08: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.
|
|
|
c_lilian
Senior Devvie    Projects: 1
Java games will probably rock someday...
|
 |
«
Reply #20 - Posted
2005-12-05 08: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 !  Lilian
|
|
|
|
Alan_W
|
 |
«
Reply #21 - Posted
2005-12-05 19: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 
|
Time flies like a bird. Fruit flies like a banana.
|
|
|
Rick
Junior Devvie   Projects: 1
Java games rock!
|
 |
«
Reply #22 - Posted
2005-12-05 20:20:30 » |
|
Great game Alan. What did you do to compensate for the webstart window, did you just leave some extra space.
|
|
|
|
Alan_W
|
 |
«
Reply #23 - Posted
2005-12-05 20: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
| setIconImage(carImage[1]); setResizable(false); show(); setSize(SCREENWIDTH, SCREENHEIGHT + getHeight()-getContentPane().getHeight()); show(); |
It might be possible to improve on this though  /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.
|
|
|
Alan_W
|
 |
«
Reply #24 - Posted
2005-12-06 23:16:39 » |
|
Update: - Added Speedometer - Updated steering
|
Time flies like a bird. Fruit flies like a banana.
|
|
|
f.l.x
|
 |
«
Reply #25 - Posted
2005-12-06 23:32:58 » |
|
Steer is fine now.
man, this is a masterpiece in 4k
|
|
|
|
c_lilian
Senior Devvie    Projects: 1
Java games will probably rock someday...
|
 |
«
Reply #26 - Posted
2005-12-07 07:26:11 » |
|
cars always missing on mac... sorry
Lilian
|
|
|
|
jojoh
|
 |
«
Reply #27 - Posted
2005-12-07 10:30:27 » |
|
 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  But quite impressive what you have squeezed in already!
|
|
|
|
Morre
|
 |
«
Reply #28 - Posted
2005-12-07 10:45:34 » |
|
This just keeps getting better! Good work on speedometer, or whavetever it's called. Oh, and the steering works much better now 
|
|
|
|
Alan_W
|
 |
«
Reply #29 - Posted
2005-12-09 07: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. 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  /Edit: Nope - A linear combination of two ellipses is just another ellipse. Alan
|
Time flies like a bird. Fruit flies like a banana.
|
|
|
|