Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (526)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (593)
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  
  Opposite lock racing, The movie  (Read 4091 times)
0 Members and 1 Guest are viewing this topic.
Offline jojoh

JGO Knight


Medals: 5
Projects: 7


games4j.com


« Posted 2011-06-06 00:04:56 »

Since Bobjob fooled me into recording video of games I ended up creating a little trailer for a game that I am developing. I ended up using fraps and PowerDirector for various reasons though. As I now have a trailer I should probably show it:
<a href="http://www.youtube.com/v/NAGsqZtt0aE" target="_blank">http://www.youtube.com/v/NAGsqZtt0aE</a>
The game uses Java2D and PaulsCode 3D Sound Engine.
The game is under development, but I will post link to game soon.

Update: You can now play and give feedback about the game.

See [size=12pt]Opposite lock racing, The Game[/size]

Offline ra4king

JGO Kernel


Medals: 355
Projects: 3
Exp: 5 years


I'm the King!


« Reply #1 - Posted 2011-06-06 02:39:07 »

Bahahahaha I loved the trailer! Very good looking game too! Are you planning to add multiplayer and/or AI soon?
Great job!

EDIT: I WANT COWS! Grin

Offline loom_weaver

JGO Coder


Medals: 17



« Reply #2 - Posted 2011-06-06 03:56:50 »

Skid marks... definitely add skid marks!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline cylab

JGO Ninja


Medals: 55



« Reply #3 - Posted 2011-06-06 07:01:40 »

EDIT: I WANT COWS! Grin

ME TOO!!!

Mathias - I Know What [you] Did Last Summer!
Offline namrog84

JGO Ninja


Medals: 46
Projects: 4


Keep programming!


« Reply #4 - Posted 2011-06-06 11:52:57 »

moooo
I am a cow!
moooooo


skidmarks is good

little orange cones that you can hit and have small physics(fall over/bounce/etc...) would be neat too

"Experience is what you get when you did not get what you wanted"
Offline m_waddams

Junior Devvie


Medals: 2
Projects: 1



« Reply #5 - Posted 2011-06-06 12:20:09 »

Great job, but the name? Why not something like Drifter (or some derivative).

And I vote for camels.
Offline jojoh

JGO Knight


Medals: 5
Projects: 7


games4j.com


« Reply #6 - Posted 2011-06-06 18:19:17 »

Bahahahaha I loved the trailer! Very good looking game too! Are you planning to add multiplayer and/or AI soon?
Great job!
Thanks! I have been thinking about more cars (AI or human), but the current collision detection probably won't handle it so well, and the game is actually quite difficult as it is I think. We will see.

Skid marks... definitely add skid marks!
They are in Smiley Click on over to youtube and watch in HD and you'll see.

Great job, but the name? Why not something like Drifter (or some derivative).
I had an idea of creating a drift element in the game or make it entirely a drifting game, but it is REALLY difficult to make drfting easily controlled with a keyboard. I might still change the name of the game. Not final.

little orange cones that you can hit and have small physics(fall over/bounce/etc...) would be neat too
I'll put it in the todo-list, but there are many things on there, so I am not making any promises. I don't use any Phys lib, so it might be a lot of work to make that happen in a good way.

moooo
I am a cow!
moooooo
And I vote for camels.
Grin
I only have myself to blame... No. Cows in a car game would be stupid, even camels would be stupid.  Cheesy

Offline Mads

JGO Ninja


Medals: 26
Projects: 3
Exp: 6 years


One for all!


« Reply #7 - Posted 2011-06-06 19:49:32 »

This game needs more cows.  Cool

Offline ra4king

JGO Kernel


Medals: 355
Projects: 3
Exp: 5 years


I'm the King!


« Reply #8 - Posted 2011-06-06 19:59:17 »

Cry
But that's the fun part! Stupid == funny Cheesy

Offline cylab

JGO Ninja


Medals: 55



« Reply #9 - Posted 2011-06-06 20:55:40 »

Hmm, actually it would be great to be able to select a cow as car Wink

Mathias - I Know What [you] Did Last Summer!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline fruitmaze

Senior Devvie


Medals: 3
Projects: 2



« Reply #10 - Posted 2011-06-20 11:21:04 »

Looks really nice!
Offline appel

JGO Wizard


Medals: 51
Projects: 4


I always win!


« Reply #11 - Posted 2011-06-20 16:03:56 »

Very impressive!!!!!!!!  Pointing

Check out the 4K competition @ www.java4k.com
Check out GAMADU (my own site) @ http://gamadu.com/
Offline appel

JGO Wizard


Medals: 51
Projects: 4


I always win!


« Reply #12 - Posted 2011-06-22 15:53:04 »

How about adding cheering pedestrians, that occasionally wander across the road and perhaps can be squashed by a car? Showing blood trails will be fun.

Check out the 4K competition @ www.java4k.com
Check out GAMADU (my own site) @ http://gamadu.com/
Offline Mr. Gol

