364,083 Members | 5825 Browsing Online
Community for Developers & IT Professionals
Bytes IT Community

is Javascript capable of this?

antigunder@yahoo.com
P: n/a
antigunder@yahoo.com
Hello everyone, I'm not new to programming so I don't think I'm 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 <a
href="http://en.wikipedia.org/wiki/Roguelike">roguelike</a> game, <a
href="http://www.hexatron.com/rogue/">here</a> 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, you can check it out
<a href="http://www.avanor.com/javabased.html">here</a>. 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?

-gunder

Jul 23 '05 #1
Share this Question
Share on Google+
5 Replies


lockster@gmail.com
P: n/a
lockster@gmail.com
Yeah you could do it in a number of different ways, such as modifying
the contents of a textarea, or changing the cells of a table using the
DOM.

Jul 23 '05 #2

Alexis Nikichine
P: n/a
Alexis Nikichine
lockster@gmail.com wrote:[color=blue]
> Yeah you could do it in a number of different ways, such as modifying
> the contents of a textarea, or changing the cells of a table using the
> DOM.
>[/color]

It is also possible to generate IMG in pure JS, as has been demonstrated
there http://www.wolf5k.com

The idea is to use javascript urls as source of IMG tags:

<IMG SRC="javascript:drawImage()">

and have drawImage return PGM data (a text format for representing a
bitmap image)


antigunder@yahoo.com wrote:
[color=blue]
> So what do you
> guys think, is it doable or would it be a waste of time?[/color]

Now, saying that a FPS is doable is stretching doability a bit too far,
really. Some simple things can be done ( see my old, buggy and
incomplete http://alexis.nikichine.free.fr/demineur/pg.html ), though.
You might be better off trying to use a "more real" programming
environment, especially if you're a newbie at programming.

There exists such environments that do not require any installation. Let
me name Egachine - http://egachine.berlios.de : a 3D game engine with
OpenGL bindings, for Javascript of course, so I stay on topic here :-)

Or, if you cannot run any downloaded .exe at all (such as Egachine), and
assuming you are on windows, you could have some fun with all the
wonders hidden in the Microsoft tools. Search for Visual Basic,
somewhere in Office.

Hope this helps,


Alexis

--
Some domain is free

Jul 23 '05 #3

antigunder@yahoo.com
P: n/a
antigunder@yahoo.com
Thanks for the replys, I'll look into what you guys said. And also, I
apologize for posting twice google groups said the first one didn't go
through and I apologize about the hyperlinks, I thought I could use
HTML. Thanks again!

-gunder

Jul 23 '05 #4

lockster@gmail.com
P: n/a
lockster@gmail.com
That wolf5k is really cool!

Here are some other Javascript graphics related libraries and functions
I have seen around the place:

DHTML vector graphics:
http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm (excellent but
maybe too slow for animations)
XBM images: http://developer.irt.org/script/955.htm
Pinglets: http://www.elf.org/pnglets/ (unfortunately not supported on
IE)
Slantastic: http://www.meyerweb.com/eric/css/edg...stic/demo.html

Jul 23 '05 #5

lockster@gmail.com
P: n/a
lockster@gmail.com
That wolf5k is really cool!

Here are some other Javascript graphics related libraries and functions
I have seen around the place:

DHTML vector graphics:
http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm (excellent but
maybe too slow for animations)
XBM images: http://developer.irt.org/script/955.htm
Pinglets: http://www.elf.org/pnglets/ (unfortunately not supported on
IE)
Slantastic: http://www.meyerweb.com/eric/css/edg...stic/demo.html

Jul 23 '05 #6

Post your reply

Help answer this question



Didn't find the answer to your JavaScript / Ajax / DHTML question?

You can also browse similar questions: JavaScript / Ajax / DHTML