Background Setup
Created a camera-wide background and a duplicate and a script that I thought was going to allow for a looping background but I realized it doesn't follow player character.
This commit is contained in:
parent
c96cf860be
commit
3a91e4feb2
7 changed files with 29368 additions and 0 deletions
BIN
Game 1/.vs/Game 1/v15/sqlite3/storage.ide
Normal file
BIN
Game 1/.vs/Game 1/v15/sqlite3/storage.ide
Normal file
Binary file not shown.
9
Game 1/Assets/Animations.meta
Normal file
9
Game 1/Assets/Animations.meta
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: f96dad782a511f74ab5aabb2aad82f66
|
||||||
|
folderAsset: yes
|
||||||
|
timeCreated: 1504470329
|
||||||
|
licenseType: Free
|
||||||
|
DefaultImporter:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
File diff suppressed because it is too large
Load diff
9
Game 1/Assets/Prefabs.meta
Normal file
9
Game 1/Assets/Prefabs.meta
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: d7e02145b20ad0643b095de79dfef40e
|
||||||
|
folderAsset: yes
|
||||||
|
timeCreated: 1504470313
|
||||||
|
licenseType: Free
|
||||||
|
DefaultImporter:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
9
Game 1/Assets/Scripts.meta
Normal file
9
Game 1/Assets/Scripts.meta
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: d79ac56345d23b04c97581e19e9259f9
|
||||||
|
folderAsset: yes
|
||||||
|
timeCreated: 1504470301
|
||||||
|
licenseType: Free
|
||||||
|
DefaultImporter:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
21
Game 1/Assets/Scripts/ScrollingObject.cs
Normal file
21
Game 1/Assets/Scripts/ScrollingObject.cs
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class ScrollingObject : MonoBehaviour {
|
||||||
|
|
||||||
|
private Rigidbody2D body;
|
||||||
|
public float scrollSpeed = -1.5f;
|
||||||
|
|
||||||
|
// Use this for initialization
|
||||||
|
void Start () {
|
||||||
|
body = GetComponent<Rigidbody2D>();
|
||||||
|
body.velocity = new Vector2(scrollSpeed, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update is called once per frame
|
||||||
|
void Update () {
|
||||||
|
// Maybe add something that stops scrolling when gameover?
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
12
Game 1/Assets/Scripts/ScrollingObject.cs.meta
Normal file
12
Game 1/Assets/Scripts/ScrollingObject.cs.meta
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: f28195fa4d074eb468c3116e5a6d1cd9
|
||||||
|
timeCreated: 1504473098
|
||||||
|
licenseType: Free
|
||||||
|
MonoImporter:
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
Reference in a new issue