Skip to content

Instantly share code, notes, and snippets.

View TeymurNurullaev's full-sized avatar

Teymur Nurullaev TeymurNurullaev

View GitHub Profile
@TeymurNurullaev
TeymurNurullaev / Object collisions with canvas
Created July 22, 2024 08:17 — forked from joshuabradley012/Object collisions with canvas
An example of 2D collisions using JavaScript 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