-; Title : Wormy
-; Version : 95%
-; Release Date : summer 2001
-; Filename : wormy.86p (5kb)
-; Author(s) : Shiar
-; Email Address : wormy@shiar.org
-; Web Page : www.shiar.org
-; Description : ruling Nibbles-like game 1-4 players
-; Where to get this game : www.shiar.org (home of Wormy)
-; Other games by author(s) : Nemesis beta
-; Additional Credits to : Matthew Shepcar (wrote original Peaworm, end'98)
-; Jonah Cohen (helped writing worm)
-
-;-----------------------------
-;----------- TO-DO -----------
-;-----------------------------
-
-; 95% = DONE
-
-; [* internal levels ]
-; [ * check levels/gametype ]
-; [ * enough hiscore saves! ]
-; [* complete readme ]
-; 1% * misc (pollish, bugs, &&&)
-; * LINK
-; * fix first packet loss
-; 1% * transmit game/level data
-; 1% * 1/3 worms over link
-;;;1% * get g/o signal (l&l) working
-;;;1% * send new peas' positions
-
-;100% = bugs fixed + levels done
-
-;-----------------------------
-;-----------------------------
-;--------- W O R M ---------
-;-----------------------------
-;-----------------------------
-
-#define buffer ;use display buffer (otherwise write directly to screen)
-#define readymask ;"greys" out the field before starting a level
-#define coolzgfx ;nice graphics for game over screen
-
-;#define readytext ;displays "prepare" before level starts
-;#define invincible ;worms cannot die =)
-;#define optdie ;in race games worms don't die when they run into each other
-
-#define cal call
-#define psh push
-#define dnz djnz
+;___����________________________________________________________����____________
+; ���� �����
+; ��� ���� ����
+;��� ����� �������� ����� ���� ���� ��� �����
+;��� ������� ����������� ������� ������������� �� ��� ���
+;�� ��� ��� ����� ���� ���� ��� ��� ���� ��� ��� ���� ���
+;�� �� �� �� � ��� ���� ��� ������ ��� ��� ��� ��
+;�� �� �� �� �� ��� ��� ��� ���� ��� ��� ��� ���� ��
+;�� ��� ��� �� �� �� ��� ������� ��� �� ������� ��
+;�� ��� ��� ��� �� �� �� �� ��� ��� ��� ����� ���
+;��� ��� ��� ��� �� �� ��� �� ���� ���� ��� ���
+;��� ����� ��� ��� ��� ��� �� �������� ��� ���
+; ��� ��� ��� ��� ��� ��� ��� ������ ��� ���
+; ���� ������� ���� ��� ��� ���� ��� ����� ����
+; �������� �������� ��������� ��� ��� ���������������
+; ����� ����� ������� �� ��� �����������
+;_______________________________________________________________________________
+;
+; Version : 98% (0.98.118)
+; Release Date : 2002 January 18
+; Author(s) : Shiar
+; Email Address : wormy@shiar.org
+; Web Page : www.shiar.org
+; Description : perfect Nibbles game with free movement, nine
+; game modes, for 1-4 players
+; Where to get this game : www.shiar.org
+; Other games by author(s) : Nemesis beta
+; Additional Credits to : Matthew Shepcar : wrote original Peaworm, end'98
+; Jonah Cohen : helped writing worm
+; Files : wormy.z80 (89kB) : 515ad14b922572bdc8a96e780b8b24ca
+; wormy.86p (6512) : efef32a8c541b4585087f55deb31f51d
+;_______________________________________________________________________________
+
+;--- notes ---------------------------------------------------------------------
+
+; * Game README is wormy.txt
+; * Use for LEARNING practises ONLY!
+; * Don't _ever_ release altered code w/o permission!
+; * Give me credits when you use stuff inhere
+; * I'm not responsible for any damage this might cause, yada yada...
+; * Although I've commented & labeled quite some stuff, due to
+; crazy optimizations and weird coding, it may be harder to
+; understand than the average blob of code. This is probably _not_
+; the best source to learn z80 from. w00t the Shyer Way (tm).
+; * Email me. If you've got suggestions, tell me.
+; * Don't scroll down if you get scared easily.
+
+;--- index ---------------------------------------------------------------------
+
+;-* TO_DO
+; | future features
+;--* #INCLUDE
+;---* STORAGE
+; | permanent
+; | temporary
+; | layout
+;----* PROG_START
+; | search levels
+;-----* LEV_SELECT
+;------* MORE_INIT
+; | trig tables
+;-------* MAIN_MENU
+; | draw menu
+; | options menu
+; | main menu
+; | display current settings
+; | handle menukeys
+; | change name
+;--------* MISC_PROCS
+;---------* START_GAME
+; | link
+; | client
+; | set/send worms
+; | host
+; | load game
+; | draw level
+; | prepare
+;----------* GAME_LOOP
+;-----------* KEYS
+; | pause menu
+;------------* GAME_OVER
+; | who won?
+; | display worms
+; | quit
+;-------------* WORM_STUFF
+;--------------* WORM_ALIVE
+; | move worm
+; | draw worm
+;---------------* BOUNCYBALL
+;----------------* WORMY_HIT
+; | multifood
+; | ctf
+; | main
+; | foodmatch|SP
+; | take pea
+; | misc
+;-----------------* PROCS
+;------------------* SCORE
+;-------------------* DISPLAY
+;--------------------* DRAW
+; | pixel
+; | findpixel
+; | objects
+; | circle
+; | box
+; | fatline
+; | line
+;---------------------* LINK!
+; | multiple bytes
+; | foo
+; | send
+; | recv
+; | common
+;----------------------* INT_LEVELS
+;-----------------------* DATA
+; | graphics
+; | menus
+; | text
+; | foo
+; | game settings
+;------------------------* THAT'S_ALL
+
+;_______________________________________________________________________________
+; _______ _____ ______ _____
+; | | | | \ | |
+; | |_____| ____ |_____/ |_____|
+;_______________________________________________________________________________
+
+; 97% = PREVIOUS
+; X [15] lives >9 dispay
+; X [15] sp modes not configurable
+; X [16] LVL: episode #2: 10 sp levels
+; X [17] lives stats for every liveslimited game (also !dm)
+; X [18] LINK: fix transmit game/level data
+; X [19] datalevels+nrlevels not in program if !intlevels
+; X [19] mem at worm #4 (still 12 bytes or so.. or more? or less?)
+; X [19] alter level editor to use new address and set level id #97
+; X [19A] team score!
+; X [19A] autogrowth doesn't always work -> init (turn)
+; X [111] ED: disabled objects counted causing CRASH when writing hiscore!
+; X [111] LINK: init+multiple pea transmit seems to work..
+; X [111] LINK: host/client swapped (host now sends level config)
+; X [111] LINK: optimize transmit (most initcode same for client+host)
+; X [113] menu limit in multifm not x10
+; X [113] wormhit procedure seperate (called now)
+; X [114] LINK: peas sent again :P
+; X [114] internal level check and sprite storage removed
+; X [115] layout data stuff at bottom
+; X [115] ED: init place bar fixed
+; X [115] ED: keys also usable together with mouse
+; X [115] ED: improved version handling
+; X [115] LINK: receive message not needed anymore afaik
+; X [115A] $D8 used for spacing at g/o screen. i rule B)
+; X [115A] exit at g/o goes back to menu
+; X [115A] more in menu lets you reselect the levelfile
+; X [115A] LINK: fixed waiting mode (minor display problem)
+; X [116] incs at skiplevels effectively replaced by add (-4 bytes)
+; X [116] another 2 bytes shaved off
+; X [116] LINK: received gamemode now displayed correctly at g/o
+; X [116] gamecar right after gametype saves about 20 bytes
+; X [116] LINK: minimize sent data
+; X [116] remove +input in worm storage
+; X [116] head position init uses same data as tail (-4 bytes)
+; X [116] fix bug at no levels (115A intro)
+; X [117] saved 6 bytes by hardcoding some empty bytes in title graphics
+; X [117] two pieces of duplicate code removed
+; X [117] combined temporary storage for _D_HL_DECI and temp hiscore
+; X [117] more repetitious code shortened
+; X [117] wrong stack handling in checkpea, and unnecessary bloat
+; X [117] stopworm after eating pea (pea|wall overwrite fixed!)
+; X [117] old code removed from hitworm
+; X [117] replace jps by jrs (moved code around a bit)
+; X [117] scorebar doesn't diplay 1st wormname char anymore
+; X [117] scorebar can display both lives and score when appropriate
+; X [118] look at init-z in line routine again -> fixed steepline init-z
+; X [118] snake86 findpixel (saves 1 byte)
+; X [118] removed flash at new level start
+; X [118] begin growth set in normal worm init loop
+; X [118] bad code and potentially bad code reviewed and optimized
+; X [118] final sourcecode layout ((sub)captions, index, indents, etc)
+; 98% = CURRENT
+; X [119] ED: new 53 file format with support for 128 objects instead of 32
+; X [119] LVL: episode #4: 10 hard sp levels (ordered XO-XO-XO-X)
+; 1% * LINK: >Somehow do a lot of testing with 2 calcs< *sigh*
+; * LVL: episode #1: add 2-3 circle- and line levels.
+; * LVL: episode #3: 6x5 multiplayer levels
+; * LVL: episode #5: 10 easy sp levels (do i _have_ to?)
+; * LVL: Eric? (ep#5?)
+; * LVL: Wormage
+; * LVL: Free Bird
+; * LVL: Jonah?
+; 1% * fix any bugs that come up
+
+;--- future features -----------------------------------------------------------
+
+;just a maybe-list; NO guarantees!
+;
+; * correct team winners
+; * level compression
+; * arrow to offscreen peas
+; * sound
+; * startpos
+; * pause in linkplay
+; * coop (DON'T COUNT ON IT)
+
+;_______________________________________________________________________________
+; _/_/_____ __ _ _______ _ _ ______ _______
+; _/_/ | | \ | | | | | | \ |______
+; / / __|__ | \_| |_____ |_____ |_____| |_____/ |______
+;_______________________________________________________________________________