I'm new to dark basic and am having problems with displaying bitmaps, while searching the forums i found a code
Original link, i started playing around with and changed the boxes displayed with bitmaps, but they are not being displayed on screen, can anyone help???
load image "wall.bmp", 2, 1
get image 2,0,0,16,16,1
load image "back.bmp", 3, 1
get image 3,0,0,16,16,1
sync on
sync rate 0
backdrop off
do
cls
for a = 0 to 19
for b = 0 to 19
read data
if data = 1 then paste image 2,b*16,a*16,1
if data = 0 then paste image 3,b*16,a*16,1
next b
next a
restore
sync
loop
data 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
data 1, , , , , , , , , , , , , ,1, , , , ,1
data 1, , , , , , , , , , , , , ,1, , , , ,1
data 1, , , , , , , , , , , , , ,1, , , , ,1
data 1, , , , , , , , , , , , , ,1, , , , ,1
data 1, , , , , , , , , , , , , ,1, , , , ,1
data 1, , , , , , , , , , , , , ,1, , , , ,1
data 1, , , , , , , , , , , , , ,1, , , , ,1
data 1, , , , , , , , , , , , , ,1, , , , ,1
data 1, , , , , , , , , , , , , ,1, , , , ,1
data 1, , , , , , , , , , , , , ,1,1,1, , ,1
data 1, , , , , , , , , , , , , , , , , , ,1
data 1, , , , , , , , , , , , , , , , , , ,1
data 1, , , , , , , , , , , , , , , , , , ,1
data 1, , , , , , , , , , , , , , , , , , ,1
data 1, , , , , , , , , , , , , , , , , , ,1
data 1, , , , , , , , , , , , , , , , , , ,1
data 1, , , , , , , , , , , , , , , , , , ,1
data 1, , , , , , , , , , , , , , , , , , ,1
data 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
The two images are 16x16 bitmaps
erm...