• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

[BB] Kleine Frage

Status
Für weitere Antworten geschlossen.

Nobody1993

Mitglied
Moin Leutz,
ich hab heut mal angefangen mit BB.
Ich will mal so zum Anfang ein kleines Pacman game machen.
Ich hab bereits das Labyrinth gebaut, aber irgendwie schaff ichs nicht, dass er nur, wenn ich ESC drücke, das Game schließt.

Dies ist mein Code:
Code:
[I][COLOR=black]Print "Welcome to my first Game."[/COLOR][/I]
[I][COLOR=black]Print "I call it Pacman Demo"[/COLOR][/I]
[I][COLOR=black]Print "How to Play:"[/COLOR][/I]
[I][COLOR=black]Print "Keys:"[/COLOR][/I]
[I][COLOR=black]Print "Arrowdown : Go down"[/COLOR][/I]
[I][COLOR=black]Print "Arrowup : Go up"[/COLOR][/I]
[I][COLOR=black]Print "Arrowleft : Go left"[/COLOR][/I]
[I][COLOR=black]Print "Arrowright : Go right"[/COLOR][/I]
[I][COLOR=black]Print "Escape : Close game"[/COLOR][/I]
[I][COLOR=black]Print "Mission: "[/COLOR][/I]
[I][COLOR=black]Print "Go safely of the ghosts and take the fruits"[/COLOR][/I]
[I][COLOR=black]Print "You have 1 Life"[/COLOR][/I]
[I][COLOR=black]Print "To start the game, press ENTER"[/COLOR][/I]
[I][COLOR=black]WaitKey[/COLOR][/I]
[I][COLOR=black]Cls[/COLOR][/I]
[COLOR=black][/COLOR] 
[COLOR=black][I]Graphics4[/I]00, 400[/COLOR]
[COLOR=black]Line 40, 40, 40, 180[/COLOR]
[COLOR=black]Line 40, 40, 180, 40[/COLOR]
[COLOR=black]Line 40, 358, 40, 212[/COLOR]
[COLOR=black]Line40, 358, 199, 358[/COLOR]
[COLOR=black]Line240, 40, 360, 40[/COLOR]
[COLOR=black]Line360, 40, 360, 150[/COLOR]
[COLOR=black]Line260, 360, 360, 360[/COLOR]
[COLOR=black]Line360, 360, 360, 215[/COLOR]
[COLOR=black]Line100, 310, 180, 310[/COLOR]
[COLOR=black]Line100, 90, 180, 90[/COLOR]
[COLOR=black]Line100, 90, 100, 310[/COLOR]
[COLOR=black]Line230, 310, 310, 310[/COLOR]
[COLOR=black]Line240, 90, 310, 90[/COLOR]
[COLOR=black]Line310, 90, 310, 310[/COLOR]
[COLOR=black][/COLOR] 
[COLOR=black][/COLOR] 
[FONT=blitz][COLOR=black]WaitKey[/COLOR][/FONT]
[FONT=blitz][COLOR=black]WaitKey[/COLOR][/FONT]
[FONT=blitz][COLOR=black]Repeat[/COLOR][/FONT]
[FONT=blitz][COLOR=black]Cls[/COLOR][/FONT]
[COLOR=black][FONT=blitz]Print[/FONT][FONT=blitz]"Thx For playing my little game :D"[/FONT][/COLOR]
[COLOR=black][FONT=blitz]Print[/FONT][FONT=blitz] "Visit www.lan-maniac.de!"[/FONT][/COLOR]
[COLOR=black][FONT=blitz]Print[/FONT][FONT=blitz] "Made by Rubberducky[/FONT][/COLOR]
[FONT=blitz][COLOR=black]WaitKey[/COLOR][/FONT]
[COLOR=black][FONT=blitz]Until[/FONT][FONT=blitz]KeyHit[/FONT][FONT=blitz] = ([/FONT][FONT=blitz]ESC[/FONT][FONT=blitz])[/FONT][/COLOR]
[COLOR=black][FONT=blitz]If[/FONT][FONT=blitz]False[/FONT][/COLOR]
[COLOR=black][FONT=blitz]EndIf[/FONT][FONT=blitz]KeyHit[/FONT][FONT=blitz] = ([/FONT][FONT=blitz]ESC[/FONT][FONT=blitz])[/FONT][/COLOR]
 
Zuletzt bearbeitet:
Farben sind besser, dafür is jetzt alles in einer Zeile :?

Naja, auch wenn ich eigentlich nich viel Ahnung von BB habe würde ich sagen, dass hinter "Made by Rubberducky ein " fehlt.
 
Ohh, 1. Bei mir wird es untereinander angezeigt ^^

2. Danke für den Fehler :D

3. Ich hab aber die Frage, wie ich nun mache, dass sich das Game nur bei ESC schließt, bei einer anderen Taste nichts passiert :S
 
Status
Für weitere Antworten geschlossen.
Zurück
Oben