I want to know if I\'m handling the bitmaps correctly. My theory is that you load the background bitmap and the player bitmap before the main game loop and draw it out. When the process hits the main game loop if a change occurs then you redraw everything and by using the sync command after the cls command you don\'t have the flicker problem. It took me a while to understand this concept but I think my code is solid now. Any critiques would be very welcome.
rem ========================================
rem Whore Lord 1.0 Demo Version Alpha
rem ========================================
rem Written by Bill Muldoon
rem ----------------------------------------
rem creates game window
set window on
title$=\"Whore Lord 1.0 Demo Version Alpha\"
set window title title$
set window size 640,480
rem draw screen
load bitmap \"player1.bmp\"
load bitmap \"maingamescreen.bmp\",1
set current bitmap 0
get image 1,0,0,80,100
copy bitmap 1,0
paste image 1,20,30
set cursor 20, 5
ink rgb(130,0,0),1
print \"Health:\"
box 20,20,120,25
health = 120
randomize timer()
sync on
rem main game loop
do
rem check for player mouse click
if mouseclick()= 1
cls
copy bitmap 1,0
paste image 1,20,30
health = health - rnd(10)
set cursor 20, 5
ink rgb(130,0,0),1
print \"Health:\"
box 20,20,health,25
endif
if health <= 0
end
endif
sync
loop