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

live

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




Using Corona SDK

Corona Architecture Overview
Diagram showing the Corona SDK architecture -source Walter Lua - CEO Corona The development process. I built the game "Ninja Dinosaurs vs Pirate Robots" in a series of 4 development sprints. I used a familiar game format, the "Infinite Runner" to guide the overall structure, and built the game using the Agile development methodology and Simplicity principle: "simplicity: write the simplest code to do the job, do not provide hooks in your code for ‘future needs" - this prevents scope creep. Studies by Jones (2009) have shown that Agile is most effective with small teams. Agile focuses on swift iterative cycles creating instances of working code, which are constantly reviewed and guided by the end users rather than a rigid commitment to a fixed system architecture. It values working code over heavy documentation, as might be encountered in a more traditional waterfall development approach.
Game Summary. Whilst the game is an inf…