Topic: Car Game

Hi there, this is just a project i've been working on for a while now. Just thought i'd show everyone. The main idea is a big city with lots of stuff to smash into. I used the car from the physics test example, and added a bunch of stuff including:
WSAD as well as arrows for control
A crash camera, activates when collision is detected from the car to the ground
Boost, increases the speed
Car mode changing, there is currently normal mode and a speed mode, a faster and slightly smaller car
A big city to drive around in
Lots of physics objects to smash into, including a restaurant with tables and chairs, brick walls in alley ways, and bus stops with collapsing walls and benches
A reset system, returning the car to its starting position which is currently very buggy
Currently making a pause button

Heres some screenshots:
https://www.dropbox.com/s/t3n6xga77s689 … 0%20PM.png
Smashing into a brick wall

https://www.dropbox.com/s/zfjpl8jh62r7f … 3%20PM.png
The city very much zoomed out

https://www.dropbox.com/s/m6n8fq27nl3en … 8%20PM.png
Destroying a restaurant

Please tell me what you think. But please go easy, this is my first time with lua and Maratis.

Last edited by Almighty Laxz (2012-08-07 11:38:37)

Re: Car Game

This looks awesome! Is it all done in lua?

Looking forward to seeing more (video? tongue)

Re: Car Game

Yeah it's all lua, i'll try making a video sometime soon.

Re: Car Game

I made a small video to show off the night time i am working on with headlights. The video is a bit poor quality because I can't find a decent mac screen recorder.
http://youtu.be/VS44nmbzJC4

Re: Car Game

cool! How are you doing the vehicle handling? One contact point per wheel, one per car? What kind of things have you got to tweak and play around with?

Re: Car Game

I have just added an impact sound for when the car collides with the ground and flips which I have to tweak a bit to try and make it play less often. Also I have to try and figure out what causes the car to look like it runs into invisible walls sometimes, it might be something to do with the weight and friction of the car. I'm always trying to find new interesting ways of putting in physics, like I have added the destructible bus stop and restaurant.

Re: Car Game

A new video of daytime. I have a decent screen recorder now. http://youtu.be/v6Q3zWvJSCM

Re: Car Game

That's cool. I had a lot of fun when I was writing the driving mechanics for a game we did at work. It's nice having things like this with pure numbers you can put in (torque, grip, stearing etc) and can get something actually different out of it.

Never did 3D vehicle collision though, so no flips for me.

Looks amazingly fun to play with smile Keep up the great work smile

Re: Car Game

Cool smile

I saw that you use the box mesh a lot,
to have a more precise collision for the ground, try to make a mesh in blender that is subdivided to not have too large triangles, and in Maratis, use the "triangle-mesh" collision type instead of "box".

Re: Car Game

That's looking very good wink it reminds me Carmaggedon 2 a bit (which is a good thing!)
Let us know how it's going for the 'invisible walls' problem - personnaly all my attempts failed sad

Re: Car Game

I'm thinking the invisible walls thing is something to do with the car's mass and friction or something, I've played around with it a bit and I think I made it less noticeable.

Re: Car Game

I am releasing the published V0.11 for Windows, I plan to release it for mac after the next engine update fixing the scons physics issue.
http://www.mediafire.com/download.php?5pu90hpfnn3740p

Re: Car Game

Uploaded a new video of playing around with the boost speed.
http://youtu.be/2Z6YQKSzPFI

Re: Car Game

Accidently deleted the windows download, I'll try and reupload it when I can. Although I am working on a new version which may be ready before I get to reupload it. I am going to wait for the next engine update so I can be sure it is lag-free on mac and has the best possible frame rate on windows.

Re: Car Game

Progress towards the next version!
I have started to make terrain outside of the city, tell me what you think.
Terrain1
Terrain2
I have also greatly improved the reset button, expanded the city and started working on an industrial area.

And... A day/night cycle!
daynight
Using translate, the light moves across the scene and when it passes a certain point it returns back to the start for a nice sunrise.
And naturally the car needed headlights to fit the darkness at night. (The screenshot is not actually at night)
headlights
I also added two more cameras, one on a wheel and another 'inside' the car.
wheelcam
carcam
Also, I think I have found how to fix the 'invisible walls' problem. Changing the wheels to a sphere shape seems to make the car a lot more stable.

Last edited by Almighty Laxz (2012-09-17 11:52:19)

Re: Car Game

Haven't said anything about the game in a while, so here's what i'm doing.
Gamemenu
A start screen, the camera moves across the city.
And I have been working on making challenges/missions which is shown in a video that I just uploaded.
http://youtu.be/CxPt0JoJ9DA
I have also got a working gui speedometer thanks to vegas and anael. smile

Last edited by Almighty Laxz (2012-10-26 05:46:53)

Re: Car Game

Released V0.3 for mac and windows.
Windows: http://www.mediafire.com/?w3ec45v3e3ca684
Mac: http://www.mediafire.com/?1p1i2ysqv2ylow9

Lots has changed since my last post, the challenges are fully working now. It is Christmas themed for the moment.

Re: Car Game

Nice wink however i noticed two little problems:
- there's a big fps drop (about 1~2 sec) just after the loading screen
- the car's turning is very, very wild. too wild maybe ?

Re: Car Game

Vegas wrote:

Nice wink however i noticed two little problems:
- there's a big fps drop (about 1~2 sec) just after the loading screen
- the car's turning is very, very wild. too wild maybe ?

The fps drop seems to last about 1 second, I just tested it on mac, but i'm not sure what I could do about that, as it's probably the size of the level and all the objects it has to load i'm guessing.
As for the turning I know what you mean. The turning used to be too slow, so I made it faster but maybe too fast, ill try tweaking that sometime. smile

In that testing I noticed another bug with challenge 3, the objects are there before the challenge is started. I remember this as a bug where I would try to deactivate them in the editor, and the editor would crash. However I thought I put in some temporary script to stop that, perhaps not. Will try to fix in the next version.

Last edited by Almighty Laxz (2013-01-02 23:29:35)