Physics-based 2D racing game
Toy Cars is a physics based 2-D racer. The graphics and the interface use SDL and OpenGL.
Toy Cars is partly inspired by Micromachines and partly by the old Atari ST game called Jupiter's Masterdrive.
License: free
Requirements: Most graphics cards should be sufficient. 64 Megs VRAM minimum is preferable.
| Sound: | Play in X: | Play in Console: | Multiplayer: | Network Play: | 3D Acceleration: | Source Available: |
|---|---|---|---|---|---|---|
| yes | yes | no | yes | no | yes | yes |
Submitted by rubenz on 2005-11-12.

./configure.ac line 1: dnl:command not found ./configure.ac line 2: syntax error near unexpected token `src/main.cpp' ./configure.ac line 2: `AC_INIT(src/main.cpp)
I have ubuntu dapper drake
ScSprite.cpp: In member function ‘void ScSprite::load(int, int, short int, const ScPixelData&)’:
ScSprite.cpp:113: error: the array's bounds prevent what is following after the type-id between round brackets
ScSprite.cpp:113: note: try to remove round brackets around the type-id My distro is Ubuntu Breezy.
My suggestion would be that the view should be a little higher so bigger part of the track would be visible.
However, currently I need to find 3 friends to test it :-S
Keep up the good work.
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I ../src/glf -I ../src/MyFisix -I ../src/Scoobie -I ../src/tinyxml -Wall -I/usr/include/SDL -D_REENTRANT -pthread -g -O2 -c -o main.o `test -f 'main.cpp' || echo './'`main.cpp Dans le fichier inclus à partir de /usr/include/c++/4.0.2/backward/list.h:59, à partir de ../src/Scoobie/ScAnimation.h:25, à partir de ../src/Scoobie/ScView.h:29, à partir de CarGame.h:27, à partir de main.cpp:41: /usr/include/c++/4.0.2/backward/backward_warning.h:32:2: attention : #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the header for the header for C++ includes, or instead of the deprecated header . To disable this warning use -Wno-deprecated. ../src/Scoobie/ScTilemap.h: In member function ‘unsigned char& ScTilemap::operator()(short unsigned int, short unsigned int) const’: ../src/Scoobie/ScTilemap.h:49: attention : minimum/maximum operators are deprecated ../src/Scoobie/ScTilemap.h:49: attention : minimum/maximum operators are deprecated main.cpp: In function ‘void readPointsFromString(const char*, Tuple*, short int&)’: main.cpp:250: erreur: invalid conversion from ‘const char*’ to ‘char*’ main.cpp:250: erreur: initializing argument 1 of ‘char* strtok_r(char*, const char*, char**)’ main.cpp: In function ‘ToyCar* loadNewToyCar(char*, const Tuple&, double)’: main.cpp:397: erreur: invalid conversion from ‘const char*’ to ‘char*’ [...]The same with gcc 3.4:g++-3.4 -DHAVE_CONFIG_H -I. -I. -I.. -I ../src/glf -I ../src/MyFisix -I ../src/Scoobie -I ../src/tinyxml -Wall -I/usr/include/SDL -D_REENTRANT -pthread -g -O2 -c -o main.o `test -f 'main.cpp' || echo './'`main.cpp Dans le fichier inclus à partir de /usr/include/c++/3.4/backward/list.h:59, à partir de ../src/Scoobie/ScAnimation.h:25, à partir de ../src/Scoobie/ScView.h:29, à partir de CarGame.h:27, à partir de main.cpp:41: /usr/include/c++/3.4/backward/backward_warning.h:32:2: attention : #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the header for the header for C++ includes, or instead of the deprecated header . To disable this warning use -Wno-deprecated. main.cpp: In function `void readPointsFromString(const char*, Tuple*, short int&)': main.cpp:250: erreur: conversion invalide de « const char* » vers « char* » main.cpp:250: erreur: initialisation de l'argument 1 de « char* strtok_r(char*, const char*, char**) » main.cpp: In function `ToyCar* loadNewToyCar(char*, const Tuple&, double)': main.cpp:397: erreur: conversion invalide de « const char* » vers « char* » main.cpp:397: erreur: initialisation de l'argument 1 de « char* strtok_r(char*, const char*, char**) » main.cpp:410: erreur: conversion invalide de « const char* » vers « char* » [...]PS: sorry for the French messages :-/For now, nice graphics, realistic physics (at least everything one could expect from a that tiny car ;)), respect!
If you add some computer controlled opponents and maybe a simple soundtrack i'll vote you 4 or 5 for this game, i really like it ;)
Is it what you intended to do ?
However, one of the things that make MicroMachines very fun is the possibility to have a second chance to overtake our opponent when we hit a wall (which stops the car) thanks to the quick acceleration and the fast reach of the maximal speed.
With the current system of your game, each time you hit a wall, you loose a score.
I don't think it's more realistic but I'm sure it funnier.
If you can find a huge empty parking lot sometime without a lot of lights, you may want to try it sometime. Just be extremely careful not to flip your car...
I have just tried running this on my Intel Core Duo laptop with an Intel 950.
Perhaps the problem is Aiglx/Compiz though, I did try running it with that turned off and it was no better.
What happens when you link your GPL-licensed program with a proprietary library?
But in all seriousness, why do you need 3D audio in a 2D game anyway? You can use SDL_mixer to get enough directional audio for this game, why not use that? It allows "interaction between music and sfx," what's the need for a proprietary library? Why are so many games nowadays using FMOD, is there some sort of mind hypnosis on their site that makes people think that FMOD is god? There's my rant.
in b4 y not fix sdl_mixer. Sorry. tried. was easier to write my own lib.
Toycars version 0.3.9
OS: Ubuntu Hardy Could someone help me? :-)
Here you are:
#0 TiXmlAttributeSet::Find (this=0x2c, name=0x80780b5 "enabled") at tinyxml.cpp:1559 #1 0x0806f62b in TiXmlElement::Attribute (this=0x0, name=0x80780b5 "enabled") at tinyxml.cpp:543 #2 0x0805f686 in TcPreferences (this=0x8082418, inFilename=0xbf94c144 "/home/xxx/.toycars//preferences.xml") at TcPreferences.cpp:75 #3 0x08059058 in main (argc=1, argv=0xbf94c2f4) at main.cpp:1839