This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
haas:fall2021:c4eng:projects:brickify [2021/10/06 12:35] – [Getting started] wedge | haas:fall2021:c4eng:projects:brickify [2021/10/07 18:34] (current) – [Block processing code] wedge | ||
---|---|---|---|
Line 161: | Line 161: | ||
// | // | ||
</ | </ | ||
+ | |||
+ | {{: | ||
The actual definition of the brick will be part of class interactions. | The actual definition of the brick will be part of class interactions. | ||
Line 173: | Line 175: | ||
// | // | ||
</ | </ | ||
+ | |||
+ | {{: | ||
This actual process will be part of class interactions. | This actual process will be part of class interactions. | ||
Line 251: | Line 255: | ||
} | } | ||
- | //////////////////////////////////////////////////////////////////////////// | + | |
// | // | ||
// Display the paddle, compensating for width of desired sprite | // Display the paddle, compensating for width of desired sprite | ||
Line 371: | Line 375: | ||
<code javascript> | <code javascript> | ||
- | + | | |
- | + | ||
- | //////////////////////////////////////////////////////////////////////////// | + | |
// | // | ||
// Ball-block collision detection - we have to check the ball against | // Ball-block collision detection - we have to check the ball against | ||
Line 380: | Line 382: | ||
// | // | ||
- | //////////////////////////////////////////////////////////////////////////// | + | </code> |
+ | |||
+ | {{: | ||
+ | |||
+ | <code javascript> | ||
// | // | ||
// Only check if the asset is considered active | // Only check if the asset is considered active | ||
// | // | ||
+ | </ | ||
+ | |||
+ | {{: | ||
+ | |||
+ | <code javascript> | ||
//////////////////////////////////////////////////////////////////////// | //////////////////////////////////////////////////////////////////////// | ||
// | // | ||
Line 423: | Line 434: | ||
Once everything is typed in, and tiles are created in their appropriate slots, we can give the program a run and see it in action. | Once everything is typed in, and tiles are created in their appropriate slots, we can give the program a run and see it in action. | ||
+ |