Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Dec 2004
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    is Javascript capable of this?

    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 game, here 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?

    -gunder

  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    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/othello/
    http://www10.brinkster.com/a1ien51/blockgang/
    http://www10.brinkster.com/a1ien51/card/ (problem with Database)

    I have some others too.

    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #3
    fci
    fci is offline
    Senior Coder
    Join Date
    Aug 2004
    Location
    Twin Cities
    Posts
    1,345
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I would think it's possible

  • #4
    New Coder
    Join Date
    Dec 2004
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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. Does anyone have any other suggestions?

    Thanks,
    gunder

  • #5
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #6
    New Coder
    Join Date
    Dec 2004
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Well here is the javascript 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?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •