ARシューティングゲームの開発
![91f2e066 ee63 4693 bed8 fd69219b3298](https://codegenius.org/uploads/slide/image/4405/91f2e066-ee63-4693-bed8-fd69219b3298.jpeg)
![3a59bcf1 6b6d 4e58 8ef7 085abc8b1f2d](https://codegenius.org/uploads/slide/image/4406/3a59bcf1-6b6d-4e58-8ef7-085abc8b1f2d.jpeg)
![86aeb4ab 2671 4dbb 863a c1db48bee1d0](https://codegenius.org/uploads/slide/image/4407/86aeb4ab-2671-4dbb-863a-c1db48bee1d0.jpeg)
![2cd095b4 097f 4e82 a05f 861cdebcff85](https://codegenius.org/uploads/slide/image/4408/2cd095b4-097f-4e82-a05f-861cdebcff85.jpeg)
![Bee6087c 4e71 4a6e bc1a c873875af827](https://codegenius.org/uploads/slide/image/4409/bee6087c-4e71-4a6e-bc1a-c873875af827.jpeg)
キャラクターを動かす
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CharaMove : MonoBehaviour
{
void Update()
{
transform.Translate(new Vector3(0, Time.deltaTime * 1.5f, 0));
}
}
![A4095c3b d091 456c a9c9 977256eb822c](https://codegenius.org/uploads/slide/image/4410/a4095c3b-d091-456c-a9c9-977256eb822c.jpeg)
![5a9f8457 f2b8 45f4 9cc7 a3eb8f4641ec](https://codegenius.org/uploads/slide/image/4411/5a9f8457-f2b8-45f4-9cc7-a3eb8f4641ec.jpeg)
キャラクターを生み出す
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CharaGene : MonoBehaviour
{
public GameObject charaPrefab;
private int timeCount;
void Update()
{
timeCount += 1;
if (timeCount % 200 == 0)
{
GameObject chara = Instantiate(charaPrefab, transform.position, Quaternion.identity);
Destroy(chara, 10.0f);
}
}
}
![667b2996 d56f 4751 b075 546019529fb2](https://codegenius.org/uploads/slide/image/4412/667b2996-d56f-4751-b075-546019529fb2.jpeg)
![192cfc76 d803 49b7 81b1 8f3bb7bbc8aa](https://codegenius.org/uploads/slide/image/4413/192cfc76-d803-49b7-81b1-8f3bb7bbc8aa.jpeg)
【2019版】AR_Project(全9回)
1 | Vuforiaの初期設定を行う |
2 | キャラクターをAR鑑賞する |
3 | ★チャレンジ課題 |
4 | ARシューティングゲームの開発 |
5 | キャラを破壊する |
6 | オリジナルのカーソルを作成する |
7 | カウンターを作成する |
8 | ★チャレンジ課題 |
9 | ★チャレンジ課題 |
![91f2e066 ee63 4693 bed8 fd69219b3298](https://codegenius.org/uploads/slide/image/4405/91f2e066-ee63-4693-bed8-fd69219b3298.jpeg)
![3a59bcf1 6b6d 4e58 8ef7 085abc8b1f2d](https://codegenius.org/uploads/slide/image/4406/3a59bcf1-6b6d-4e58-8ef7-085abc8b1f2d.jpeg)
![86aeb4ab 2671 4dbb 863a c1db48bee1d0](https://codegenius.org/uploads/slide/image/4407/86aeb4ab-2671-4dbb-863a-c1db48bee1d0.jpeg)
![2cd095b4 097f 4e82 a05f 861cdebcff85](https://codegenius.org/uploads/slide/image/4408/2cd095b4-097f-4e82-a05f-861cdebcff85.jpeg)
![Bee6087c 4e71 4a6e bc1a c873875af827](https://codegenius.org/uploads/slide/image/4409/bee6087c-4e71-4a6e-bc1a-c873875af827.jpeg)
キャラクターを動かす
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CharaMove : MonoBehaviour
{
void Update()
{
transform.Translate(new Vector3(0, Time.deltaTime * 1.5f, 0));
}
}
![A4095c3b d091 456c a9c9 977256eb822c](https://codegenius.org/uploads/slide/image/4410/a4095c3b-d091-456c-a9c9-977256eb822c.jpeg)
![5a9f8457 f2b8 45f4 9cc7 a3eb8f4641ec](https://codegenius.org/uploads/slide/image/4411/5a9f8457-f2b8-45f4-9cc7-a3eb8f4641ec.jpeg)
キャラクターを生み出す
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CharaGene : MonoBehaviour
{
public GameObject charaPrefab;
private int timeCount;
void Update()
{
timeCount += 1;
if (timeCount % 200 == 0)
{
GameObject chara = Instantiate(charaPrefab, transform.position, Quaternion.identity);
Destroy(chara, 10.0f);
}
}
}
![667b2996 d56f 4751 b075 546019529fb2](https://codegenius.org/uploads/slide/image/4412/667b2996-d56f-4751-b075-546019529fb2.jpeg)
![192cfc76 d803 49b7 81b1 8f3bb7bbc8aa](https://codegenius.org/uploads/slide/image/4413/192cfc76-d803-49b7-81b1-8f3bb7bbc8aa.jpeg)
ARシューティングゲームの開発