Skip to main content

#OGAM 2015 - February - Maps

The theme for February in the One Game a Month challenge is "MAPS", a game with a map in is worth 250XP, and whilst I don't enter for points I do try to follow the theme.

At work I'm looking to convert some old PHP scripts into JSP that'll run inside our Hosted Blackboard instance, reducing the number of things to maintain... So I thought I'd practice my Java by finishing off a NetHack sort of thing I played with a couple of three years ago.

Reading the (fairly well documented) code, I have an idea of what I was trying to do... and it seems to run... it just needs a prettier interface.
[UPDATE- and a bit of debugging as it leaks like a sieve!]




run:
World built from code

   ___                  _   _            _    
  |_  |                | | | |          | |   
    | | __ ___   ____ _| |_| | __ _  ___| | __
    | |/ _` \ \ / / _` |  _  |/ _` |/ __| |/ /
/\__/ / (_| |\ V / (_| | | | | (_| | (__|   < 
\____/ \__,_| \_/ \__,_\_| |_/\__,_|\___|_|\_\
                                              

It is written in the book of Lethbridge:
After the creation, the cruel Oracle rebelled against the
authority of Sun the Creator. 
Oracle stole from Sun the most powerful of all the artifacts
of the gods, the Amulet of Yendor, and he hid it in the dark
cavities of Gehennom, the Under World, where he now lurks, and
bides his time.

Your god Javac seeks to possess the Amulet, and with it to gain
ascendance over other gods.

You, a newly trained coder, have been heralded from birth as 
the instrument of Javac. You and your band of hearty fellows
are destined to recover the Amulet to your deity,
...or die in the attempt. 
Your hour of destiny has come. For the sake of us all:
Go bravely with Javac!
(with apologies to the NetHack community)

--Key---------------------------------------------------------
 G=Grass(1)     =.      R=River(2)  = ,
 F=Forest(3)    = *     D=Desert(5) = ~   M=Mountain(10) = ^
 Players        =1,2,3  Monster     = M   Healer = H Animal = A
---------------------------------------------------------------

              0   1   2   3   4   5   6   7   8   9  
             ----------------------------------------
           0 |1 | 2 | 3 | ^ | ^ | ^ | ^ | ^ | H | H | 
             ----------------------------------------
           1 |^ | * | * | * | * | * | * | * | * | ^ | 
             ----------------------------------------
           2 |^ | * | ~ | ~ | ~ | ~ | ~ | ~ | * | ^ | 
             ----------------------------------------
           3 |^ | * | . | M | M | . | . | . | * | ^ | 
             ----------------------------------------
           4 |^ | * | . | A | A | A | A | . | * | ^ | 
             ----------------------------------------
           5 |^ | * | . | . | . | M | M | . | * | ^ | 
             ----------------------------------------
           6 |^ | * | . | . | . | . | . | . | * | ^ | 
             ----------------------------------------
           7 |^ | * | . | . | . | . | . | . | * | ^ | 
             ----------------------------------------
           8 |^ | * | * | * | * | * | * | * | * | ^ | 
             ----------------------------------------
           9 |H | H | ^ | ^ | ^ | ^ | ^ | ^ | ^ | ^ | 
             ----------------------------------------
---------------------------------------------------------------
----------------------Stats and Locations----------------------
                 0==[]:::::::::::::::::::>

Turns remaining :100
Sheep     X= 4 Y= 3 Health: 100
Cow       X= 4 Y= 4 Health: 100
Duck      X= 4 Y= 5 Health: 100
Sheep     X= 4 Y= 6 Health: 100
Nurse     X= 9 Y= 0 Health: 100
Doctor    X= 9 Y= 1 Health: 100
Vet       X= 0 Y= 8 Health: 100
Dentist   X= 0 Y= 9 Health: 100
Grendel   X= 9 Y= 0 Health: 100
Zombie    X= 9 Y= 1 Health: 100
Vampire   X= 0 Y= 8 Health: 50
Dragon    X= 0 Y= 9 Health: 200
Player 1  X= 0 Y= 0 Health: 100
Player 2  X= 0 Y= 1 Health: 100
Player 3  X= 0 Y= 2 Health: 100

Player 1Player 1 turn. Move or Attack?

Popular posts from this blog

Spine again - animating game assets

Laura Tallarday gave a neat demo of how to build an animation in Spine on the CoronaGeek Hangout, so I had a bash at chopping up an image and animating it.
The plan is to add some more sophisticated animations to the new game "Duck sized horse".. but as was discussed in the show adding a whole bunch of spine animated objects might hammer a mobile device... and as the aim is to have 100 tiny duck sized horses, I'd best choose another approach for them.

anyway here's a swaying viking...




live

updating the codes

I wrote the game Ninja Dinosaurs vs Pirate Robots a fair while ago and never got round to the final step of sticking it in either the android store or the itunes store.
It had a few things that needed finishing, and I just lost enthusiasm.
Recently I've had an urge to finish off things I've left undone. I managed to get the NDvsPR book completed and submitted to the Amazon Kindle store and the iTunes Store.



Since I wrote the game, Corona SDK has changed,  the scene manager "Director" was replaced by "Storyboard" and then by "Composer", the Graphics libraries changed making all my code legacy code, requiring graphicsCompatibility = 1, to be added to the config.lua file, and different anchor points.

I thought that patching probably wasn't going to hack it, but I had a look and found that the version I had was pretty near finished, and might be worth a punt.

So I opened the old pivotal tracker project and had a look at the actions, and actually c…