User Tools

Site Tools


notes:cprog:fall2024:projects:fwg1

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
notes:cprog:fall2024:projects:fwg1 [2024/10/24 03:43] – [bounds checking] mwinter4notes:cprog:fall2024:projects:fwg1 [2024/10/24 03:46] (current) – [bounds checking] mwinter4
Line 63: Line 63:
 This assumes that we've passed in a pointer to our player structure that we will call p for this function.  This assumes that we've passed in a pointer to our player structure that we will call p for this function. 
  
 +There is also the assumption that there is a member variable of this structure called <wrap hi>"position_x"</wrap> that is the X coordinate of the player as it is rendered on the screen. If we reach the <wrap hi>screen_width</wrap>, which would be the very right of the screen, then we render the player at the lowest x coordinate within our bounds, 0. 
notes/cprog/fall2024/projects/fwg1.1729741423.txt.gz · Last modified: 2024/10/24 03:43 by mwinter4