Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Need to make a nigger game.

Name: Anonymous 2013-01-14 9:04

Long story quick, I need to make a HTML5 game for tomorrow.
EASELJS needs to be involved.

Anyway, my question is. Why isn't my code showing the image I want to use as background?

var canvas = document.getElementById('stageCanvas');
var stage = new Stage(canvas);

var imgBg = new Image();
imgBg.src = "img/bg.png";

var Bg;
Bg = new Bitmap(imgBg);
Bg.x = 0;
Bg.y = 0;

stage.addChild(Bg);
stage.update();

I can find the image if I inspect element and stuff, but it doesn't draw on the main screen. Have been searching for hours now. FML.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List