GithubHelp home page GithubHelp logo

java-game-project's Introduction

IST-JAV MINI GAME PROJECT

πŸ™‹β€β™€οΈ participants Jiwon Seol(@seoljiwon), Kyoungmin Lee(@kyoungmiin)

πŸ‘©πŸ»β€πŸ’» tech stack 100% JAVA 😁

0. How to play the game / How to compile


After cloning... In directory java_game_project/src
Run command

To Compile the source code,

$ javac Game.java

To execute byte code file,

$ java Game

Jelly Run automatically starts!πŸ‘Ύ Enjoy the game with β–² and β–Ό key

201546447-765279a8-201a-43ba-a3ba-a3f701dafe83.mp4

1. Character


  • The character runs and avoids the enemies.

    • The character can avoid the enemies by jumping or sliding, pressing up(β–²) key to jump and down(β–Ό) key to slide.
  • Character class has 6 member variables: imageObject, hp, speed, jumpScale, x and y

    • imageObject is the graphical image of the character, which is gotten as a parameter when the class is being created in GameFrame class.
    • hp is the energy of the character, which is also gotten as a parameter. The game will be end if the character's hp becomes 0.
    • speed is the speed of the character's run and it is related to the Background class since the character seems to be running because actually the background is moving, not the character.
    • jumpScale is the height how high it will jump when we press up(β–²) key.
    • x and y are the position of the character in the game window.
    • If the character is collided by an enemy, it's hp will be decreased certain amount which depends on the enemy's damage.
    • If the hp of the character becomes 0, the game automatically ends.

2. Enemy


  • There are 3 kinds of enemies: basic enemy, bomb enemy and descending enemy

    • The basic enemy just horizontally moves toward the character and gives damage to the user if they crash.
    • The bomb enemy falls from the sky and bombs when it reaches the ground so that the flame of the bomb can attack the character.
    • The descending enemy comes down from the sky and hangs at the top so the character should slide to avoid this enemy.
  • Each enemy has 4 common member variables: imageObj, damage, x and y

    • Special variable damage is each enemy's own value which harms the character in that amount.

java-game-project's People

Contributors

seoljiwon avatar kyoungmin0 avatar kyoungmiin avatar

Stargazers

Seungyun Baek avatar

Watchers

 avatar

java-game-project's Issues

earn xp

  • 총 xpλ₯Ό static으둜 λ„£μ–΄μ„œ xpλŸ‰μ΄ μ–Όλ§ˆκ°€ 될 λ•Œλ§ˆλ‹€ λ ˆλ²¨μ„ μ •ν•΄μ„œ hpκ°€ λŠ˜μ–΄λ‚˜λ„λ‘ ν•˜λŠ” 건 μ–΄λ–€κ°€μš”?

chracter hp

  • show (current hp) in the screen while playing the game

enemy method

  • decrease character hp when collided with enemy
  • if hp == 0, show "game over"

gun enemy

implement items by array

  • crash
  • attack

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.