Skip to content

Commit 52b3eac

Browse files
Marvel Avengers Java Game Added by MihirRajeshPanchal
1 parent 5a83b17 commit 52b3eac

File tree

169 files changed

+1627
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

169 files changed

+1627
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
javac *.java
2+
3+
java PlayGame
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
javac *.java
2+
3+
java PlayGameWithMusic
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
STEPS TO RUN THE GAME :
2+
1.Open Command Prompt from the directory *\(((((Mini Project\GUI Based> //here *=any directories of a drive after unzipping the file
3+
2.Type javac *.java and press enter
4+
3.If you want to play Game with music : Type java PlayGameWithMusic
5+
else if want to play Game without music : Type java PlayGame
6+
4.The Game Will be Running
7+
Terms
8+
//above game is compiled in JDK16
9+
//run the game with java JDK16
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Battle Log Result Points
2+
---------------------------------------------------------------------------------------------------
3+
IRON MAN v/s THANOS IRON MAN Killed THANOS Points Scored : 960
4+
IRON MAN v/s LOKI IRON MAN Killed LOKI Points Scored : 480
5+
CAPTAIN AMERICA v/s LOKI CAPTAIN AMERICA Killed LOKI Points Scored : 480
6+
CAPTAIN AMERICA v/s LOKI CAPTAIN AMERICA Killed LOKI Points Scored : 480
7+
IRON MAN v/s THANOS IRON MAN Killed THANOS Points Scored : 960
8+
HULK v/s LOKI HULK Killed LOKI Points Scored : 480
9+
IRON MAN v/s THANOS IRON MAN and THANOS Killed Each Other Points Scored : 960
10+
IRON MAN v/s THANOS IRON MAN and THANOS Killed Each Other Points Scored : 960
11+
IRON MAN v/s THANOS IRON MAN Killed THANOS Points Scored : 960
12+
IRON MAN v/s THANOS IRON MAN Killed THANOS Points Scored : 960
13+
IRON MAN v/s THANOS IRON MAN Killed THANOS Points Scored : 960
14+
IRON MAN v/s THANOS IRON MAN Killed THANOS Points Scored : 960
15+
IRON MAN v/s THANOS IRON MAN Killed THANOS Points Scored : 960
16+
IRON MAN v/s LOKI IRON MAN Killed LOKI Points Scored : 480

Marvel Avengers Game/(((((Reviews.txt

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Name Stars Review
2+
------------------------------------------------------
3+
Mihir Panchal 5 Great!!!!!!!!!!!
4+
iiuaafiasd 5 kkgwkjgr
5+
Mihir nani 5 good

Marvel Avengers Game/BImage.png

339 KB
Loading

Marvel Avengers Game/Back.png

6.51 KB
Loading

Marvel Avengers Game/Background.jpg

641 KB
Loading

Marvel Avengers Game/CA1.png

3.05 KB
Loading

Marvel Avengers Game/CA2.png

2.23 KB
Loading

Marvel Avengers Game/CA3.png

2.84 KB
Loading

Marvel Avengers Game/CA4.png

3.01 KB
Loading

Marvel Avengers Game/CA5.png

2.77 KB
Loading

Marvel Avengers Game/CA6.png

2.96 KB
Loading

Marvel Avengers Game/CAa1.png

8.74 KB
Loading

Marvel Avengers Game/CAa2.png

9.27 KB
Loading

Marvel Avengers Game/CAa3.png

8.24 KB
Loading

Marvel Avengers Game/CAa4.png

8.92 KB
Loading

Marvel Avengers Game/CAbtn.png

9.67 KB
Loading

Marvel Avengers Game/CAimage.png

89.9 KB
Loading

Marvel Avengers Game/Credits$1.class

541 Bytes
Binary file not shown.

Marvel Avengers Game/Credits$2.class

701 Bytes
Binary file not shown.

Marvel Avengers Game/Credits.class

1.71 KB
Binary file not shown.

Marvel Avengers Game/Credits.java

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
import java.awt.*;
2+
import javax.swing.JFrame;
3+
import java.awt.event.*;
4+
import javax.swing.*;
5+
6+
class Credits extends JFrame
7+
{
8+
Credits()
9+
{
10+
JLabel cr,background,txt1,txt2,txt3,txt4;
11+
JButton exit,back;
12+
//declaration
13+
setSize(1570,840);
14+
setLayout(null);
15+
//background image
16+
setExtendedState(JFrame.MAXIMIZED_BOTH);
17+
setDefaultCloseOperation(EXIT_ON_CLOSE);
18+
ImageIcon img=new ImageIcon("BImage.png");
19+
background=new JLabel("",img,JLabel.CENTER);
20+
background.setBounds(0,0,1570,770);
21+
add(background);
22+
//background image finish
23+
cr=new JLabel(new ImageIcon("Credits.png"));
24+
cr.setBounds(580,50,362,79);
25+
background.add(cr);
26+
//mmbutton
27+
exit=new JButton(new ImageIcon("Exit.png"));
28+
exit.setBounds(610,600,291,79);
29+
exit.setBackground(Color.BLACK);
30+
background.add(exit);
31+
//exit
32+
33+
back=new JButton(new ImageIcon("backbtn.png"));
34+
back.setBounds(0,0,100,100);
35+
back.setBackground(Color.BLACK);
36+
background.add(back);
37+
38+
txt1=new JLabel(new ImageIcon("txt1.png"));
39+
txt1.setBounds(300,175,441,73);
40+
background.add(txt1);
41+
42+
txt2=new JLabel(new ImageIcon("txt2.png"));
43+
txt2.setBounds(300,275,440,73);
44+
background.add(txt2);
45+
46+
txt3=new JLabel(new ImageIcon("txt3.png"));
47+
txt3.setBounds(300,375,300,73);
48+
background.add(txt3);
49+
50+
txt4=new JLabel(new ImageIcon("txt4.png"));
51+
txt4.setBounds(300,475,823,73);
52+
background.add(txt4);
53+
54+
//all actions
55+
back.addActionListener(new ActionListener()
56+
{
57+
public void actionPerformed(ActionEvent ae)
58+
{
59+
setVisible(false);
60+
MainMenu m=new MainMenu();
61+
}
62+
});
63+
exit.addActionListener(new ActionListener()
64+
{
65+
public void actionPerformed(ActionEvent ae)
66+
{
67+
setVisible(false);
68+
System.out.println("Game Ended");
69+
System.exit(0);
70+
}
71+
});
72+
setVisible(true);
73+
}
74+
public static void main (String args[])
75+
{
76+
Credits c=new Credits();
77+
}
78+
}

Marvel Avengers Game/Credits.png

7.45 KB
Loading
562 Bytes
Binary file not shown.
721 Bytes
Binary file not shown.
5.29 KB
Binary file not shown.

0 commit comments

Comments
 (0)