IAT 167 Lecture Notes - Lecture 13: Atan2, Dynamic Array, Character Class

76 views24 pages

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.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers