Code Monkey home page Code Monkey logo

ball_game's Introduction

Ball Game

これはDefoldというゲームエンジンで動くボールをくっつけて消すパズルのサンプルプロジェクトです:watermelon::soccer: :bowling:
改変OK!超簡単!やったね!!:partying_face::partying_face::partying_face:

サンプルゲーム

↓ブラウザで動くプロトタイプです:smiling_face_with_three_hearts:
https://yeqwep.itch.io/ball-game
サンプル画像

用意するソフト

🎰ゲームエンジン🖥️
Defold[Ver1.6.0]
https://defold.com/
アカウント不要で使える無料のゲームエンジンです:santa:
このサンプルはこのゲームエンジンを使っているので必須です。
Steamでインストール可能
https://store.steampowered.com/app/1365760/Defold/

🎨絵を描くソフト🍱
なんでもいいよ

とりあえず ボールの画像 変えるには

ボールの画像を変えたいときの一句

  1. 絵を描くソフトでボールを書く(ボールのサイズを合わせてね)
  2. ball_〇〇.pngという名前をつけて保存する(〇〇内は連番)
  3. ゲームエンジンDefoldを起動してこのプロジェクトファイルを開く
  4. asset → png → balls のフォルダの画像を置き換える

🪨ボールのサイズについて(小さい順に連番つける)
「32×32、48×48、64×64、80×80、96×96、128×128、144×144、160×160、176×176、192×192、256×256」(ピクセル)
(間違えてもそれはそれで味があってOK!)
画像芭蕉1
画像芭蕉2
画像芭蕉3

ビルドボタンを 押して完成

ゲームを動かすための短歌

  1. Projectを押す
  2. Buildを押す

画像芭蕉4

🌍<これで動きが確認できた!さらにブラウザで公開するには!

  1. Projectを押す
  2. BundleのHTML5Application...を押す
  3. Create Bundle...を押す
  4. HTML5ファイルの保存先を選択する

画像芭蕉5
画像芭蕉6

...後は公開するサイトに合わせて加工してね。
(itch.ioの場合はフォルダごと圧縮してアップロードするだけ)

その他できること

  • ボールの当たり判定を大きくしたり瓶の形を変える
  • ボールスクリプトをいじって演出を追加する
  • プレイヤースクリプトをいじって出てくるボールの種類を増やす
  • ボールが地面に落ちたらカメラをシェイクさせる

など...
わりとなんでもできるよ:man_dancing::man_dancing::man_dancing:

References

🧑‍🏫 my programming bible
https://github.com/benjames-171/defold-games
https://github.com/britzl/publicexamples
👼 The CoooooL collection of functions for Lua
https://github.com/rxi/lume

素敵なゲームクリエイトを! Happy Defolding!

ball_game's People

Contributors

yeqwep avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  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.