vForums Support > Programming & Coding :: Programming Discussion :: > Javascript OOP

Javascript OOP - Posted By Aiken (ionfortuna) on 7th Jan 10 at 6:35pm
What would be the best way to use Javascript OOP to make a JS game?

Re: Javascript OOP - Posted By dog199200 (dog199200) on 7th Jan 10 at 8:01pm
I wouldn't suggest making a game with JS {Unsure}

Re: Javascript OOP - Posted By Aiken (ionfortuna) on 7th Jan 10 at 8:24pm
Just a simple game

Re: Javascript OOP - Posted By dog199200 (dog199200) on 7th Jan 10 at 8:34pm
Well it depends, what type of game are you planning on doing?

Re: Javascript OOP - Posted By Aiken (ionfortuna) on 7th Jan 10 at 10:10pm
A game to but on my forum for fun, won't be possible to remember score or anything like that so one that doesn't require score to be remembered

Re: Javascript OOP - Posted By dog199200 (dog199200) on 7th Jan 10 at 11:25pm
well that doesn't help at all. When you go trying to make any kind of game you need to know what your going for, like what type of game cause all programming of any type all varies on exactly what kind of game your making {Unsure} if you want people to help you be willing to provide details of exactly what your looking for {Unsure}

Sorry I i seem mean, but I am a video game programmer, and saying that I need someone to make a game doesn't help {Unsure} you need to say exactly what type of game your looking for. But honestly, if I were you'd i'd bypass JS for a game since it be extremely server heavy, cause there is no way you can just past the code on vforums, they have to be side server'ed if you plan on it being or not. You should look more into .net programming based things, like Visual Basic, and then call the application from a server, via JS. Or even flash will do.

Re: Javascript OOP - Posted By Aiken (ionfortuna) on 7th Jan 10 at 11:53pm
They will be simple one player games, I am not asking for any specific game, I would just like to know how to do it with JS OOP on vForums

Re: Javascript OOP - Posted By Michael (wrighty) on 8th Jan 10 at 12:36am
So you want us to teach you JS OOP, vForums coding, and THEN how to code a game?

Go learn flash. {Smile}

Re: Javascript OOP - Posted By dog199200 (dog199200) on 8th Jan 10 at 1:28am
{Tongue Out} either way if your looking into JS OOP then read this http://articles.sitepoint.com/article/oriented-programming-1/1 also i don't think JS is stable for making a game anyways. Adding to that, its not something you can just throw together. You need some soft of GDK, or SDK, for a game engine that supports JS console output. Which I don't know any {Unsure}


Edit: here is one you can look into http://gamequery.onaluf.org/ your best bet is googling "javascript game engines"

Re: Javascript OOP - Posted By Aiken (ionfortuna) on 8th Jan 10 at 1:37am
A few years ago I made a nice JS dice rolling game, the dice were white except when there were matches. If 2 dice matched then matching dice were yellow but if all 3 matched then they were red. Also there was a roll log where the lat roll was highlighted yellow. The bad news is I lost the code and the images.

Re: Javascript OOP - Posted By dog199200 (dog199200) on 8th Jan 10 at 1:41am
You still best off finding yourself an JS GDK, or some JS game engine. I posted a good one in an edit on my last post. That way it will do all the main hard coding and you can focus on graphic work. Keep in mind you'll still have to code things in on your own, but fi you've done it before then you shouldn't have a problem.

I wont lie, i'm far from good with JS... i'm a .net programmer, and have have never been able to really understand more then the basics with JS {Unsure} but yet I could tell you how to program a game in C++, C#, and vB lol

Re: Javascript OOP - Posted By Aiken (ionfortuna) on 8th Jan 10 at 1:45am
I want it to be completely client side and not dependent on any other page

Re: Javascript OOP - Posted By dog199200 (dog199200) on 8th Jan 10 at 1:46am
if your not storing data or anything like that using a game engine wont be a problem {Unsure}


Edit: over all here is a list of a lot of game engines, look at the JS ones and you decide http://en.wikipedia.org/wiki/List_of_game_engines, cause honestly you can ask what JS OOP would work great for a game, but without have anything in mind for a game, no one can help you {Unsure}

Re: Javascript OOP - Posted By Michael (wrighty) on 8th Jan 10 at 4:33am
It's not hard what you're wanting to do, I mean, I could probably code you a game, but for a complete novice, then yea, it's a bit hard! {Tongue Out}

Re: Javascript OOP - Posted By Aiken (ionfortuna) on 8th Jan 10 at 4:46am
I am a complete novice when it comes to this type of JS coding

Re: Javascript OOP - Posted By Michael (wrighty) on 8th Jan 10 at 5:21am
Well then you're biting off more than you can chew! =P