mirror of
https://git.leinelab.org/Mal/mr-crocs-adventures.git
synced 2025-09-11 02:57:36 +02: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