vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 function Tetris_newgame_custom ()
2 local ingame = Tetris["ingame"];
3 if (ingame == 1) then
4 Tetris_gameover();
5 end
6 --alles reseten
7 Tetris["game"]= { };
8 Tetris["game"]["feld"]= { };
9 Tetris["game"]["s_temp"]= { };
10 Tetris["game"]["s_temp"]["temp"]= { };
11 Tetris["game"]["s_NS_temp"]= { };
12 Tetris["game"]["s_gost"] = { };
13 Tetris["game"]["s_gost"]["temp"] = { };
14 --spiel typ custom
15 Tetris["game"]["gametypc"]=1;
16 Tetris["game"]["gametyp"]=Tetris["options"]["gametyp"];
17 --x spalten
18 Tetris["game"]["x"]=Tetris["options"]["breite"];
19 --y zeilen
20 Tetris["game"]["y"]=Tetris["options"]["hohe"];
21 --x NS spalten
22 Tetris["game"]["NS_x"]=4;
23 --y NS zeilen
24 Tetris["game"]["NS_y"]=3;
25 --nummer des nächsten bausteins
26 Tetris["game"]["s_next"]=0;
27 --nummer des aktuellen bausteins
28 Tetris["game"]["s"]=0;
29 --anz_steine des aktuellen bausteins
30 Tetris["game"]["s_anz_s"]=0;
31 --anz_lagen aktuellen bausteins
32 Tetris["game"]["s_anz_l"]=0;
33 --aktuelle lage des bausteins
34 Tetris["game"]["s_lage"]=0;
35 --x pos des hauptbausteins
36 Tetris["game"]["s_pos_x"]=0;
37 --y pos des hauptbausteins
38 Tetris["game"]["s_pos_y"]=0;
39 --start timer
40 Tetris["game"]["timer"] = 0.5;
41 Tetris["game"]["timer_go"] = 1;
42 --scores
43 Tetris["game"]["score"] = {};
44 Tetris["game"]["score"]["points"]=0;
45 Tetris["game"]["score"]["lvl"]=0;
46 Tetris["game"]["score"]["linie"]=0;
47 --steinliste erstellen
48 Tetris_stonelist_create ();
49 --grösse des table speichern
50 Tetris["game"]["stones"]["anz_stones"]=table.getn(Tetris["game"]["stones"]);
51 Tetris_GF_gamewindow_Clear ();
52 Tetris_ingame(1);
53 Tetris_GF_create ();
54 Tetris_GF_NS_create ();
55 Tetris_fieldlist_create ();
56 --zufalls steine
57 if (Tetris["options"]["r_lines_activ"] == 1) then
58 local lines = Tetris["options"]["r_lines"];
59 Tetris_creat_custom_lines (lines);
60 end
61 Tetris_GF_gamewindow_Update ();
62 Tetris_GF_SetFramesPos();
63 Tetris_new_stone ();
64 Tetris_GF_timer_Update ();
65 Tetris_GF_Titeltext_Update ();
66 Tetris_GF_highscore_Show ();
67 end
68  
69 function Tetris_stone_is_down_custom (r)
70 local gametyp = Tetris["game"]["gametyp"];
71 if (gametyp == 1) then
72 Tetris_stone_is_down_ms_dos (r);
73 end
74 if (gametyp == 2) then
75 Tetris_stone_is_down_gameboy (r);
76 end
77 if (gametyp == 3) then
78 Tetris_stone_is_down_retris (r);
79 end
80 if (gametyp == 4) then
81 Tetris_stone_is_down_highest_hopes (r);
82 end
83 end
84  
85 function Tetris_gameover_custom ()
86 --ingamestatus ändern
87 Tetris_ingame (0);
88 end