Output
Console

                        
                    
Code editor
export const lib = karlkoder.lib();

lib.clear("green");

lib.drawRect(100, 100, 100, 100, "blue");

lib.println("hello world!");

let playerX = 0;

function loop(deltaT) {

    playerX += 100 * deltaT;

    lib.drawRect(playerX, 200, 50, 50, "red");
}

lib.startGameLoop(loop);

Asset editor

Uploaded assets

    Karlkoder would like persistant storage permission

    Your code is saved only in your browser, not on our servers. To provide an optimal experience, we would permission to use persistent storage, otherwise, your browser may clear your Karlkoder data at any point it wants to.

    If you deny permission, you can still save and load your code manually with the "save" and "load" buttons, you will just have to vigilant to save and load yourself, as otherwise your data might get randomly cleared between sessions.

    Even if you enable persistent storage, your browser can still choose to clear your data, i.e. if you clear your browser history, so we would still recommend to save it to your hard drive every now and then.