mirror of
https://git.leinelab.org/Mal/mr-crocs-adventures.git
synced 2026-03-18 05:12:23 +01:00
Level class created and gravity editable.
This commit is contained in:
@@ -3,10 +3,10 @@ import GeometryRect from "../geometry/GeometryRect.js";
|
||||
|
||||
export default class RetroSprite
|
||||
{
|
||||
constructor(image, scale = 1)
|
||||
constructor(imagePath, scale = 1)
|
||||
{
|
||||
this.image = new Image();
|
||||
this.image.src = image;
|
||||
this.image.src = imagePath;
|
||||
this.canvas = document.createElement('canvas');
|
||||
this.context = this.canvas.getContext('2d');
|
||||
this.position = new GeometryPoint();
|
||||
|
||||
Reference in New Issue
Block a user