Skip to content

Instantly share code, notes, and snippets.

Avatar

lviser liuvigongzuoshi

View GitHub Profile
@joshuabradley012
joshuabradley012 / Object collisions with canvas
Last active Oct 27, 2021
An example of 2D collisions using JavaScript Canvas
View Object collisions with canvas
class State {
constructor(display, actors) {
this.display = display;
this.actors = actors;
}
update(time) {
/**
* provide an update ID to let actors update other actors only once
@tomhicks
tomhicks / plink-plonk.js
Last active Dec 6, 2021
Listen to your web pages
View plink-plonk.js