Author Topic: iPhone Rogue-like in JavaScript  (Read 23270 times)

claud9999

  • Newcomer
  • Posts: 2
  • Karma: +0/-0
    • View Profile
    • Hotcat
    • Email
iPhone Rogue-like in JavaScript
« on: October 08, 2007, 11:00:21 PM »
In an effort to have something interesting to do on the iPhone besides listen to Podcasts, and as an advanced JavaScript learning experience, I've decided to start up a Rogue-like game for the iPhone.

No server-side component beyond basic web-hosting; saving is done via a cookie in the browser (even the cookie is a JavaScript snippet!)

I wanted to stay far away from any input requiring the keyboard, and the phone lacks onmousedown/onmouseup/onmouseover events so the controls are basically "click on a square to move/activate/pickup".

The code is coming along fairly well; the levels, monsters, spells, items, etc not so much. I'm releasing the code under a Creative Commons license, so if you're interested in helping out, I'd be happy to have contributors (particularly content developers; perhaps you can write up a nice level editor, or a random level generator?)

Play, comment, criticize, contribute at http://www.hotcat.org/rpg
Omega, Nethack old-school player (played on Unix servers via 9600bps terminals in college.)

claud9999

  • Newcomer
  • Posts: 2
  • Karma: +0/-0
    • View Profile
    • Hotcat
    • Email
Re: iPhone Rogue-like in JavaScript
« Reply #1 on: October 10, 2007, 04:03:08 PM »
Ok, so I want to build a random level generator; which open-source game has the best level generation algorithms? I'm probably going to check out Rogue and Nethack, any others you folks can recommend?
Omega, Nethack old-school player (played on Unix servers via 9600bps terminals in college.)

beam

  • Newcomer
  • Posts: 17
  • Karma: +0/-0
  • haw
    • MSN Messenger - winkerbeam@hotmail.com
    • AOL Instant Messenger - robotscomputers
    • View Profile
    • justinpoliey.com
Re: iPhone Rogue-like in JavaScript
« Reply #2 on: October 23, 2007, 04:15:17 PM »
The game is pretty neat, but the text is text/message log is hard to read, at least on my monitor (1024x768). Keep it up though

As far as an open-source dungeon generator goes, check out Heroic Adventure!. I always thought the dungeons were pretty cool looking. It's in C#, even if you don't know it I'm sure you could make sense of it.

Ex

  • IRC Communications Delegate
  • Rogueliker
  • ***
  • Posts: 313
  • Karma: +0/-0
    • View Profile
Re: iPhone Rogue-like in JavaScript
« Reply #3 on: October 25, 2007, 06:00:44 AM »
I think this is absolutely awesome. Good work!