TITLE Maze Test						(MazeTest.asm)

; Program Description:  Prototype to the final Maze Project
; Author:				        Bob Markham
; Instructor:           Panos Mastrogiannis
; Creation Date:        15 October 2012
; Revisions:            none

INCLUDE Irvine32.inc
.data

; Define the string to display
msgIntro   BYTE "Maze Test",0dh,0ah,0

; Main Menu Buttons / Cursor
playButton   BYTE "[Play]",0
playPosition BYTE 

editButton   BYTE "[Edit]",0
editPosition BYTE 

exitButton   BYTE "[Exit]",0
exitPosition BYTE 

menuCursor   BYTE "--=      =--",0

.code
main PROC
	call Clrscr  

	mov	 edx, offset myMessage
	call WriteString

	exit
main ENDP

showSprite PROC
END showSprite

END main

COMMENT ^

Room: 32-Bit
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
|-West--|-South-|-East--|-North-|#|*|#|*|#|*|#|*| Printable     |
|------------Colors-------------| W | S | E | N | ASCII         |

|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|      AH       |      AL       |
|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|              AX               |
|                              EAX                              |                               

Example using Char#219 as the solid block for the wall character, 
being able to go North and East and the south wall being light grey and the west wall being green

wcol scol ecol ncol w  s  e  n  ASC CHAR
0010 0111 xxxx xxxx 01 01 00 00 11011011  ==>  27xx 50DB
Note: x shows that it does not matter what the value is because there is an opening there and no wall will be displayed.

In the .mz file:
[Rooms * 400][Objects * 256]
4 BYTE / ROOM

Objects:
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
|                                     |Obj Room Number  |ObjType|
Object 0:     Start Position
Object 1:     End Position
Object 2-254: Custom Objects
Object 255:   Secret Exit

Given a 400 room limit: 9-Bits gives 0..511: Plenty of room

Screen:
 ________________________________________________________________________________
| Name:                                                                          |0
|                             ***<<<<<<<#>>>>>>>***                              |1
|                             *                                                  |2
|                             ^                                                  |3
|                             ^                                                  |4
|                             ^                                                  |5
|                             ^                                                  |6
|                             #    /O\                                           |7
|                             v                                                  |8
|                             v                                                  |9
|                             v  Start                                           |10
|                             v                                                  |11
|                             *                                                  |12
|                             *********************                              |13
|                                                                                |14
|                                                                                |15
|                              _____         _____                               |16
|                             |     |       |     |                              |17
|                             |   / |       |  O  |                              |18
|                             | \/  |       |  |_ |                              |19
|                             | /\  |       |  |_ |                              |20
|                             |_____|       |_____|                              |21
|                                Z             X                                 |22
|                                                                                |23
|________________________________________________________________________________|24
 01234567890123456789012345678901234567890123456789012345678901234567890123456789
 00000000001111111111222222222233333333334444444444555555555566666666667777777777

Map Screen
 ________________________________________________________________________________
|                   _________________________________________                    |0
|                  |   |             |           |           |                   |1
|                  |   |             |           |           |                   |2
|                  |   |             |           |           |                   |3
|                  |   |             |           |_ _ _ _ _ _|                   |4
|                  |   |             |           |           |                   |5
|                  |_ _|_ _ _ _ _ _ _|_ _ _ _ _ _|           |                   |6
|                  |           |   |       |     |           |                   |7
|                  |           |   |       |     |           |                   |8
|                  |           |_ _|_ _ _ _|_ _ _|           |                   |9
|                  |           |       |   |     |_ _ _ _ _ _|                   |10
|                  |           |       |_|_|_____|           |                   |11
|                  |           |       |         |           |                   |12
|                  |           |_ _ _ _|         |           |                   |13
|                  |_ _ _ _ _ _|_ _ _  |         |           |                   |14
|                  |                 | |_ _ _ _ _|_ _ _ _ _ _|                   |15
|                  |                 |                       |                   |16
|                  |                 |                       |                   |17
|                  |                 |                       |                   |18
|                  |                 |                       |                   |19
|                  |_________________|_______________________|                   |20
|                                                                                |21
|                                                                                |22
|                                                                                |23
|________________________________________________________________________________|24
 01234567890123456789012345678901234567890123456789012345678901234567890123456789
 00000000001111111111222222222233333333334444444444555555555566666666667777777777


 Facing:
 East West North South

  /    \
  O    O    \O/   /O\
  \    /


Wall1    Wall2
Sprites 9x5 Placed as 8x4 tiles
_________ _________
|___|___| |\     /|
__|___|__ | \___/ |
|___|___| | /   \ |
__|___|__ |/_____\|

Wall1
16 Wall Sprites
________________        _________
|\_____________/|_______|       |
| |           | |  / \  |       |
| |    _______| |__\_/__|       |
| |   |\_______\|       |_______|
| |   | |                  |_|
| |   | |                  / \
| |___| |    O             \_/
|/_____\|       ___________|_|___
|\ ___ /|       |       |       |
| |   | |       |       |       |
| |___| |       |       |       |
|/_____\|_______|_______|_______|
|       |       |
|       |       |
|       |       |
|_______|_______|

Door1      Door2
           _________
|_______|     |_|   
|  / \  |     / \
|__\_/__|     \_/
|       |  ___|_|___
           _________


_________ _____ _________       _________    _________ _____
|___|___|/ |_| \|___|___|       |___|___|    |\_____/|/ |_| \| |   | |
__|___|__| |_| |__|___|__       __|___|__    | |   | || |_| || |   | |
|___|___|| | |#||___|___|       |___|___|    | |___| || | |#|| |___|_|
__|___|__|_|_|_|__|___|__       __|___|__    |/_____\||_|_|_||/_____\|
 / |_| \                                        
 | |_| | 
 | | |#| 
_|_|_|_|_       _________________________
|___|___|       |___|___|___|___|___|___|
__|___|__       __|___|___|___|___|___|__
|___|___|       |___|___|___|___|___|___|
__|___|__       __|___|___|___|___|___|__
|___|___|       |___|___|
__|___|__       __|___|__
|___|___|       |___|___|
__|___|__       __|___|__

_________
\_______/

 _______
/_______\

_________  _________  _________  _________
|\_____/|  |\_______  _________  _______/|
| |   | |  | |                         | |
| |___| |  | |______  _________  ______| |
|/_____\|  |/_______  _________  _______\|

_________  _________  _________  _________
|\_____/|  |\_______  _________  _______/|
| |   | |  | |                         | |
| |   | |  | |   ___  ___   ___  ___   | |
| |   | |  | |   |\_  _/|   |\_  _/|   | |


| |   | |  | |   |/_  _\|   |/_  _\|   | |
| |   | |  | |                         | |
| |   | |  | |   ___  ___   ___  ___   | |
| |   | |  | |   |\_  _/|   |\_  _/|   | |
                                 
                                 
| |   | |  | |   |/_  _\|   |/_  _\|   | |
| |   | |  | |                         | |
| |___| |  | |______  _________  ______| |
|/_____\|  |/_______  _________  _______\|



^
