Hi everyone,
I have a strange project in mind, and I'm hoping for some pointers if you can help me.
I'm trying to make a drinking racing game: the idea is that a joystick controls the steering, but the acceleration of a player is determined by the rate at which he consumes a drink.
I already have all the hardware set up, so I can easily read the rate at which a player drinks.
I would like to modify the following things in SuperTuxKart in order for the entire system to work:
1) remove the maxSpeed limitation, or set it to a reasonably high value.
2) read the input for the acceleration(gas) of player characters from a manually written driver.
I've started looking at the source code, and I have a few questions:
1) where is karts.m_max_speed[3] set? (where are the values read/hardcoded)
2) for the user input - I couldn't really figure out the workflow in src/input. Can you please provide a few pointers (say which XML config files are read here)?
Thank you,
Ilia