Looking to Find Out How Items Work?

Looking to Find Out How Items Work?

Postby ZW » 18 Jul 2023, 04:05

Hi, I'm a CS student looking into the inner workings of SuperTuxKart. I'm working my way through the Doxygen documentation, but I was wondering if anyone on here could help me also.

I'm looking to see how items work in Super Tux Kart - From the time an item box is hit, how is an item selected at random and given to a player?

I'm also looking into how Nitro cans are treated differently than item box items. (How are they spawned, how is energy kept track of, etc.)

If someone could help explain these processes to me I'd appreciate it!
ZW
 
Posts: 1
Joined: 18 Jul 2023, 04:00

Re: Looking to Find Out How Items Work?

Postby kimden » 20 Jul 2023, 00:52

check out data/powerup.xml and data/kart_characteristics.xml, they have a detailed description of what happens, and basically if you changethem, you get a totally different configuration

basically if you pick an item there is a distribution (different depending on position and mode) according to which the item is selected
nitro is spawned after time specified in config
I make servers, addons, online events, and many others things.
my page, my STK fork, my youtube channel
User avatar
kimden
 
Posts: 148
Joined: 23 Jun 2019, 18:42

Who is online

Users browsing this forum: No registered users and 1 guest