Post by hartnell on Jan 3, 2007 23:13:57 GMT -5
I've gotten a chance to mess around with the new Brutus2D and I still say it's a hell of an update. I have a ton of suggestions, but I won't plunk them all down at once. Here's the first two :
Comments :
Make comments dark gray. It makes them less visible when looking at the code but perfectly visible when trying to read them.
Templates :
It would be nice if B2D automatically booted up with a template. You could possibly do what Liberty BASIC does and use the bootup template to explain a bit about how to get started.
The game template is nice, but it would scare a noob half to death. I've made a new one for noobs. You could have two versions, novice and pro.
Comments :
Make comments dark gray. It makes them less visible when looking at the code but perfectly visible when trying to read them.
Templates :
It would be nice if B2D automatically booted up with a template. You could possibly do what Liberty BASIC does and use the bootup template to explain a bit about how to get started.
The game template is nice, but it would scare a noob half to death. I've made a new one for noobs. You could have two versions, novice and pro.
'===============================================
' Declare your variables here
' -----------------------------
' example : hitPoints = 50
' gameOver is used to determine if the game is over
' the game is just beginning, so it's
dim gameOver
gameOver = false
'===============================================
' Load your graphics and sounds
' -----------------------------
' Press F1 to look at the help file
'===============================================
' turn on the graphics object
' doing this creates the window
graphics.Initialize
' your game name
graphics.setTitle "Demo - press [ESC] to exit"
' turn on they keyboard object
' this lets Brutus2D work with the keyboard
key.initialize
'===============================================
' Main game loop
' -----------------------------
' will repeat until gameOver = true
do while gameOver = false
'if the player presses the escape key or the x on the window, the game ends
if key.pressed(vk_escape) or key.pressed(vk_windowx) = true then gameOver = true
' clears the screen so a new frame can be drawn
graphics.clear
' display your graphics here
' currently nothing is being drawn here
' draws a frame
graphics.display
' this makes the game loop start over
loop
' turn off the keyboard object
key.terminate
' turn off the graphics object
graphics.terminate