ich hab bei meinem spiel ALIEN HUNTER
ein Prob beim auslesen des Highscores...
Besser gesagt ich hab kA von Highscores...
Hier mal der Code von meiner datei:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name$ = Input("Spielername: ")
stream = OpenFile("highscores.x")
Function funktion_highscore()
Local x1 = 212
Local y1 = 20
Local x2 = 812
Local y2 = 20
Local Zeilen = 11
Local Zahl = 0
Local Name$
For i = 0 To Zeilen
Line x1,y1,x2,y2
y1 = y1 + 30
y2 = y2 + 30
Next
y1 = 20
y2 = 350
Line x1,y1,x1,y2
Line x2,y1,x2,y2
Line x1+55,y1,x1+55,y2
Line x1+150,y1,x1+150,y2
x1 = 215
y1 = 23
zeilen = 9
Text x1+6,y1+6,"Platz"
Text x1+60,y1+6,"Score"
Text x1+155,y1+6,"Name"
Text x1+155,y1+35,name$
For i = 0 To Zeilen
Zahl = Zahl + 1
Text x1+6,y1+36,Zahl+"."
Text x1+65,y1+36,Score
y1 = y1 + 30
Next
End Function
edited 1×, last 27.07.05 07:06:33 pm