so the full thing (to start) would be something like
INITRAYLIB 1,50,0,0,399,239 'use sprites 1 to 50, and use the full screen
DIM MAP[4,4]:COPY MAP,@MAP
@MAP
DATA 1,1,1,1
DATA 1,0,0,1
DATA 1,0,0,1
DATA 1,1,1,1
SETMAP MAP,4,4
DIM BLOCKS[1,4]:COPY BLOCKS,@BLOCKS
@BLOCKS
DATA 16,0,16,16
SETTEX BLOCKS
SETCAM 1,1,0.5,0,0,2
or something
Ok, there are two main things you need to know, that are not explained.
1: you must surround the map with blocks (if you can see outside the map, it errors)
2: you must have collision detection (being inside a block also causes an error)
This was made using the raycaster engine, created by calc84maniac. It's surprising how few times it's been used; it's actually pretty easy to work with.
Yes,Yes,No,no
IF condition THEN
do something
ELSEIF condtion THEN
do something
ELSE
do something
ENDIF
MOD, ok..., no
INT% FLOAT# float is default, make integer default using OPTION DEFINT
...
I forget. Aren't those just 2D arrays?
GOSUB is fine, but I don't use it much, just because my programs often don't have any subroutines.