Example Code

Labby bird, a Flappy bird clone on LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

 

Overview

A simple and easy to score flappy bird clone programmed in LabVIEW.

 

Description

Used XY graph as a canvas for the game play. H-speed controls the speed with which the canvas scrolls horizontally. Gravity determines the rate of fall of the bird (the red dot). The XY graph has three plots. The first one is for the bird. Second is for the lower part of pipes (filled to -infinity) Third is for the upper part of pipes (filled to +infinity).

 

Requirements

  • LabVIEW 2013 (or compatible)

 

Steps to Implement or Execute Code

  1. Run the VI.
  2. Click the UP button to avoid the bird to hit the pipes or the ground.

Additional Information or References

 VI Snippet of Block Diagram

sni.png

 

 

 **This document has been updated to meet the current required format for the NI Code Exchange. **

 

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
moha420
Member
Member
on

Alguien lo puede convertir a 2012 por favor.

BlackWell
Member
Member
on

Pásame tu correo y en cuanto pueda te lo mando.

Planty123
Member
Member
on

Hi everyone, probably a long shot but thought I would ask. Love the game, however I want to make it get progressively harder. Had the idea to try and increase the horizontal speed with how far your progress, so the game speeds up. I have spent a fair bit of time trying this but whenever I change the h speed, as it is linked to the x global variable the spacing between the pipes also increases..... This obviously negates the increase in difficulty which the increased speed was meant to bring. 

 

If anyone has any advice on maybe how to decouple the h speed and pipe spacing or another solution to this it would be great to hear!

 

Thanks