IAT 167 Lecture Notes - Lecture 13: Atan2, Dynamic Array, Character Class
Document Summary
Iat167 digital games: mechanics, design and programming. Simon fraser university school of interactive arts & technology. Final review guideline a separate slides. Sometimes in games, you may want to have scrolling background that moves against the character. The character may or may not move against the screen under such circumstances. When the character is moving, the background would scroll to the opposite direction. When the character doesn"t move, the scrolling background would generate the illusion that it is moving against the background. Calculates the closest int value that is less than or equal to the value of the parameter. E. g. float x = 2. 88; int a = floor(x); Calculates the closest int value that is greater than or equal to the value of the parameter. What we are going to do next . Use them as tiles to fill the screen. What we are going to do next (1) We"ll first make it move against the screen.