Too simply sample for biginners.
B=BUTTON()
IF B==1 THEN (Code of moving Up)
IF B==2 THEN (Code of moving Down)
IF B==4 THEN (Code of moving Left)
IF B==8 THEN (Code of moving Right)
IF B==16 THEN (Code of moving Shoot or Jump)
This pattern is enough to make and use a simple game!
I also used this when I was biginner.
At first,make too simply game.
I hope the beginners would like to make "Hitting Number Game" and "Snake Eating Game" these are the basic of BASIC game programming.
My advice.
1.
A line can set many DATAs.For example:
DATA "","","","THE AXE","",""…
2.
All dimension values have not to use READ and DATA.After "DIM" without READ and DATA,dimension values have 0(Numeric) or ""(String:Zero Length).
Today,I added 4 items(Base Barrier,Additional Tank,Enemies Stop and Enemies Dead) of "Sensha-doh".
But left 2 items("My Barrier" and "My Level Up") needs new splites that makes new bugs.They are not easily!(lol)
Is this "3-Dimension Tic-Tac-Toe"?
For example,marc "*" makes three marcs below:
|*AA|DE.|D.E|
|CB.|HI.|...|
|C.B|...|H.I|
+---+---+---+
|FJ.|LN.|...|
|GK.|OM.|...|
|...|...|...|
+---+---+---+
|F.J|...|L.N|
|...|...|...|
|G.K|...|O.M|
Correct report:
I found small bug in "Sensha-doh" and uploaded new project and files.
Now,new Public Key is "537VH3RJ".("X5K473" is not exist)
See you next version with 6 Power Up Items!
Mr.Hanzo
ありがとうございます!この画面サイズですが、入力したDATA文に応じて横幅も縦長さも可変するので、もっと違うサイズの画面も編集可能です。でもあまり横長もアレなので、そのうち幅に応じてスコア表示域を右に出したりするよう調整したいと思います。
This "DATA" statements genarates either more wide or narrow automatically.Then we can make several fields easily.
My new game "Sensha-doh" the Tank Game.
Public Key - "X5K473" and File Name - "KYMTANK"
P.S.
Sorry! I'can't set game screen because I don't understand new system of Miiverse yet!
At first,trim column below:
WHILE 1
B=BUTTON()
IF B==#LEFT THEN X=X-3
IF B==#RIGHT THEN X=X+3
SPANIM 0,"I",F,A,F,A+1,F,A+2,F,A+3,0
SPOFS 0,X,160
IF SPHITSP(0,1) THEN X=X+1
VSYNC
WEND
FOR I=0 TO 511
IF I==TEST...
This game was made by Japanese "Puchi Puchi 3(san)kyu" who lives in Japanese PTC3 communuty.
Public key is "R33V8KV".
(Sorry! I write English because I can't undersuatnd Espan~ol/Spanish)