Senior Devvie


Medals: 1



« Reply #13 - Posted 2011-06-22 20:28:13 »

Looks good graphically, and judging from the video the handling of the car seems fun. Do you plan on adding AI-controlled cars? Or is it going to be just time trial?
Offline philfrei
« Reply #14 - Posted 2011-06-22 23:45:02 »

Great! Tree collision was hilarious.

There are some clicks in the sound. I think it happens with volume changes, a sort of zippering effect? I'm can't tell for sure what is causing it. It could be the change increment is too large, and if you tightened the granularity, you could use smaller vol. change increments. The area around 0:30-0:40 is an example of where this is happening. The very startup of the motor at the beginning has a nice click, too.

I'm wondering how I would implement this sound. Maybe I would store an array of values (floats allows decent computation) for the basic engine sfx, and use linear interpolation while looping through it at varying rates to get the different pitches & convert to the sound format you've chosen for output. I've written a mechanism for changing volume at the smallest possible increment, a single frame, and would be happy to share that. But it might be tricky figuring out where to put it if you are using library code. Also, if you are using a volume control, there might be a way to make it update more often (and thus allow smaller increments). But I suspect the Java's Control implementation doesn't work for updates smaller than a single read buffer of the sound.

Nice sound choices, though! I like the sound effects you have. Looking forward to trying out the game when it is up and running!

