User Tools

Site Tools


haas:fall2021:c4eng:projects:brickify

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
haas:fall2021:c4eng:projects:brickify [2021/10/06 12:40] – [The TIC() function] wedgehaas:fall2021:c4eng:projects:brickify [2021/10/07 18:34] (current) – [Block processing code] wedge
Line 161: Line 161:
 // //
 </code> </code>
 +
 +{{:haas:fall2021:c4eng:projects:tic80brickstruct.png?200|}}
  
 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:
 // //
 </code> </code>
 +
 +{{:haas:fall2021:c4eng:projects:tic80blockarrayfill.png?200|}}
  
 This actual process will be part of class interactions. This actual process will be part of class interactions.
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> 
 + 
 +{{:haas:fall2021:c4eng:projects:tic80ballbrickcollision1.png?200|}} 
 + 
 +<code javascript>    //////////////////////////////////////////////////////////////////////////
     //     //
     // Only check if the asset is considered active     // Only check if the asset is considered active
     //     //
  
 +</code>
 +
 +{{:haas:fall2021:c4eng:projects:tic80ballblockcollision2.png?200|}}
 +
 +<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.
 +
haas/fall2021/c4eng/projects/brickify.1633524052.txt.gz · Last modified: 2021/10/06 12:40 by wedge