Dev.Opera - Follow the standards, break the rulesDev.Opera - Follow the standards, break the rules

Login

Lost password?

Forums » Article Discussions

Discuss the articles posted on Dev.Opera.

Note: You need to login to post in the forums. if you don't have an account you first need to sign up.

By jseidelin anchor 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 anchor Friday, 13. March 2009, 14:10:56

avatarAwesome 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 anchor Wednesday, 8. April 2009, 09:14:42

avatarGreat!!!
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.htm

The 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 anchor Wednesday, 8. April 2009, 11:47:03

avatarHm, looks like one bug was replaced by another. Thanks, I'll try to get it fixed.

By chrismills O anchor Wednesday, 22. April 2009, 10:54:13

avatar

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!

Moderators: pepelsbey | dstorey | mcx | operadev | chrismills | shwetankdixit | brucelawson | iheni | andreasbovens | zibin | mollydotcom