Code Monkey home page Code Monkey logo

playisland's Introduction

テーマ
りんごを突き刺すゲーム

概要
右手と左手を使って、それぞれ正しい色のりんごを手に持った細長い剣で突き刺す
赤いりんご、青いりんごそれぞれを赤い剣、青い剣で突き刺す
最後に金色のりんごが落ちてくるので、それを両手で突き刺すと完了

ゲーム時間は60秒程度
~20秒、~40秒、~60秒で難易度がじょじょに変わる
基本的に色の正しい側にりんごが落ちてくるが、たまに逆に落ちてくることがある
りんごを地面に落とさずに突き刺し続けるとコンボで得点が高まる。
一度に多くのりんごを突き刺せるとさらに高得点がはいる。
最後に点数が出て終了。

点数の計算
1リンゴ: 1点
金リンゴ: 100点
コンボ数 1~100回: 1 * コンボ数 / 10点加算
コンボ数 100~: 1 * コンボ数 / 1点加算


ゲームのフロー
なんらかのボタンを押す
ゲーム開始
リンゴが落ち始める
リンゴを刺す
ポイントゲットとコンボ数表示(繰り返し
黄金のリンゴが落ちてくる
黄金リンゴを刺す or 地面についたら終了


クラス構成
GameController
	ゲームの流れと時間、現在のゲーム状態、BGMの管理
PointService
	ポイントの定義と管理
PointDisplay
	ポイントとコンボ数表示
AppleService
	リンゴを落とす場所と順番、リンゴに対するまとまったイベント(コンボとか)の管理
Apple
	リンゴの種類、リンゴに対するイベントの通知
GameSwitch
	ゲーム開始イベント通知用

playisland's People

Watchers

James Cloos avatar Takayuki_Sei 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.