Git Product home page Git Product logo

shooting_game's Introduction

shooting_game

  1. 슈팅 게임 설명

  2. 주요 코드


1. 슈팅 게임 설명

  • 목차
  1. 게임 시작
  2. 게임 설명
  3. 동작 과장
  4. 게임 종료

1-1 게임 시작

image

  • 게임을 시작하면 나오는 처음 화면입니다.
  • 사진에 보이다시피 enter키를 눌러 다음 화면으로 넘어갑니다

1-2 게임 설명

image

  • enter를 누른 다음 화면입니다.
  • 게임에 대한 전체적인 설명이 있습니다.

image

  • 게임이 시작하면 조종하게 되는 배입니다. W,A,S,D로 움직이며 몬스터들을 피하면 됩니다.

image

  • 배에서 나오는 미사일 입니다. space bar를 눌러 발사하면 됩니다. 맞출 경우 몬스터가 죽으며 점수가 올라갑니다.

image

  • 무작위로 생성되는 적입니다. 충돌하게 되면 life가 1씩 줄어들게 됩니다.

image

  • life가 줄어들 때 마다 나오는 보스 몹 입니다. 그러나 일반 몬스터와 다르게 미사일 10발을 맞춰야 죽지만, 점수는 10점을 줍니다. 속도가 매우 빠르므로 섬세한 조종이 필요합니다. 보스에게 닿으면 즉시 게임이 종료 됩니다.

image

  • 위 아래 방향키로 적 움직임의 빠르기를 정할 수 있습니다.

게임 화면

image

  • 게임이 본격적으로 시작되며 배를 조종하며 몬스터를 피하는 게임이며 처음 3개의 life를 가지고 시작하고 몬스터에게 닿을 때마다 life가 하나씩 줄어들게 됩니다.

image

  • 다음은 life가 0이 될 때 나오는 사진입니다. esc를 눌러 종료할 수 있습니다.

주요 코드

image

  1. 타임 리스너 사용

image

  1. 키 리스너 사용

image

  1. 충돌 알고리즘 사용

shooting_game's People

Contributors

morningb avatar

Watchers

 avatar

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.