GithubHelp home page GithubHelp logo

processing_shooter's Introduction

Processingのシューティング

9/21→コメントを追加

コードを見返しいかに適当コードかを思い知らされた。

とりあえず、処理はわかったのでjsで綺麗に書き直したいと考えている。

全体的にだいぶ雑

学部2年の際に作ったシューティングゲーム

参考にならないこと請け合いである。

コメントを一切書いていない(書いている作業中)。

参考にしたサイト

processing-js-で初めてのゲームプログラミング

上記サイトのシステムに以下の処理を追加したものである。

  • 文字を落ちてくる処理
  • HPの変化による弾幕の変化
  • 文字をとり、それを保持する処理
  • 保持した文字によって撃てる弾丸を変化させる処理

ゲームシステム

発想としては「避けない弾幕ゲーム」を目指している。

ボス戦のみのシューティングゲームである。

下に出ている数字が自機のHP、上に出ている数字が敵機のHP。

画面中に10文字のアルファベットが出るようになっている。

アルファベットを取ると、左下に取ったアルファベットが表示される。

取り間違えた場合はShiftキーで1文字づつキャンセル、Enterで全文字キャンセルすることができる。

特定の文字列になるようアルファベットを取ると、武器が使えるようになる

武器を使う場合はaキーを打つ

今登録してある文字列は以下の種類

  • GAN(弾丸を一発づつ撃てる)
  • M(MachineGunの略、弾丸を5発づつ撃てる)(デバッグのため)
  • HEAL(HP30回復する)

敵のHPは3000からスタート。減るにつれて以下の弾丸が追加されていく。

  • 2000以下になると大きい弾丸を敵が打つ
  • 1000以下になると追尾する弾丸を敵が打つ
  • 200以下になると3回バウンドしてフィールド内から出ていく弾を敵が打つ

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.