ID-Car a fun car game !
III DDD CCC aaa rrrr
I D D __ C a a r r
I D D C aaaaa rrrr
III DDD CCC a a r r
BY RODRIGO FREDERIC FRANCE
www.idcar.free.fr
f.rodrigo@caramail.com
This file explain the method to do more car.
I ] FILE
You would make an indexed PCX file, it's the only type undersand by ID-Car. A car definition can be made with tow file: graphic and description. When you put a tow car file in the directory ~/ID-Car/sprite/car the game recognize it.
1) Graphic
The new car would have the sane scale with the original car.
You would make
- 3 graphics for the car,
- 1 for the car when is destroyed,
- 1 view, for the choose menu,
- 1 icone, for other menu.
If you want animation you can add this, no have limit, but you can only
do one animation who move with the action-key.
For more understand this view an exemple.
The file would be save like [car_name].pcx
2) Description
The file want have the same name with the picture [car_name]
It make with four parts:
- general part:
attrib [X]x[Y]
Where [X] and [Y] are the size of car sprite (not the pcx size)
- anim
:anim
This part define the animation, you want include this
view, icone, usure, pinpon and boum
but you can add more if you want an other animation (for that
see the car 'poubelle' ).
A line of anim is define like this:
[name] : [type]: [number_of_picture]: [loop]: [period]: [off/on]: [aff_when_off]
[name] (string) is the name of animation (view, icone...).
[type] (int) not used.
[number_of_picture] (int) number of picture in animation.
[loop] (boolean) the animation play in loop 0:No 1:Yes.
[off/on] (boolean) when the car is draw the anim is paly?
[aff_when_off] (boolean) when the anim is off draw this?
For good looking car, do this:
view : 0: 1: 1: -1: 0: 0
icone : 0: 1: 1: -1: 0: 0
usure : 1: 3: 0: -1: 0: 1
pinpon : 2: x: 1: xxx: x: x
boum : 3: 1: 0: -1: 0: 0
- img
:img
This part define the picture of animation
[name] : [number]: [get_X], [get_Y]: [W], [H]: [put_X], [put_Y]
[name] (string) name of animation, it's the same of one of anim list.
[number] (int) number of picture in the animation.
[get_X], [get_Y] (int) position of picture of animation in the PCX.
[W], [H] (int) width and height of this animation(picture).
[put_X], [put_Y] (int) position of picture will be put on animation, relative of car picture.
- descr
:descr
This part is relate to var of car, it a list of couple key-value.
[key] : [value]
You want this, but you can add other:
acceleration : (int)
vitesse_max : (int) // max speed
vitesse_min : (int) // min speed, back way
frein : (int) // hand break
braquage : (int) // turn
reservoir_max : (int) // tank
derapage : (int) // slide
marque : (string) // mark
modele : (string) // type
prix : (int) // price
etat_max : (int) // condition
classe : (string in [rally,classic,tourismo,truck,city,fun])
author : (string)
review : (string)
ver : (string) // version of file type (1.0)
snd_acc : (string) // for the time not have this, put '_'
snd_frein : (string)
snd_motor : (string)
snd_boum : (string)
II ] THE SOURCE
I uses GTA(c) free car disigned for add on GTA, with GTA-car(c).
( Warning, I uses a 0.75 scale ).
If you want draw other car, I happy to get this and add in the game.
If you occured problem or special bugs on specific plateform write me:
