This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
haas:fall2021:c4eng:projects:tic80jspong [2021/09/30 20:02] – wedge | haas:fall2021:c4eng:projects:tic80jspong [2021/09/30 20:03] (current) – wedge | ||
---|---|---|---|
Line 9: | Line 9: | ||
* starting ball direction and reset ball direction is now random | * starting ball direction and reset ball direction is now random | ||
* custom function **getRandomDirection()** created to handle the random choosing of the direction | * custom function **getRandomDirection()** created to handle the random choosing of the direction | ||
+ | * the collision detection box is now aware of the bottom of the paddle | ||
Code can be copied and pasted into a TIC-80 code editor (probably want to clear out the existing demo code). | Code can be copied and pasted into a TIC-80 code editor (probably want to clear out the existing demo code). |