This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
notes:cprog:spring2025:projects:mtb4 [2025/03/13 03:45] – [power ups] bdildine | notes:cprog:spring2025:projects:mtb4 [2025/03/13 03:45] (current) – [power ups] bdildine | ||
---|---|---|---|
Line 60: | Line 60: | ||
then create a struct with the desired powerup and position: | then create a struct with the desired powerup and position: | ||
+ | < | ||
void main() | void main() | ||
{ | { | ||
- | | + | |
- | | + | |
| | ||
- | | + | |
} | } | ||
+ | </ | ||
now everytime that you call ptrPowerup-> | now everytime that you call ptrPowerup-> | ||