Giter VIP home page Giter VIP logo

stormzx's Introduction

LICENSE

See the LICENSE file.

INSTALL

Convert the basic program in src/storm.bas to a tap file using the
BAS2TAP program available at:

  http://www.worldofspectrum.org/utilities.html

Then load the program from the tap file in an emulator (e.g. fuse),
run it and follow the instructions.

CODE DOCUMENTATION

The basic program in src/storm.bas 

Routines:

* storm : main program.
* present (presentation) : shows the title screen and the keys, and
  waits for a key to be pressed.
* finish : shows the finish screen.
* init : initializes the program variables.
* main : main program loop.
* round : one game round.
* docmd (do command) : executes a command for the current player.
* move (move command) : moves the current player as indicated by the
  current command.
* getinp (get input) : reads a command from the current player.
* keyinp (keyboard input) : reads a command from the keyboard.
* ai_inp (AI input) : reads a command from the player AI.
* vispyr (visualize player) : draws the map around the player and marks
  it as visible.
* disitems (display items) : draws the items on the screen. Also stats.

Global Variables:

* m$ (array(mrows) of string(20)) : map of the dungeon
* mrows : number of rows in the map array.
* v$ (array(mrows) of string(20)) : visibility map. All the positions 
  containing a "v" are visible and shall be shown.
* p (array(nps) of number(4)) : array of players (rep, xpos, ypos, hp)
* nps : number of players
* cp : current player 
* o (array(nobs) of number(3)) : array of objects (rep, xpos, ypos)
* nobs : number of objects
* c$ : current command
* gameon : 0 if the game is finished, 1 otherwise.

Note that all loops involving the p array go from 0 to nps.
The hp field is checked to see if the entry is a live player (hp>0).
dead players are not processed.

stormzx's People

Contributors

sreguera avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.