Need help for SMALL BASIC(Wanna make a game)

Navidb 20 Reputation points
2023-02-01T16:05:23.69+00:00

Hi.

Idk if there is anyone who use small basic but I have a problem.

I want to make a game like "flappy bird" but insted of a bird,I want to use a plane(will upload png files)

YP3

YP2

YP1

I want plane's propeller/airscrew to move(see pictures).

Also i need to say that I have 4 type of planes(red,blue,green,yellow). every time u open game it loads with a random color.

(more: using space button to go up;plane comes down by itself just like the game.)

GraphicsWindow.Show()
Directory = Program.Directory
RP = Math.GetRandomNumber(4)
If RP=1 Then
  Plane[1] = ImageList.LoadImage(Directory + "/Files/Planes/BP1.png")
  Plane[2] = ImageList.LoadImage(Directory + "/Files/Planes/BP2.png")
  Plane[3] = ImageList.LoadImage(Directory + "/Files/Planes/BP3.png")
  Plane[4] = ImageList.LoadImage(Directory + "/Files/Planes/BP2.png")
ElseIf RP=2 Then
  Plane[1] = ImageList.LoadImage(Directory + "/Files/Planes/GP1.png")
  Plane[2] = ImageList.LoadImage(Directory + "/Files/Planes/GP2.png")
  Plane[3] = ImageList.LoadImage(Directory + "/Files/Planes/GP3.png")
  Plane[4] = ImageList.LoadImage(Directory + "/Files/Planes/GP2.png")
ElseIf RP=3 Then
  Plane[1] = ImageList.LoadImage(Directory + "/Files/Planes/RP1.png")
  Plane[2] = ImageList.LoadImage(Directory + "/Files/Planes/RP2.png")
  Plane[3] = ImageList.LoadImage(Directory + "/Files/Planes/RP3.png")
  Plane[4] = ImageList.LoadImage(Directory + "/Files/Planes/RP2.png")
ElseIf RP=4 Then
  Plane[1] = ImageList.LoadImage(Directory + "/Files/Planes/YP1.png")
  Plane[2] = ImageList.LoadImage(Directory + "/Files/Planes/YP2.png")
  Plane[3] = ImageList.LoadImage(Directory + "/Files/Planes/YP3.png")
  Plane[4] = ImageList.LoadImage(Directory + "/Files/Planes/YP2.png")
EndIf

I can send the full game codes,If its needed.

Helpppppppppp

edit:

How can I make the Barriers to move?(see game,those green pillars https://flappybird.io/

https://flappybird.ee/

just search)

Small BASIC
Small BASIC
A programming language created by Microsoft that serves a stepping stone for beginners from block-based coding languages to more complex text-based languages.
277 questions
0 comments No comments
{count} votes

Accepted answer
  1. WhTurner 1,611 Reputation points
    2023-02-02T13:53:06.8266667+00:00

    In 2014 there was in the old forum a topic about flappybirds, with parts of a program, but there were some problems.

    Perhaps you can read about the problems there, see

    https://social.msdn.microsoft.com/Forums/azure/en-US/685fd147-c486-4cc4-91ea-e9d62c970626/flappy-birds?forum=smallbasic

    1 person found this answer helpful.
    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Kristian Virtanen 126 Reputation points
    2023-02-01T21:38:37.34+00:00

    How can I make the Barriers to move?(see game,those green pillars https://flappybird.io/

    Hi.

    Its pretty quiet but seems like time to time its happening something.

    When creating a new pilar, give it a position x value higher than screen width. Then on each loop reduce that position based on the speed on your game. pos x = pos x - game speed.

    If pilar position x < screen width and pilar position x > 0 then draw it on screen. Once pilar position x is < 0, destroy pilar, create new and scroll it on screen in similar way.

    2 people found this answer helpful.
    0 comments No comments

  2. WhTurner 1,611 Reputation points
    2023-02-02T13:56:57.61+00:00

    double, deleted

    0 comments No comments

  3. Anonymous
    2023-02-12T20:47:44.2766667+00:00

    صور

    Header 1 Header 2
    Cell 1 Cell 2
    Cell 3 Cell 4
    0 comments No comments