User Tools

Site Tools


notes:cprog:spring2025:projects:mtb4

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
notes:cprog:spring2025:projects:mtb4 [2025/03/13 03:40] – [power ups] bdildinenotes: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:
 +<code>
 void main() void main()
 { {
Line 68: Line 68:
  ptrPowerup->type = DUPLICATE;                   //set the type variable within the powerup struct to DUPLICATE, which represent the underlying value of 1  ptrPowerup->type = DUPLICATE;                   //set the type variable within the powerup struct to DUPLICATE, which represent the underlying value of 1
 } }
 +</code>
 now everytime that you call ptrPowerup->type it will return DUPLICATE, which under the hood, represents 1. now everytime that you call ptrPowerup->type it will return DUPLICATE, which under the hood, represents 1.
  
notes/cprog/spring2025/projects/mtb4.1741837216.txt.gz · Last modified: 2025/03/13 03:40 by bdildine