94 Comments
- mark_1581, on 10/12/2007, -0/+4Should have called it a First Person Walker.
- Rummey, on 10/12/2007, -0/+4Did anyone notice the mini-map showing where you are? That's also pretty cool.
- joelito, on 10/12/2007, -0/+4Looks good for a javascript game.
And I managed to find a good camping spot. - BenjaminJoffe, on 10/12/2007, -0/+3Wow, thank you all for the positive comments. I was driven here after my statistics tracker reported a sudden 20 000 hits in a few hours which kind of blew me away.
For anybody interested it uses the main idea employed by typical raycasting with a slight difference. See, most of the processing is done by the rendering of the actual canvas image and not any of my code and at first I was drawing a vertical line for every wall detection, this slowed it to about 5 fps. So instead it tracks where a wall starts and ends and draws a trapezium with a gradient to represent it. This is how it manages to get quite a reasonable frame rate, I have looked into using textured walls however it seems that there would be no way of making it work as fast. I just hope that in future Firefox versions the rendering engine improves a bit.
I'm glad to hear it works well in Safari as well seeing as I haven't tested it with that. If anybody wants to contribute with graphics, for example guns or enemy sprites etc or if you have any suggestions at all feel free to email me: CanvasGame@gmail.com .
Thanks!
Benjamin Joffe
- Canvascape creator - JohnnySoftware, on 10/12/2007, -0/+2This is very cool! I just now tried it in Safari 2 (Mac OS 10.4) and Firefox 1.5 (RC 3). It worked great in both. It started up instantly in both. It's just.... there/ready - as soon as you go to the page. I think this will really turn people's heads and encourage them to use these new browsers.
- redguy, on 10/12/2007, -0/+2All those bitching about standards - There are MANY NON standard things in Firefox - Like XPCOM, XUL and Canvas - Firefox by nature is built on Javascript and XML (XUL, XBL, RDF etc). So it needs those things to actually Exist as a browser. The fact that they are exposed and ready to embed in pages is just a result of the things I said.
THE differences between Mozilla org. and MS are:
- Mozilla is open source - so anyone willing implement the same stuff, will have no problem. (Compare this to let's say ActiveX).
- Mozilla isn't promoting proprietary technology so you're forced to use _only_ Firefox and it advocates web standards while MS isn't (or wasn't till a few months ago when FFX began to eat it's marketshare).
Canvas will probably used intensively in the future to ease the development of new XUL widgets and features so the extension and Firefox itself and not last, the average user will benefit from this. - redguy, on 10/12/2007, -0/+2Canvas adopted from Apple and it's a kind of standard (see here http://www.whatwg.org/specs/web-apps/current-work/)
browsers supporting canvas:
- firefox 1.5
- safari
- Opera 9.0 Preview
This game started from the RayCaster from http://developer.mozilla.org/en/docs/A_Basic_RayCaster
Don't ever think this game will become something awesome as Canvas (in firefox at least) is very very very slow.
MS developed a technology based on DirectX a few years ago called DirectAnimation which is still available today in all IE versions - that REALLY rocks and it's very fast & scriptable with javascript/vbscript and allows controlling stuff and animation from within the browser (Just google DirectAnimation). Unfortunately, the technology didn't catched the public and slowly died before it even had some success (MS isn't supporting it anymore and I think it'll be gone in Vista). - inactive, on 04/15/2009, -0/+1Quite awesome; works in the latest Safari without any plugins/whatever
- nvidiafx, on 10/12/2007, -0/+1wow nice!
- erkokite, on 10/12/2007, -0/+1"2-4 fps on a 1.33Ghz G4 iBook running Safari while on the toilet using reserve battery power."
try plugging your toilet in to ramp up it's clock speed. - shinaku, on 10/12/2007, -0/+1It's not designed for gameplay, it's purely proof of concept.
Still cool. - johnsto, on 10/12/2007, -1/+2worst gameplay ever
digg++ - thecoolestcow, on 10/12/2007, -0/+1haha i like how it uses the counterstrike hand and gun. the whole thing is awesome.
- shamanking, on 10/12/2007, -0/+1that is awesome digg+
- Derrekito, on 10/12/2007, -1/+2Firefox Canvas not compatible with Firefox? wtf?
- inactive, on 10/12/2007, -0/+0That's awesome. :)
- simpleid, on 10/12/2007, -0/+0ran smooth for me, 1.7ghz, but i also have 1.5gb corsair xms too, i think that helped more.
very awesome, glitch where it gets stuck moving forward tho. : - Cambo, on 10/12/2007, -0/+0That is cool :)
- seandfeeney, on 10/12/2007, -0/+0i think it is more over a first person walker
- KevinJ, on 10/12/2007, -0/+0
dang
---KJ - chrislewis, on 10/12/2007, -0/+0wow. digg.
(i bunnyhopped) - grammarpolice, on 10/12/2007, -0/+0"2-4 fps on a 1.33Ghz G4 iBook running Safari while on the toilet using reserve battery power."
I read this while doing the same! haha - stripwire, on 10/12/2007, -0/+0this is quite impressive, to be able to fit such graphics into a java based web browser and run them off of cached web files. I would like to think that this is the next big step in free gaming, but then again those who pay money for games still get more fun and enjoyment, as well as better grahpics and physics for the haul. Nice one I shall check back on it when it is farther along.
- Kuze, on 10/12/2007, -0/+0Doesnt work in Opera 8.50 for me, can anyone verify this?
- suppazone, on 10/12/2007, -0/+0check out the developer doc at apple
http://developer.apple.com/documentation/AppleApplications/Reference/SafariJSRef/Classes/Canvas.html - Jarda, on 10/12/2007, -2/+2Non-Standart stuff are evil. Oh wait... This is not MS. All good then.
- foreveryours, on 10/12/2007, -0/+0Why cant i shoot?!?!?! HUH!!?? TELL ME!!! I WANT TO SHOOT THINGS
- diggnationdevon, on 10/12/2007, -0/+0I agree with computerbynar, it would be nicer when they make full length games.
- ueluei, on 10/12/2007, -0/+0that canvas extension is really cool! i've implemented a web based pixel art editor in a couple of days; no flash is required, just javascript+canvas (FF1.5)
- Toallpointswest, on 10/12/2007, -0/+0Good job, to think we'll be able to play Classic Doom, anywhere, anytime, RSN! Excellent!
- ravuya, on 10/12/2007, -0/+0Works great on Safari here. Doesn't seem to function on Opera 8.5 for OS X though (my browser of choice).
- whackaxe, on 10/12/2007, -0/+0way cool. muchos digg
- bossm4n, on 10/12/2007, -0/+0Digg it. And the jump is more realistic than BF2.
- rmtatum, on 10/12/2007, -0/+0This is pretty cool. Hope this project goes well.
- baloniaz, on 10/12/2007, -0/+0have you noticed that if you continuously turn, it pauses every 35 degrees or so and keeps going?
- kyoshi, on 10/12/2007, -0/+0Cool. Pretty cool for a javascript game. And yes I wouldn't have dugg it if it was created by Microsoft. And yes I know I'm such a stupid Firefox fanboy and M$ hater. Dugg.
- geoboy, on 10/12/2007, -0/+0"Wow it's amazing how well non-standard things are received when FIREFOX introduces them."
Firefox (Mozilla) didn't introduce this. It's an Apple technology that was first introduced in Safari and Dashboard. Apple submitted it as an open WhatWG ( http://www.whatwg.org ) standard. WhatWG is a group that Apple, Mozilla, and Opera are all members of. So Safari, Firefox, and Opera will all support the canvas tag.
Just because it's something that didn't pop out of the W3C's ass doesn't mean it isn't a standard. - SmeRndmGy, on 10/12/2007, -1/+1"The only problem is that needs Firefox 1.5"
how is that a problem? upgrade! - NiteMayr, on 10/12/2007, -0/+0Works in Flock too....
- Dustyb, on 10/12/2007, -0/+0Why dosent 1.7 not work with this?
- striker1211, on 10/12/2007, -0/+0As long as the standards are open i guess, yay...
- Trikk, on 10/12/2007, -0/+0Neat idea, would be nice if it got... better.
- coopaq, on 10/12/2007, -0/+0Well this looks a lot easier to write than the fake one I wrote using just DIV and IMG tags.
http://games.mindread.com - computerbynar, on 10/12/2007, -0/+0This will be very nice once they actually start making full length games.
- mindsinker, on 10/12/2007, -1/+1It need some cheat codes...please post.
- cecil_t, on 10/12/2007, -0/+0No, jrsims and offlercrocgod, the canvas tag isn't a standard. Read about it here:
http://wiki.mozilla.org/XUL:Canvas_Tag
As the Mozilla page says, its functionality does overlap with SVG which makes me wonder if this same kind of thing could be done in SVG -- which is a standard.
Quote from a Mozilla developer:
"We are turning canvas on -- it's already on by now. Get over it. Nothing in a relatively new spec is set in concrete, but that does not prevent useful work from being built on it. This is how the Internet protocols, and then the web, were built. Welcome back to incremental innovation. The lull of six years of monopoly-induced stagnation is over." - washley, on 10/12/2007, -0/+0Wow it's amazing how well non-standard things are received when FIREFOX introduces them.
- inactive, on 10/12/2007, -0/+0Very nice, but not standard enough. Seems like it was done just to do it, nothing wrong with that however. It's better than most Flash versions I've seen.
- HeapAlloc, on 10/12/2007, -1/+1wow - you guys will digg anything
Canvas: Bringing you late-80s graphics since 2005 -
Show 51 - 91 of 91 discussions



What is Digg?
Browsing Digg on your phone just got easier with our enhancements to the