mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-01 13:06:58 +03:00
7a91a704c5
git-svn-id: svn://kolibrios.org@1806 a494cfbc-eb01-0410-851d-a64ba20cac60
103 lines
1.1 KiB
NASM
103 lines
1.1 KiB
NASM
include "celltype.inc"
|
|
|
|
macro Header name, game_type, x, y
|
|
{
|
|
db game_type,x,y
|
|
local ..label
|
|
db ..label-$-1
|
|
db name
|
|
..label:
|
|
}
|
|
|
|
macro C cell,cnt
|
|
{
|
|
if cnt eq
|
|
db (cell shl 4)
|
|
else
|
|
db (cell shl 4)+cnt-1
|
|
end if
|
|
}
|
|
|
|
|
|
Header 'Sokonex test', sSokonex, 6, 6
|
|
|
|
; # Wall; + Connector; * Player; B Block
|
|
|
|
; ######
|
|
; # + #
|
|
; # #
|
|
; # ++ #
|
|
; #* #
|
|
; ######
|
|
|
|
C tWall,7
|
|
|
|
C tEmpty,2
|
|
C tConnect
|
|
C tEmpty
|
|
|
|
C tWall,2
|
|
C tEmpty,4
|
|
C tWall,2
|
|
C tEmpty
|
|
|
|
C tConnect,2
|
|
C tEmpty
|
|
C tWall,2
|
|
C tPlayer
|
|
|
|
C tEmpty,3
|
|
C tWall,7
|
|
|
|
EndConf
|
|
|
|
Header 'Just push!', sSokoban, 9, 8
|
|
|
|
; #####
|
|
; ### ###
|
|
; # @@@ #
|
|
; # # # #
|
|
; ## #B# ##
|
|
; # B * B #
|
|
; # # #
|
|
; #########
|
|
|
|
C tEmpty,2
|
|
C tWall,5
|
|
C tEmpty,2
|
|
|
|
C tWall,3
|
|
C tEmpty,3
|
|
C tWall,4
|
|
C tEmpty,2
|
|
C tPlace,3
|
|
C tEmpty,2
|
|
C tWall,2
|
|
C tEmpty,2
|
|
|
|
C tWall
|
|
C tEmpty
|
|
C tWall
|
|
C tEmpty,2
|
|
C tWall,3
|
|
C tEmpty
|
|
C tWall
|
|
C tBlock
|
|
C tWall
|
|
C tEmpty
|
|
C tWall,3
|
|
C tEmpty
|
|
C tBlock
|
|
C tEmpty
|
|
C tPlayer
|
|
C tEmpty
|
|
C tBlock
|
|
C tEmpty
|
|
C tWall,2
|
|
C tEmpty,3
|
|
C tWall
|
|
C tEmpty,3
|
|
C tWall,10
|
|
|
|
EndConf
|