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
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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)
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/
just search)
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
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.
صور
Header 1 | Header 2 |
---|---|
Cell 1 | Cell 2 |
Cell 3 | Cell 4 |