Discuss the articles posted on Dev.Opera.
By jseidelin
Friday, 13. March 2009, 13:50:19
Creating pseudo 3D games with HTML 5 canvas and raycasting: Part 2
In this, the second part of Jacob Seidelin's series on creating games using HTML 5, JavaScript, canvas and raycasting, he takes the game put together in Part 1, and adds better collision detection, performance improvements, scenery and enemies to chase you!
( Read the article )
By Fyrd
Friday, 13. March 2009, 14:10:56

Awesome stuff. It may be some time before I decide to actually try to understand how this raycasting thing works, but it's great to see the process step-by-step and watching the result in the browser. Can't wait for the rest of the series!
By davey69
Wednesday, 8. April 2009, 09:14:42

Great!!!
but there is a bug in the example game
http://dev.opera.com/articles/view/3d-games-with-canvas-and-raycasting-part/step_4_enemies.htmThe relative Paths for the Images
sprites/tablechairs.png
sprites/armor.png
sprites/plantgreen.png
sprites/lamp.png
are wrong!
they are in the same Directory
This will be right:
var itemTypes = [
{ img : "tablechairs.png", block : true },// 0
{ img : "armor.png", block : true },// 1
{ img : "plantgreen.png", block : true },// 2
{ img : "lamp.png", block : false }// 3
];
By jseidelin
Wednesday, 8. April 2009, 11:47:03

Hm, looks like one bug was replaced by another. Thanks, I'll try to get it fixed.
By chrismills
Wednesday, 22. April 2009, 10:54:13

Originally posted by jseidelin:
Hm, looks like one bug was replaced by another. Thanks, I'll try to get it fixed.
Sorry for this folks - I think it's all fixed now!