Giter Site home page Giter Site logo

swift_game1's Introduction

Swift_game1

キャラを集め、ブロック崩しでボスを倒すことで音楽を集めるゲーム

#説明 ##ボタン説明 画面下にボタンが5つ並んでいます。 左から順に

  1. ゲームをスタートできる画面
  2. ガチャをできる画面
  3. 集めたキャラクターを見て、ゲーム中のキャラクターをセットできる画面
  4. ステータス画面
  5. 集めた曲を見て、ゲーム中の音楽にセットできる画面

となっています

##システムの流れ 基本の流れは

  • 2の画面でガチャをします
  • 手に入れたキャラを3の画面でセットします
  • 1の画面からゲームをスタートします
  • ゲームのボスを倒すと20%の確率で曲がドロップします
  • 5の画面で手に入れた曲を確認できます (気に入った曲をゲーム中の音楽にセットすることも可能です)

となります。

##ゲーム内容 ゲームのシステムはブロック崩しです。

ゲーム画面のどこかに渦巻きが出てくるのでそれに入ると次のステージにワープします。

またゲーム中に確率で出てくるCDを取るとボス戦に進みます。

#素材説明 肖像権と著作権の問題上キャラ画像と音楽のファイルを削除しております。

##キャラ キャラ画像は101~699.jpgです。

AppDelegate.swift中のMAX[]の値を書き換えることで使える幅が変わります。

現在はlet MAX = [0,8,8,9,9,2,1]となっています。

これは101108,201208,301309,401409,501~502,601が使うということです

##ボスとそれに対応する音楽 音楽とボスは現在は4つです。

音楽はmusic1.mp3〜music4.mp3というファイルで指定します。

またその音楽のアルバムアートワークをmusic1.jpg,music2.jpgというように音楽と対応させて入れます。

ボスはBossSceneのテクスチャに適当な画像を指定します。

具体的には89~97行目の下記の部分です

  • let bossTexture = SKTexture(imageNamed: "music1.jpg")
  • let boss1Texture = SKTexture(imageNamed: "triangle.png")
  • let boss2Texture = SKTexture(imageNamed: "rect.png")
  • let boss3Texture = SKTexture(imageNamed: "radius.png")
  • let boss4Texture = SKTexture(imageNamed: "main.png")
  • let boss5Texture = SKTexture(imageNamed: "boss5.png")
  • let boss6Texture = SKTexture(imageNamed: "boss6.png")
  • let boss4_1Texture = SKTexture(imageNamed: "boss4_1.png")
  • let boss4_2Texture = SKTexture(imageNamed: "boss4_2.png")

##その他 c.mp4という名前で動画を入れるとオープニングの映像になります

title.pngという名前でタイトル画像を入れます。

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.