[EDIT: Here's an attempt to make a varispeed looper. Still some bugs to work out but perhaps of interest.
http://www.hexara.com/VariSpeedLooper.jar
You can load .wav files and play them back by holding the mouse down. The vertical is for volume and the horizontal is for pitch/velocity. I put in some controls to allow the ends of the recording to overlap, either cross-fading or being added together. You would use the "merge tracks" if the recording ends already had fades from and to nothing at either end. I'm imagining putting a racing engine sound in there, and doing doppler type effects as the car speeds up or slows down. The .wav files should be 16-bit, 44100 fps, stereo, little-endian. I haven't encoded other formats yet.
It plays pretty clean in terms of not clicking with volume/speed changes, though not perfect. I'm getting a funny bit of pitch shift back and forth though that I can't account for (am using a linear interpolation algorithm for the varispeed) and a bit of fuzz/distortion for the overlap that I also can't account for yet.]

"It's after the end of the world! Don't you know that yet?"
Offline jojoh

JGO Knight


Medals: 5
Projects: 7


games4j.com


« Reply #15 - Posted 2011-06-28 22:38:46 »

Looks good graphically, and judging from the video the handling of the car seems fun. Do you plan on adding AI-controlled cars? Or is it going to be just time trial?
You can now play the game (see link in first post). I think that the game is plenty difficult as it is without many distractions, and was mainly thinking about having the competition against an on-line highscore board.

Offline jojoh

JGO Knight


Medals: 5
Projects: 7


games4j.com


« Reply #16 - Posted 2011-06-28 22:47:56 »

There are some clicks in the sound
Yes, that was bugging me as well, and I had the same idea as you, that the pitch/vol was changing to fast and therefore created the clicks, so I had the sound change a max value for each param per game loop. As it turns out, that wasn't the problem (or at least not the main problem). I found out that I was setting the pitch to 1 (max) using the PaulsCode and that created clicks. Capping at 0.99 seemed to improve things a lot. There might still be some problem here and there but it is now a lot better.

[size=14pt]Test it here[/size]

Offline philfrei
« Reply #17 - Posted 2011-06-28 23:26:17 »

The sound is very good now! (Well, it was a good exercise, writing my own volume/pitch-shifter. Am learning a lot.) Yes, I think the range for wav is -32768 to 32767, and the 32768 would constitute an overflow and click, depending upon the algorithm. (If the algo has -32768 = 0 or -1, the expectation might be that 1 is also possible, but it is not.) That's good to know that PaulsCode is handling the pitch change and volume changes perfectly well.

I enjoyed driving around. The crashes are fun! So are donuts. I can't manage to run the racetrack very well though. The controls felt laggy to me. I definitely tend to oversteer. I stop but the wheels continue to turn just a little bit more. Is there a way to make the steering more responsive? How is it being handled? Just a normal keystroke listener sort of thing? [Doh, just realized. The turning keys leave the wheel in a position. Releasing them does NOT revert the wheels to straight.]

Just a thought, perhaps create a little dashboard with a wheel that can be turned via mouse drag? This makes it clearer where the wheels are currently, unlike arrow key presses.

I wanted to split steering with accel/brake between my hands but this is a bit tricky with the arrow keys. Hmmm--idea that I can try, no new coding needed: put numlock off and use the arrow keys for one hand and the number keys for the other.

"It's after the end of the world! Don't you know that yet?"
Offline jojoh

JGO Knight


Medals: 5
Projects: 7


games4j.com


« Reply #18 - Posted 2011-06-29 17:44:08 »

I enjoyed driving around. The crashes are fun! So are donuts. I can't manage to run the racetrack very well though. The controls felt laggy to me. I definitely tend to oversteer. I stop but the wheels continue to turn just a little bit more. Is there a way to make the steering more responsive? How is it being handled? Just a normal keystroke listener sort of thing? [Doh, just realized. The turning keys leave the wheel in a position. Releasing them does NOT revert the wheels to straight.]

Well there are two things happening.
1. As you already noticed is that the wheel does not "snap" back to straight ahead when you release the wheel. This is so that you can tap the turn keys and not always get max turn or straight ahead. It may take some getting used to, but it gives you more control once mastered.
2. The game handles physics a bit more realistic than many other top down racing games. The car has angular momentum, roughly meaning that if you for example turn right, the car rotates clockwise. If you then align the wheels straight ahead, the car wants to maintain the clockwise rotation. (Similar to a car moving forward it won't immediately stop when you let go of the accelerator). If the rotating force is greater than what the tires can provide an opposite force for, the car will continue to rotate clockwise until the tires can stop the rotation. If the tires use up grip to accelerate or break it will have less force to stop the rotation. The angular momentum is partly what causes oversteer (and understeer), and the reason you need to apply opposite lock Wink Opposite lock is fun once you get the feel for it, so I really don't want to take that away  Cool

Tips to get started.
Use the "Alpha" car to begin with. Play around at the skidpad. In the game, press "F1", and you will get to a debug menu. There you can move the sliders for "Turn speed" and "Angular weight" all the way to the right and maybe tyre friction a bit as well. You will then have to reduce the "max turn" to the leftmost setting. It will then probably be easier, but not as fun to control the car.  Cry

The bus will naturally mostly understeer as well, so it is easy to control, and is actually quite good for finding the best path through the tracks.

You can also press "W" to display the steeringwheel, but I feel that the game is to high-paced to be useful and it is mostly in the way.

Offline appel

JGO Wizard


Medals: 51
Projects: 4


I always win!


« Reply #19 - Posted 2011-07-01 10:30:23 »

Ideas for types of vehicles:

- Tank
- Humvee
- Tractor
- Dune buggy
- Monster truck
- Snow sled (not like Santa snow sled, but the motorized one)

Check out the 4K competition @ www.java4k.com
Check out GAMADU (my own site) @ http://gamadu.com/
Offline cylab

JGO Ninja


Medals: 55



« Reply #20 - Posted 2011-07-01 10:43:24 »

Ideas for types of vehicles:

- Tank
- Humvee
- Tractor
- Dune buggy
- Monster truck
- Snow sled (not like Santa snow sled, but the motorized one)

And most important: COWS!!!  Shocked

Mathias - I Know What [you] Did Last Summer!
Offline ra4king

JGO Kernel


Medals: 355
Projects: 3
Exp: 5 years


I'm the King!


« Reply #21 - Posted 2011-07-01 16:28:39 »

We will keep demanding cows Cheesy

Offline h3ckboy

JGO Coder


Medals: 5



« Reply #22 - Posted 2011-07-01 19:15:19 »

We will keep demanding cows Cheesy
he should make cows an unlockable feature, so that people are just forced to play the game Smiley
Offline jojoh

JGO Knight


Medals: 5
Projects: 7


games4j.com


« Reply #23 - Posted 2011-07-02 13:36:22 »

OK, give me an ideas of how cows could make the game more fun (not stupid!) to play.

he should make cows an unlockable feature, so that people are just forced to play the game Smiley

Good idea. I was already planning to add cars to unlock, so that might go for this as well.

Ideas for types of vehicles:

- Tank
- Humvee
- Tractor
- Dune buggy
- Monster truck
- Snow sled (not like Santa snow sled, but the motorized one)

I already have a school bus as a "stupid" vehicle, so adding a tractor or similar won't add much. I plan to add online highscore, when the game is tuned a bit, so tractor and tank won't be useful for getting good times Smiley

Dune buggy could be a good addition. I need to add specific drag/friction for different vehicles in sand to make buggies more favorable.

Offline moogie

JGO Knight


Medals: 13
Projects: 6
Exp: 10 years


Java games rock!


« Reply #24 - Posted 2011-07-04 03:35:36 »

hover craft Tongue
Pages: [1]
  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.

toopeicgaming1999 (72 views)
2014-11-26 15:22:04

toopeicgaming1999 (61 views)
2014-11-26 15:20:36

toopeicgaming1999 (15 views)
2014-11-26 15:20:08

SHC (29 views)
2014-11-25 12:00:59

SHC (27 views)
2014-11-25 11:53:45

Norakomi (32 views)
2014-11-25 11:26:43

Gibbo3771 (27 views)
2014-11-24 19:59:16

trollwarrior1 (40 views)
2014-11-22 12:13:56

xFryIx (78 views)
2014-11-13 12:34:49

digdugdiggy (56 views)
2014-11-12 21:11:50
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

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
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!