π
<-

Beta Version of Flappy Bird

Pour le TI-Basic sur Nspire

Beta Version of Flappy Bird

Unread postby parzival1747 » Yesterday, 21:13

TI BASIC
Code: Select all
ClrHome
ClrDraw
AxesOff
0->Xmin
0->Ymin
62->Ymax
94->Xmax
0->Z
Horizontal 0
Horizontal 62
For(X,20,25
   Vertical X
End
For(X,46,51)
   Vertical X
End
For(X,78,83
   Vertical X
End
StorePic 0
Lbl 9
ClrDraw
RecallPic 0
randInt(1,42)->C
For(A,20,25,2
   For(B,C,C+20)
      Pt-Off(A,B,2
   End
End
randInt(1,42)->C
For(A,46,51,2
   For(B,C,C+20)
      Pt-Off(A,B,2
   End
End
randInt(1,42)->C
For(A,78,83,2
   For(B,C,C+20)
      Pt-Off(A,B,2
   End
End
For(F,1,200)
End
31->Y
2->X
{3,3,3,2,2,1}->L1
{1,2,2,3,3,3,44,4,4,4,4,4,4,4,4,4}->L2
Lbl 8
Goto D
Lbl U
Text(0,0,Z
For(A,1,6
   If getKey
   Goto U
   Pt-Off(X,Y,2
   X+1->X
   Y+L1(A)->Y
   Pt-On(X,Y,2)
   If pxl-Test(64-Y,X) or pxl-Test(60-Y,X) or pxl-Test(62-Y,X+2)
   Goto L
   If X=92
   Goto 9
   If X=20 or X=46 or X=78
   Z+1->Z
End
Lbl D
Text(0,0,Z
For(A,1,17
   If getKey
   Goto U
   Pt-Off(X,Y,2
   X+1->X
   Y-L2(A)->Y
   Pt-On(X,Y,2)
   If pxl-Test(64-Y,X) or pxl-Test(60-Y,X) or pxl-Test(62-Y,X+2)
   Goto L
   If X=92
   Goto 9
   If X=20 or X=46 or X=78
   Z+1->Z
End
Lbl L
Circle(X,Y,9
For(A,1,200
End
Line(30,52,64,52
For(A,51,9,-1
   Line(28,A,66,A,0
   Pt-On(30,A
   Pt-On(64,A
End
Line(30,9,64,9
Text(-1,13,36,"GAME
Text(-1,21,36,"OVER
ClrDraw
ClrHome
"


User avatar
parzival1747
Niveau 1: MD (Membre Débutant)
Niveau 1: MD (Membre Débutant)
Level up: 20%
 
Posts: 2
Joined: 20 Aug 2025, 00:21
Gender: Not specified
Calculator(s):
MyCalcs profile

Return to Nspire-Basic

Who is online

Users browsing this forum: No registered users and 2 guests

Surprise...
-
Search
-
Social TI-Planet
-
Featured topics
Comparaisons des meilleurs prix pour acheter sa calculatrice !
"1 calculatrice pour tous", le programme solidaire de Texas Instruments. Reçois gratuitement et sans aucune obligation d'achat, 5 calculatrices couleur programmables en Python à donner aux élèves les plus nécessiteux de ton lycée. Tu peux recevoir au choix 5 TI-82 Advanced Edition Python ou bien 5 TI-83 Premium CE Edition Python.
Enseignant(e), reçois gratuitement 1 exemplaire de test de la TI-82 Advanced Edition Python. À demander d'ici le 31 décembre 2024.
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
1234
-
Donations / Premium
For more contests, prizes, reviews, helping us pay the server and domains...
Donate
Discover the the advantages of a donor account !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partner and ad
Notre partenaire Jarrety Calculatrices à acheter chez Calcuso
-
Stats.
2324 utilisateurs:
>2307 invités
>12 membres
>5 robots
Record simultané (sur 6 mois):
29271 utilisateurs (le 11/07/2025)
-
Other interesting websites
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)