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

Pages: 1-

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.

Name: Anonymous 2013-01-14 9:22

/homework/ -->>>

Name: Anonymous 2013-01-14 9:22

loadimage() ?

Name: Anonymous 2013-01-14 9:27

I know it's homework, but I have been trying for hours now. It's pissing me off. I don't even know what I'm doing wrong.
It doesn't show errors.

Name: Anonymous 2013-01-14 9:37

No clue how easeljs works, but make sure everything has a non-zero size and nothing's off the edge of the screen or anything

Name: Anonymous 2013-01-14 11:31

HTML5 and JavaShit are shit and you're shit for enrolling in a school that uses shit.

Name: Anonymous 2013-01-14 11:53

I love it when kids fail to get answers for their homework. I'm practically aroused.

Name: Anonymous 2013-01-14 12:02

>>6
It's better than Java or Sepples.

Name: Anonymous 2013-01-14 15:14

>>8
Sepples is slightly ``less worse'' than Javashit.

Name: Anonymous 2013-01-14 17:16

>>9
less worse is less better

Name: Anonymous 2013-01-14 17:38

>>10
That's a good way of blowing up Prolog's stack, yes.

Name: Anonymous 2013-01-14 23:19

Text reverser-san is back!

Name: ‮ RETSOPTIHS ‭EXPERT 2013-01-14 23:52

>>12
YES I AM!

Name: Anonymous 2013-01-15 0:00

>>13
Magic!

Name: ‮ )reggin( ‭Anonymous 2013-01-15 2:10

Uh oh, I've been flagged.

Name: ‮ (reggin) ‭Anonymous 2013-01-15 2:10

fuck.

Name: miyog ‎‏‎ 2013-01-15 4:13


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