2023-08-11から1日間の記事一覧
// ゲームオブジェクトを定義 let Player = function(x, y, width, height) { this.x = x; this.y = y; this.width = width; this.height = height; }; let Obstacle = function(x, y, width, height, speed) { this.x = x; this.y = y; this.width = width;…