public Game(int height, int width) { game_width = width; game_height = height; snake_area_x = new Linkedlist(); snake_area_y = new Linkedlist(); wall_area_x = new Linkedlist(); wall_area_y = new Linkedlist(); snake_skin_color = Brushes.Blue; snake_body_color = Brushes.Red; back_color = Brushes.Black; wall_skin_color = Brushes.BurlyWood; wall_body_color = Brushes.Peru; bait_bool = false; bait_skin_color = Brushes.Pink; bait_body_color = Brushes.Purple; node_length = 20; node_border_length = 2; bait.X = -1; bait.Y = -1; snake_route = 2; snake_route_temp = 2; point = 0; level_point = 1000; sound_eated = new SoundPlayer(Application.StartupPath + "\\sounds\\eated.wav"); sound_menu = new SoundPlayer(Application.StartupPath + "\\sounds\\menu.wav"); sound_gameover = new SoundPlayer(Application.StartupPath + "\\sounds\\gameover.wav"); myfont = new PrivateFontCollection(); myfont.AddFontFile(Application.StartupPath + "\\fonts\\DALEK.ttf"); fontfamily = myfont.Families[0]; game_status = "menu_1"; game_level = 1; max_level = 6; sound_control = "on"; speed_control = "easy"; snake_speed = new int[3] { 150, 100, 50 }; }
public Game(int height,int width) { game_width = width; game_height = height; snake_area_x = new Linkedlist(); snake_area_y = new Linkedlist(); wall_area_x= new Linkedlist(); wall_area_y= new Linkedlist(); snake_skin_color = Brushes.Blue; snake_body_color = Brushes.Red; back_color = Brushes.Black; wall_skin_color = Brushes.BurlyWood; wall_body_color = Brushes.Peru; bait_bool=false; bait_skin_color = Brushes.Pink; bait_body_color = Brushes.Purple; node_length = 20; node_border_length =2; bait.X = -1; bait.Y = -1; snake_route = 2; snake_route_temp=2; point =0; level_point = 50; sound_eated = new SoundPlayer(Application.StartupPath + "\\sounds\\eated.wav"); sound_menu = new SoundPlayer(Application.StartupPath + "\\sounds\\menu.wav"); sound_gameover = new SoundPlayer(Application.StartupPath + "\\sounds\\gameover.wav"); myfont = new PrivateFontCollection(); myfont.AddFontFile(Application.StartupPath+ "\\fonts\\DALEK.ttf"); fontfamily = myfont.Families[0]; game_status = "menu_1"; game_level = 1; max_level = 6; sound_control = "on"; speed_control = "easy"; snake_speed = new int[3] {150,100,50}; }