Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411576 Posts in 69386 Topics- by 58444 Members - Latest Member: darkcitien

May 05, 2024, 07:33:09 AM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsDeveloperPlaytestingMy first Webgl Columns clone
Pages: [1]
Print
Author Topic: My first Webgl Columns clone  (Read 1185 times)
R3d
Level 0
**


TWAT


View Profile WWW
« on: July 04, 2011, 09:24:09 AM »

Hello.  Blink

Long time reader of Tig, and this is my first post ever here.

recently I made a small game using javascript and webgl
currently it's only playable on Firefox 4/5
It works on Chrome, but due to some weird bug, I can't draw canvas texts over Webgl Canvas.


http://germaniumase.online-gids.com/Columns.html
feedback please.
Logged

oh, hi there
Falmil
Level 6
*


View Profile
« Reply #1 on: July 04, 2011, 10:17:18 AM »

I can't get it to do anything. All I see are the instructions and an empty grid. Actually, if I hit the space key a bunch, I get a game over displayed, so I think its running but the blocks aren't appearing for me.
Logged
R3d
Level 0
**


TWAT


View Profile WWW
« Reply #2 on: July 04, 2011, 10:34:00 AM »



well, what kind of browsers are you using?
does your pc support webgl?

Now I get more bugs on Chrome.
this time with Chrome extensions video downloader.js
« Last Edit: July 04, 2011, 10:58:22 AM by R3d » Logged

oh, hi there
biomechanic
Level 3
***


View Profile
« Reply #3 on: July 04, 2011, 11:09:13 AM »

Same as for Falmil - no blocks, just the grid, instructions, fps, score (Win7 x64, Firefox 5.0).

Also, when I get to the game over Firebug says:
Code:
MAP[DROP[2][1] + 1] is undefined
MarkMap()Drop.js (line 49)
DropBlocks()Drop.js (line 67)
DropScene()main.js (line 140)
animate()glInit.js (line 37)
tick()glInit.js (line 46)
[Break On This Error] MAP[DROP[2][1]+1][DROP[2][0]] = DROP[2][2];
Logged
R3d
Level 0
**


TWAT


View Profile WWW
« Reply #4 on: July 04, 2011, 03:13:54 PM »

Same as for Falmil - no blocks, just the grid, instructions, fps, score (Win7 x64, Firefox 5.0).

Also, when I get to the game over Firebug says:
Code:
MAP[DROP[2][1] + 1] is undefined
MarkMap()Drop.js (line 49)
DropBlocks()Drop.js (line 67)
DropScene()main.js (line 140)
animate()glInit.js (line 37)
tick()glInit.js (line 46)
[Break On This Error] MAP[DROP[2][1]+1][DROP[2][0]] = DROP[2][2];


Hmmm, that's a weird bug.
Code:
MAP[DROP[2][1] + 1] is undefined
MarkMap()Drop.js (line 49)
because I'm actually have this in the function
Code:
MAP[DROP[2][1]+1][DROP[2][0]] = DROP[2][2];
in MarkMap() in Drop.js

But thanks to the feedback!


Fix 1,
because I've found out that I'm a cunt.
DROP[2][1] exceed the given limit of the MAP array

Fix 2,
Found out.that Chrome doesn't like images that isn't the size of 8x8 ..16x16, 128x128 etc etc

right now, it's working on FF5 on ubuntu.
I'm going to test this on my firefox 4.0 on my Win 7 build.
« Last Edit: July 04, 2011, 05:19:47 PM by R3d » Logged

oh, hi there
capn.lee
Level 3
***



View Profile
« Reply #5 on: July 05, 2011, 10:57:47 AM »

worked great for me on win7 chrome
Logged
R3d
Level 0
**


TWAT


View Profile WWW
« Reply #6 on: July 05, 2011, 11:59:01 AM »

Thanks dude! Toast Right

and probably available on IE
http://iewebgl.com/index.html
 Cheesy Cheesy Cheesy Cheesy Cheesy
Logged

oh, hi there
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic