how to make start screen and gameover screen?
i'm a beginner in the world of programation, and i need a help to make the start screen and the game over screen
link of my game for you give a look https://microstudio.io/rianstar/bunnybattle/
thank you for the help:D
you would first make a value for if the start screen is on or off and in the game over screen is on; an example would be:
--
init = function()
// the values in the init function
startscreen = 0
gameoverscreen = 0
// the values in the init function
end
--
and say the starting screen has a button that you click to play that you would then set the start screen value to = 1 (which means its off)
same thing with the game over screen if it's on its = 1
then you would make the start screen a function of its own to draw the start screen when the start screen is on; example:
--
drawStartScreen = function()
// and you would customize the start screen here
end
--
and you would make an if sentence in the draw function saying something along the lines of:
--
draw = function()
if startscreen == 1 then // (which means it's on)
drawStartScreen()
end
end
--
pretty much the same thing for the end screen