js game test

Have a project in the works but not much media? How about an idea you are turning into a project? Maybe a game design document you want to start with. This is the place.
Post Reply
User avatar
VZdemon
Posts: 93
Joined: Thu Nov 25, 2010 1:55 pm

js game test

Post by VZdemon »

got bored and messed around a little with js. here's the outcome.
if your interested in the source code pm me.
press keys 1,2 for animation
and arrowkeys to move
http://vzforumz.herobo.com/_realtime/
it's VZdaemon on xbox live
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: js game test

Post by hallsofvallhalla »

i get a "Event not defined" error in FF
User avatar
Chris
Posts: 1580
Joined: Wed Sep 30, 2009 7:22 pm

Re: js game test

Post by Chris »

Nicely put together, a few things you might want to dive into though, to start off with maybe a little improvement to this would be to preload the images as they are taking a while to load:

Code: Select all

var images = [ 'image1.jpg', 'images2.jpg', 'image3.jpg' ],
    image = new Image();

for( var i in images )
{
    image.src = images[i];
}

// now do the event handeling
Another thing you would want to look into is canvas and SVG. Imagine canvas as well... a canvas, and SVG as your paint brush.
http://en.wikipedia.org/wiki/Canvas_element
http://www.w3schools.com/svg/svg_example.asp

Once you get to grips with that check out WebGL.
Fighting for peace is declaring war on war. If you want peace be peaceful.
User avatar
VZdemon
Posts: 93
Joined: Thu Nov 25, 2010 1:55 pm

Re: js game test

Post by VZdemon »

Just Uploaded the multiplayer version(it's in the same link), using free hosting so it's incredebly lagy, but if you wanna test it out for yourself on localhost i will upload it to media fire soon so stay tuned. :D :D :D

btw the canvas and SVG thing looks awesome and very very usefull thanks for showing it to me Chris
it's VZdaemon on xbox live
Post Reply

Return to “Project Showoff Tier I”