Authored by LitDev
Last month's challenges had vertical scrollers and so this month I suggested a platform type game.
Here is the challenge:
Game Challenge
I was very impressed with Zock77's entry. This really is very good on many levels and budding game writers should have a look at how it all works.
The code comes with the images in a zip download .
Here is a snippet of the code showing a Subroutine that does the animated walking.
Sub
WalkAni
Animationnum
=
Animationnum
+
1
If
Animationnum
>
=
4
Then
Animationnum
=
1
EndIf
For
i
=
1
To
3
Shapes
.
HideShape
(
Walk
[
"R"
]
[
i
]
)
Shapes
.
HideShape
(
Walk
[
"L"
]
[
i
]
)
Shapes
.
HideShape
(
Walk
[
"SR"
]
[
i
]
)
Shapes
.
HideShape
(
Walk
[
"SL"
]
[
i
]
)
EndFor
If
Standing
=
"False"
Then
Shapes
.
ShowShape
(
Walk
[
Direction
]
[
Animationnum
]
)
Else
If
StandAnimNum
<
2
Then
StandAnimNum
=
StandAnimNum
+
1
EndIf
Shapes
.
ShowShape
(
Walk
[
"S"
+
Direction
]
[
StandAnimNum
]
)
EndIf
EndSub
As a game it is not fully finished, but this is a fantastic start and could be used as a template to develop further into a very accomplished game.
Already, another Small Basic enthusiast ProfessionalOfSmallBasic added a new level.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.