Learn Unity 4 for iOS Game Development 6

レッツ・ロール! 物理学と制御

作ったもの
・マウスカーソルを移動させると、ボールがその方向へ転がります。

クリックすると、別ウィンドウが開きます。
Screen-Shot-2013-08-13-at-20.19_600
http://shakeweb.sakura.ne.jp/demo/LU4_chap6/

・照明(Directional Light)を配置。
・床に ProceduralMaterial を適用。
・ボールに Rigidbody を適用。
・床とボールに PhysicMaterials を適用。

————————————————————————————————
スクリプトでボールの動きを制御

・FixedUpdate を使用して、一定の間隔で、Update より頻度の多い更新を行う。
 TimeManager(Edit | Project Settings | Time)で更新頻度を指定できる。
・変数 rigidbody(= gameObject.rigidbody )で、Rigidbody コンポーネントの AddForce 関数を呼び出せる。
・ボールが床に接してから、制御が効くようにするために、Collision クラスの変数 collider を監視。
・rigidbody.velocity.sqrMagnitude : velocity の型は Vector3。sqrMagnitude で、その length を求めることができる。

————————————————————————————————
カメラの制御

・SmoothFollow スクリプトをメインカメラに適用。Rotation Damping の値を0にすることによって、カメラの回転を止める。

————————————————————————————————
使用アセット

Eighteen Free Substances (Allegorithmic)

————————————————————————————————
関連リンク

Unity で使用されている物理エンジン PhysX
https://developer.nvidia.com/physx

Yonepon Island

Unity を使用したゲームの試作品です。
クリックすると、別ウィンドウが開きます。(音が出ます。)

Screen Shot 2013-07-14 at 10.12.21

※ブラウザはSafariを使用してください。

方向キーで移動。
スペースキーでジャンプ。
f キーで弾を発射。(英数字入力)

クリア手順
・バッテリーを4つ集める。(4つ目を入手するには、射的ゲームをクリアする必要があります。全ての的を倒すと、バッテリーが出現します。)
・小屋でマッチを入手する。(バッテリーを4つ持っていないと小屋の中に入ることはできません。)
・キャンプファイアーに火を点す。
・ゲームクリア!
※クリアするのに島に上陸する必要はありません。
※ゲーム開始時点にあるブロック崩しはクリア条件と関係ありません。

風の音や、火山の音、その他、効果音が鳴ります。
BGMはピアノで仮当てしてあります。
火山の煙やキャンプファイアーの炎はパーティクルで作成しました。

プレイするには、Unity Web Player をインストールしてください。

Unity + C# で作成。
Shrunken 使用。

(more…)

15 Puzzle [info]

15パズル。
クリックすると、別ウィンドウが開きます。

Screen Shot 2017-01-17 at 12.16.14

Shuffle ボタンでパズルをシャッフル。
クリックでピース移動。
元の絵柄を完成させるとゲームクリアです。
自作のイラストを使用しています。

ActionScript 3.0 使用。

その他の実験。
クリックすると、別ウィンドウが開きます。

Screen Shot 2017-01-17 at 12.27.29 1
物理演算の実験。

スクリーンショット 2017-01-17 23.03.40
一筆書き描画ツール。

スクリーンショット 2017-01-17 23.10.43
永遠にめくれるカレンダー。

スクリーンショット-2017-01-17-23.13.49
Papervision3D の実験。

GIT Commands

———————————-
SHALLOW CLONE
———————————-

———————————-
CONFLICT
———————————-

———————————-
DOESN’T SHOW ALL REMOTE BRANCHES
———————————-

———————————-
Tutrials
https://www.atlassian.com/git/tutorials/resetting-checking-out-and-reverting/

———————————-
Regenerate Public Keys for OpenSSH Format
———————————-
1. Open the PuTTY Key Generator
2. On the menu bar, click “File” > “Load private key”
3. Select your id_rsa.ppk file
4. On the menu bar, click “Conversions” > “Export OpenSSH key”
5. Save the file as id_rsa preferably extensionless

——————————–
Terminal
——————————–
find ~/ -iname “*.unitypackage”
find / -type d -name “ora10”
$ grep -i “boo” /etc/passwd

-type d: directory
-i: ignore case
-r: recursive (search for many files)

ctrl + c 処理中断

ps aux
a = show processes for all users
u = display the process’s user/owner
x = also show processes not attached to a terminal

Search for Apache processing.
ps aux|grep httpd

——————————–
Command Prompt
——————————–
ファイル名検索
dir “*.txt” /s/b

——————————–
Bash
——————————–
env
echo $PATH
which python
source .bashrc

ATARIMAEプロジェクト オリジナル・ムービー・プレイヤー

ATARIMAEプロジェクト オリジナル・ムービー・プレイヤー。
クリックすると、別ウィンドウが開きます。

Screen Shot 2017-01-17 at 12.43.05

外部のflvファイルを読み込んで再生しています。
画面をクリックして再生/一時停止を切り換えるなど、操作性にも工夫を凝らしています。
左下のボタンをクリックすると音が出ます。
映像は、映像作家/アートディレクター・丹下紘希さんがディレクションされた『ATARIMAEクロス×トーク』Vol.6。

使用されたページ
『クロス×トーク はたらくちから。』
『下村健一のクロス×トーク』
舛添大臣、松浦亜弥さんの会見

I made original flash video player for the web-site of ATARIMAE PROJECT.
This video player is used in the feature contents of the web-site as following.

The Crosstalk is the main content of the web-site. 17 Celebrities, from comedians to policy makers, go to the workplaces of handicapped people.
 http://www.atarimae.jp/crosstalk/001/movie.html
This is the second season of The Crosstalk. An acknowledged TV news anchorperson goes to 5 companies that hire handicapped people.
 http://www.atarimae.jp/crosstalk2/01/index.php
This video shows the press conference of Youichi Masuzoe, Minister of Health, Labour and Welfare, and Aya Matsuura, famous actress, singer and the supporter of ATARIMAE PROJECT. In this video the Minister announces the launching of ATARIMAE PROJECT.
 http://www.atarimae.jp/information/20081024/movie.html
(All videos are directed by acknowledged video artist Kouki Tange.)

Using ActionScript 3.0, this flash video player imports external flv files.
Weighing usability, I minimized the elements required for a video player.
Clicking on the screen, you can easily pause and resume the video.

ページトップへ