Skip to content
Snippets Groups Projects
Select Git revision
  • 588a293a8a7006de4c64f24af59766b80f49dce4
  • main default protected
2 results

debug_sprites.js

Blame
  • debug_sprites.js 395 B
    
    import {Room} from "../../../hampsterengine/src/things";
    import Ground from "../objects/ground";
    
    export const rm_DEBUG_sprites = new Room();
    rm_DEBUG_sprites.init = function () {
        const ground = new Ground();
        rm_DEBUG_sprites.push(ground, 'ground');
    }
    
    rm_DEBUG_sprites.start = _=> {
        canvas.setScale(3);
        rm_DEBUG_sprites.init();
        canvas.ctx.imageSmoothingEnabled = false;
    }