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:
calebp 2017-09-03 16:36:57 -05:00
parent c96cf860be
commit 3a91e4feb2
7 changed files with 29368 additions and 0 deletions

Binary file not shown.

View 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

View file

@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: d7e02145b20ad0643b095de79dfef40e
folderAsset: yes
timeCreated: 1504470313
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View file

@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: d79ac56345d23b04c97581e19e9259f9
folderAsset: yes
timeCreated: 1504470301
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View 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?
}
}

View 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: