View Full Version : is Javascript capable of this?

12-09-2004, 06:37 PM
Hello everyone, this is my first post and I have a question that I hope you experienced javascript people can answer. Now, I'm not new to programming so I'm not going to have any problems picking up javascript. I just need to know if it's capable of what I want to do. I want to make a small roguelike (http://en.wikipedia.org/wiki/Roguelike) game, here (http://www.hexatron.com/rogue/) is one that is written in java incase you don't want to download one, I found a small one written in javascript but it doesn't do any dungeon generation or anything but it seemed to me like it could work. I also want to make a strategy game using a hex map, nothing too complex. Eventually these projects will be moved over to java but is javascript capable of what I want to do or am I wasting my time? The reason I want to do it in javascript is that I'm running into a lot of free time at work and would like to do some programming, I'm not allowed to install anything on the computers though so javascript is my only option. So what do you guys think, is it doable or would it be a waste of time?


12-09-2004, 06:52 PM
You can do it with out any major problems, you are just looking at capturing key presses and showing data based on some multi-demensional arrays.

I have developed the following games in JavaScript:

http://www10.brinkster.com/a1ien51/card/ (problem with Database)

I have some others too.


12-09-2004, 06:53 PM
I would think it's possible

12-09-2004, 08:28 PM
Well thanks for the fast reply! I guess I'll start dinking around with it. The best tut I've found so far is this one (http://www.javascriptmall.com/learn/index.htm). Does anyone have any other suggestions?


12-10-2004, 10:01 AM
try this tutorial also:


12-14-2004, 10:49 PM
Well here (http://www.avanor.com/javabased.html) is the javascript roguelike (http://en.wikipedia.org/wiki/Roguelike) example I was talking about in my first post. I've looked through the code and I can follow it all pretty easily. I'm just wondering if there is a better way to do it? The way this person does it is he reprints the whole screen every time something happens. While that works in this particular instance, if there was larger playing area it would take too long. Is there any way to only print to certain x and y coordanites in javascript. I know it can be done if I was playing around with graphics but for this I would like to keep it all text based. Can anyone point me in the right direction?