mapmenu angefangen
parent
6019d55836
commit
c137c9080a
|
@ -0,0 +1,22 @@
|
|||
#####################
|
||||
#. .#
|
||||
# ## ## ## ## ## ## #
|
||||
# ## ## ## ## ## ## #
|
||||
# . . #
|
||||
# ## ## ## ## ## ## #
|
||||
# ## ## ## ## ## ## #
|
||||
# #
|
||||
# ## ## ## ## ## ## #
|
||||
# ## ## #0,1# ## ## #
|
||||
# #,#,# #
|
||||
# ## ## #2,3# ## ## #
|
||||
# ## ## ##### ## ## #
|
||||
# P #
|
||||
# ## ## ## ## ## ## #
|
||||
# ## ## ## ## ## ## #
|
||||
# . . #
|
||||
# ## ## ## ## ## ## #
|
||||
# ## ## ## ## ## ## #
|
||||
#. .#
|
||||
#####################
|
||||
Blocky
|
|
@ -0,0 +1,20 @@
|
|||
Round and Round
|
||||
###################
|
||||
# # # #
|
||||
# ### # # ### #
|
||||
# .# ## ## #. #
|
||||
# # # # # # #
|
||||
# # ##### # #
|
||||
## # # # # ##
|
||||
# # # #0# # # #
|
||||
# #. # # # # .# #
|
||||
#2## # # # ##3#
|
||||
# #. # # # # .# #
|
||||
# # # #1# # # #
|
||||
## # # # # ##
|
||||
# # ##### # #
|
||||
# # # # # # #
|
||||
# .# ## ## #. #
|
||||
# ### # # ### #
|
||||
# # P # #
|
||||
###################
|
|
@ -0,0 +1,32 @@
|
|||
Ms Pac-Man
|
||||
############################
|
||||
# ## ## #
|
||||
#.#### ## ######## ## ####.#
|
||||
# #### ## ######## ## #### #
|
||||
# #
|
||||
### ## ##### ## ##### ## ###
|
||||
,,# ## ##### ## ##### ## #,,
|
||||
### ## ##### ## ##### ## ###
|
||||
,,# ## ## ## #,,
|
||||
### ##### ######## ##### ###
|
||||
,,# ##### ######## ##### #,,
|
||||
,,# 01 #,,
|
||||
,,# ##### ######## ##### #,,
|
||||
,,# ##### # # ##### #,,
|
||||
,,# ## #### ## #,,
|
||||
,,# ## ## #2 3# ## ## #,,
|
||||
### ## ## ######## ## ## ###
|
||||
,,# ## ## #,,
|
||||
### ######## ## ######## ###
|
||||
,,# ######## ## ######## ###
|
||||
,,# ## #,,
|
||||
,,# ##### ######## ##### #,,
|
||||
### ##### ######## ##### ###
|
||||
# P #
|
||||
# #### ##### ## ##### #### #
|
||||
# #### ##### ## ##### #### #
|
||||
# #### ## ## ## #### #
|
||||
#.#### ## ######## ## ####.#
|
||||
# #### ## ######## ## #### #
|
||||
# #
|
||||
############################
|
|
@ -0,0 +1,33 @@
|
|||
[mir ist noch kein Titel eingefallen]
|
||||
##################################
|
||||
# #
|
||||
# # ## ## ################# ## # #
|
||||
# # ## ## ## ## # #
|
||||
# # ## ################# ## ## # #
|
||||
# # ## ## ## ## # #
|
||||
# # ## ##.##############.## ## # #
|
||||
# # ## ## ## ## # #
|
||||
# # ## ## ################# ## # #
|
||||
# # ## ## ## ## # #
|
||||
# # ## ## ############## ## ## # #
|
||||
# # ## ## ## ## # #
|
||||
# # ## #######,####,####### ## # #
|
||||
# # ## #######,####,####### ## # #
|
||||
# # ## ##,,,,,,,,,,,## ## # #
|
||||
# # ##### ##,## ## ##,## ##### # #
|
||||
# ##### ##,#0,,,,1#,## ##### #
|
||||
# #. ## ##,########,## ## .# #
|
||||
# ### ## ##2,##,,,,##,3## ## ### #
|
||||
# ### ## ###,,,,##,,,,### ## ### #
|
||||
# ### ## ################ ## ### #
|
||||
# ### ## ################ ## ### #
|
||||
# ### ## # ## ### #
|
||||
# ### ## ############## # ## ### #
|
||||
# ### ## # # ## ### #
|
||||
# ### ## #P############## ## ### #
|
||||
# ### ## # # ## ### #
|
||||
# ### ## # ############ # ## ### #
|
||||
# ### ## # # ## ### #
|
||||
# ### ## ###.########.### ## ### #
|
||||
# #
|
||||
##################################
|
|
@ -0,0 +1,32 @@
|
|||
Crazy Otto
|
||||
############################
|
||||
# ## ## #
|
||||
#.####### ## ## ## #######.#
|
||||
# ####### ## ## ## ####### #
|
||||
# ## ## ## #
|
||||
# ## ## #### ## #### ## ## #
|
||||
# ## #### ## #### ## #
|
||||
#### ## #### #### ## ####
|
||||
#### ## ## ####
|
||||
# #### ######## #### #
|
||||
# ## #### ######## #### ## #
|
||||
# ## 01 ## #
|
||||
# #### ## ######## ## #### #
|
||||
# #### ## # # ## #### #
|
||||
# ## #### ## #
|
||||
# ## #### #2 3# #### ## #
|
||||
# ## #### ######## #### ## #
|
||||
# ## ## #
|
||||
# #### ##### ## ##### #### #
|
||||
# #### ##### ## ##### #### #
|
||||
# ## ## ## #
|
||||
### ## ## ######## ## ## ###
|
||||
### ## ## ######## ## ## ###
|
||||
#. ## P ## .#
|
||||
# #### ##### ## ##### #### #
|
||||
# #### ##### ## ##### #### #
|
||||
# ## ## ## #
|
||||
# #### ## ######## ## #### #
|
||||
# #### ## ######## ## #### #
|
||||
# ## ## #
|
||||
############################
|
|
@ -0,0 +1,32 @@
|
|||
Cookie-Man
|
||||
############################
|
||||
# ## ## #
|
||||
# #### ## ######## ## #### #
|
||||
#.#### ## ######## ## ####.#
|
||||
# ## ## ## #
|
||||
### ## ## ## ## ## ## ## ###
|
||||
### ## ## ## ## ## ## ## ###
|
||||
# ## ## ## ## ## #
|
||||
### ## ## ## ## ## ## ###
|
||||
### ## ## ######## ## ## ###
|
||||
# ## ## ######## ## ## ###
|
||||
# #### 01 #### #
|
||||
# #### ## ######## ## #### #
|
||||
# ## # # ## #
|
||||
### ##### #### ##### ###
|
||||
### ##### #2 3# ##### ###
|
||||
# ## ######## ## #
|
||||
# #### ## ## #### #
|
||||
# #### ## ######## ## #### #
|
||||
# ## ## ######## ## ## #
|
||||
### ## ## ## ## ## ###
|
||||
,,# ## ## ## ## ## ## ## #,,
|
||||
### ## ## ## ## ## ## ## ###
|
||||
# ## P ## #
|
||||
### ## ##### ## ##### ## ###
|
||||
### ## ##### ## ##### ## ###
|
||||
# ## ## ## #
|
||||
# #### ## ######## ## #### #
|
||||
#.#### ## ######## ## ####.#
|
||||
# ## ## #
|
||||
############################
|
|
@ -0,0 +1,29 @@
|
|||
Spider's Web
|
||||
#####################
|
||||
# #
|
||||
# ## ########### ## #
|
||||
# #
|
||||
##### ######### #####
|
||||
# #
|
||||
# #### ####### #### #
|
||||
# # # #
|
||||
# # ### ##### ### # #
|
||||
# # # # # #
|
||||
# # ## ### ## # #
|
||||
# # # # # #
|
||||
# # # ##### # # #
|
||||
# # # # # # # # # #
|
||||
# # # # # # # # # #
|
||||
# # # ##### # # #
|
||||
# # # # # #
|
||||
# # ## ### ## # #
|
||||
# # # # # #
|
||||
# # ### ##### ### # #
|
||||
# # # #
|
||||
# #### ####### #### #
|
||||
# #
|
||||
##### ######### #####
|
||||
# #
|
||||
# ## ########### ## #
|
||||
# #
|
||||
#####################
|
|
@ -0,0 +1 @@
|
|||
/MapMenu.class
|
Binary file not shown.
BIN
bin/Game.class
BIN
bin/Game.class
Binary file not shown.
BIN
bin/Ghost.class
BIN
bin/Ghost.class
Binary file not shown.
BIN
bin/Lives.class
BIN
bin/Lives.class
Binary file not shown.
BIN
bin/Main.class
BIN
bin/Main.class
Binary file not shown.
BIN
bin/Map.class
BIN
bin/Map.class
Binary file not shown.
BIN
bin/Point.class
BIN
bin/Point.class
Binary file not shown.
|
@ -10,8 +10,10 @@ public class Main {
|
|||
|
||||
System.setProperty("sun.java2d.opengl", "true");
|
||||
|
||||
Game game = new Game(); // Das Spiel wird gestartet
|
||||
// Game game = new Game(); // Das Spiel wird gestartet
|
||||
|
||||
MapMenu menu = new MapMenu();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,55 @@
|
|||
import java.io.File;
|
||||
|
||||
import javax.swing.JButton;
|
||||
import javax.swing.JComboBox;
|
||||
import javax.swing.JFrame;
|
||||
import javax.swing.JLabel;
|
||||
import javax.swing.JPanel;
|
||||
import javax.swing.JTextField;
|
||||
|
||||
public class MapMenu extends JFrame {
|
||||
|
||||
JButton button;
|
||||
|
||||
JPanel panel;
|
||||
|
||||
JComboBox bob;
|
||||
|
||||
String[] maps;
|
||||
|
||||
File path;
|
||||
|
||||
Game game;
|
||||
|
||||
public MapMenu() {
|
||||
|
||||
super("Map Menu");
|
||||
|
||||
path = new File("assets/maps");
|
||||
|
||||
maps = path.list();
|
||||
|
||||
this.setVisible(true);
|
||||
this.setBounds(100, 100, 300, 200);
|
||||
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
this.setResizable(false); // Man kann die Größe des Frame nicht verändern
|
||||
|
||||
panel = new JPanel(); // Panel auf dem visuellen Elemente angezeigt werden
|
||||
|
||||
// Der Inhalt des Panels wird auf dem Frame angezeigt:
|
||||
this.setContentPane(panel);
|
||||
this.getContentPane().setLayout(null);
|
||||
|
||||
|
||||
button = new JButton("Lauch dat shit");
|
||||
panel.add(button);
|
||||
button.setBounds(20, 100, 150, 30);
|
||||
|
||||
bob = new JComboBox(maps);
|
||||
// bob.setEditable(true);
|
||||
panel.add(bob);
|
||||
bob.setBounds(30, 30, 180, 30);
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue