Author Topic: Grid game!  (Read 7344 times)

Virmir

  • Chaotic Neutral Cartoon Gray Fox Mage
  • Administrator
  • Mage of Caerreyn, Level 4
  • *****
  • Posts: 2273
  • These sorts of things happen.
    • View Profile
    • virmir.com
on: December 25, 2011, 12:36:28 AM
Mentioned this briefly in chat and promised to show it off. [;)

This is nowhere near complete, but this is the bare bones of a sort of simplistic mini maze/adventure game written in Javascript. I did not implement any graphics yet, so it's all little squares. YAY!

Here are some quick demo "levels" to play.

http://urocyon.virmir.com/js/grid/grid.htm#1
http://urocyon.virmir.com/js/grid/grid.htm#2
http://urocyon.virmir.com/js/grid/grid.htm#3
(Crazy stress test level.)

GREEN square: This is YOU! Move with the arrow keys. Press the A key to fire your LASER. Your LASER fires in whichever direction you are "facing".  Because I did not implement this part yet, you can't tell which way you are facing just by looking... but it's in the direction of the last key you pressed. [;)

BLUE squares: These are ENEMIES. They randomly move around. If they touch you, you will DIE. DESTROY THEM with your LASER.

RED squares: These are WORSE ENEMIES. They will chase you!

BLACK squares: These are WALLS you and enemies cannot pass!

GRAY squares: These are rocks that cannot be passed unless you DESTROY them with your LASER!

FLASHING YELLOW square: This is the GOAL!  Touch it to complete the level! (After which nothing will happen. [;))

I actually coded this during some slow days at work a few months ago. I haven't really had the drive to do more lately, so it's been sitting doing nothing. Figured I might as well share before I forgot about it. [;)

It's actually fairly easy to make levels for this thing. (I did not put much effort into the above, as they were mainly for feature testing.) If you want to try to make your own levels, here's a little kit I put together for it. Show me if you make a good one!

http://urocyon.virmir.com/js/grid/grid.zip

[fox] Virmir


Raf_Cian

  • Mage of Caerreyn, Level 2
  • ***
  • Posts: 105
    • View Profile
Reply #1 on: December 25, 2011, 11:56:49 AM
Fun enough.

Obvious bug that would need to be fixed... shooting the northern and southern perimeter border with your lasers disable your lasers. This problem exists in all the demo levels. The western and eastern perimeter boarders don't suffer from this problem, so it's not just a border issue.

Otherwise very usable.



Virmir

  • Chaotic Neutral Cartoon Gray Fox Mage
  • Administrator
  • Mage of Caerreyn, Level 4
  • *****
  • Posts: 2273
  • These sorts of things happen.
    • View Profile
    • virmir.com
Reply #2 on: December 25, 2011, 02:27:16 PM
Cool! Thanks for the bug report. [:)

[fox] Virmir