Locate 20,10 ? "TITLE SCREEN"
Locate 21,12 ? "Press A to begin"
BGMPLAY 5
@LOOP
IF BUTTON() AND #A THEN
GOTO @GAME
GOTO @LOOP
Just a simple way to do it.
Attached is my take on a generic title screen. You would probably want a picture in back instead of just a flat color. You would want to do something with the bottom screen too.
Just add your game code in between the title screen call and the title screen function declaration. I hope that helps.
hello, now they say about using images and they are right. It can make static or animation title screens using just an image or both image and sprites.
the image on the I post is animation background for my tittle screen it a static image but the black box you see is transparent your see why in next post, it be set to foreground when it loaded, ill tell you why in next post.
ok now before i said it loaded in foreground because i what to use sprite in background of the image on sprite sheet created characters and object to use for wall lamps ect monsters, now i doing it to give the effect of kittens run through a corridor and chasing monsters, ect.
now a title screen menu system is like roads in a game start. let say like home the start point you want to goto store or mall or friends house. you can go about it different ways, touch or button control. you can draw it on paper and make a flowchart of how your menu system will work.
now if it seem to hard and you not getting a handle on grasping to make your program, dont get discourage by it. It just means you got more to learn on how your write the code for your program. if you keep at it your get better and remember you never stop learning in life. now try to figure it out yourself before you ask for help you will find you learn more...
if you still have trouble and haven't figure it out then ask,that way you know you tried before you asked for help. So stay at it and good luck with you game!
oh i almost forgot look at how others made their programs and check out the sample game that came with smile basic you can learn faster by learning from them. and focus on making test programs at first and keep it simple so your get a better idea of how it will work and a better idea on how to structure your code for program.
and remember making a game hardwork for one person so it will take time to complete it. So take breaks from it at times so you don't burn yourself out on your project. and try to keep it small don't start with a big project at first....
Well, you can do all sorts of stuff for backgrounds, you could make a map, bgfill, use some sprites, and more. I think the best way to do it is to make a map.
I think I posted some map loading code a day or two ago, but if you just want to put a picture on the screen it may be easier to draw it in smile tools drawing program, then load it from file. Something like:
DEF TITLESCREEN
DIM X%, Y%, MSG$
LOAD "GRP0:SPACETITLE", 0, 0, FALSE
GCOPY 0, 0, 0, 400, 240, 0, 0
MSG$ = "PRESS A BUTTON TO PLAY"
X% = (49 - LEN(MSG$)) * 8
Y% = 20
GPUTCHR X%, Y%, MSG
REPEAT
VSYNC
UNTIL BUTTON(3) != 0
END
ACLS
TITLESCREEN
'ADD CODE FOR YOUR GAME HERE
ACLS
END
I think I attached the background loading code. Just make sure to use scsave instead of save in smile tool if you prefer a tile map.