is Javascript capable of this?

A

antigunder

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
 
L

lockster

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.
 
A

Alexis Nikichine

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.

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)


So what do you
guys think, is it doable or would it be a waste of time?

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
 
A

antigunder

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top