Page 1 of 1

Looking to Find Out How Items Work?

PostPosted: 18 Jul 2023, 04:05
by ZW
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!

Re: Looking to Find Out How Items Work?

PostPosted: 20 Jul 2023, 00:52
by kimden
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