Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Marvel Avengers Game/((((((((PlayGame.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
javac *.java

java PlayGame
3 changes: 3 additions & 0 deletions Marvel Avengers Game/((((((((PlayGameWithMusic.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
javac *.java

java PlayGameWithMusic
9 changes: 9 additions & 0 deletions Marvel Avengers Game/(((((((README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
STEPS TO RUN THE GAME :
1.Open Command Prompt from the directory *\(((((Mini Project\GUI Based> //here *=any directories of a drive after unzipping the file
2.Type javac *.java and press enter
3.If you want to play Game with music : Type java PlayGameWithMusic
else if want to play Game without music : Type java PlayGame
4.The Game Will be Running
Terms
//above game is compiled in JDK16
//run the game with java JDK16
16 changes: 16 additions & 0 deletions Marvel Avengers Game/(((((Battle Log.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Battle Log Result Points
---------------------------------------------------------------------------------------------------
IRON MAN v/s THANOS IRON MAN Killed THANOS Points Scored : 960
IRON MAN v/s LOKI IRON MAN Killed LOKI Points Scored : 480
CAPTAIN AMERICA v/s LOKI CAPTAIN AMERICA Killed LOKI Points Scored : 480
CAPTAIN AMERICA v/s LOKI CAPTAIN AMERICA Killed LOKI Points Scored : 480
IRON MAN v/s THANOS IRON MAN Killed THANOS Points Scored : 960
HULK v/s LOKI HULK Killed LOKI Points Scored : 480
IRON MAN v/s THANOS IRON MAN and THANOS Killed Each Other Points Scored : 960
IRON MAN v/s THANOS IRON MAN and THANOS Killed Each Other Points Scored : 960
IRON MAN v/s THANOS IRON MAN Killed THANOS Points Scored : 960
IRON MAN v/s THANOS IRON MAN Killed THANOS Points Scored : 960
IRON MAN v/s THANOS IRON MAN Killed THANOS Points Scored : 960
IRON MAN v/s THANOS IRON MAN Killed THANOS Points Scored : 960
IRON MAN v/s THANOS IRON MAN Killed THANOS Points Scored : 960
IRON MAN v/s LOKI IRON MAN Killed LOKI Points Scored : 480
5 changes: 5 additions & 0 deletions Marvel Avengers Game/(((((Reviews.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Name Stars Review
------------------------------------------------------
Mihir Panchal 5 Great!!!!!!!!!!!
iiuaafiasd 5 kkgwkjgr
Mihir nani 5 good
Binary file added Marvel Avengers Game/BImage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Marvel Avengers Game/Back.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Marvel Avengers Game/Background.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Marvel Avengers Game/CA1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Marvel Avengers Game/CA2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Marvel Avengers Game/CA3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Marvel Avengers Game/CA4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Marvel Avengers Game/CA5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Marvel Avengers Game/CA6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Marvel Avengers Game/CAa1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Marvel Avengers Game/CAa2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Marvel Avengers Game/CAa3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Marvel Avengers Game/CAa4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Marvel Avengers Game/CAbtn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Marvel Avengers Game/CAimage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Marvel Avengers Game/Credits$1.class
Binary file not shown.
Binary file added Marvel Avengers Game/Credits$2.class
Binary file not shown.
Binary file added Marvel Avengers Game/Credits.class
Binary file not shown.
78 changes: 78 additions & 0 deletions Marvel Avengers Game/Credits.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
import java.awt.*;
import javax.swing.JFrame;
import java.awt.event.*;
import javax.swing.*;

class Credits extends JFrame
{
Credits()
{
JLabel cr,background,txt1,txt2,txt3,txt4;
JButton exit,back;
//declaration
setSize(1570,840);
setLayout(null);
//background image
setExtendedState(JFrame.MAXIMIZED_BOTH);
setDefaultCloseOperation(EXIT_ON_CLOSE);
ImageIcon img=new ImageIcon("BImage.png");
background=new JLabel("",img,JLabel.CENTER);
background.setBounds(0,0,1570,770);
add(background);
//background image finish
cr=new JLabel(new ImageIcon("Credits.png"));
cr.setBounds(580,50,362,79);
background.add(cr);
//mmbutton
exit=new JButton(new ImageIcon("Exit.png"));
exit.setBounds(610,600,291,79);
exit.setBackground(Color.BLACK);
background.add(exit);
//exit

back=new JButton(new ImageIcon("backbtn.png"));
back.setBounds(0,0,100,100);
back.setBackground(Color.BLACK);
background.add(back);

txt1=new JLabel(new ImageIcon("txt1.png"));
txt1.setBounds(300,175,441,73);
background.add(txt1);

txt2=new JLabel(new ImageIcon("txt2.png"));
txt2.setBounds(300,275,440,73);
background.add(txt2);

txt3=new JLabel(new ImageIcon("txt3.png"));
txt3.setBounds(300,375,300,73);
background.add(txt3);

txt4=new JLabel(new ImageIcon("txt4.png"));
txt4.setBounds(300,475,823,73);
background.add(txt4);

//all actions
back.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent ae)
{
setVisible(false);
MainMenu m=new MainMenu();
}
});
exit.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent ae)
{
setVisible(false);
System.out.println("Game Ended");
System.exit(0);
}
});
setVisible(true);
}
public static void main (String args[])
{
Credits c=new Credits();
}
}
Binary file added Marvel Avengers Game/Credits.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Marvel Avengers Game/Description$1.class
Binary file not shown.
Binary file added Marvel Avengers Game/Description$2.class
Binary file not shown.
Binary file added Marvel Avengers Game/Description.class
Binary file not shown.
Loading