This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class GameStateManager : MonoBehaviour | |
{ | |
public playerControls player1;//player reference | |
public TileMapGenerator _mapGen;//map generator reference | |
public List<GameObject> Spheres;//list of sphere that should be off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class tileControl : MonoBehaviour | |
{ | |
// Start is called before the first frame update | |
public string tileType;//if its lava if its grass etc | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class GenCubeEffects : MonoBehaviour | |
{ | |
public string genEffect;//name of the genCubeEffect (what happens when the cibe hits a tile is it turned to grass, spawn a enemy etc) | |
private void OnCollisionEnter(Collision objectHit) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class GenCubeExplode : MonoBehaviour | |
{ | |
public float radius = 1.0F;//Radius of explosion becareful how far apart you set object they can be caught in this explosion | |
public float power = 10.0F;//power applied to objects hit | |
void Start() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class TileMapGenerator : MonoBehaviour | |
{ | |
public int xTiles, zTiles, yTiles;//basic length,width,height variable to do math on how many total tiles to cerate | |
public GameObject tilePrefab;//prefab of basic tile were creating | |
public Transform spawnPosition;//original position of where tiles get created to |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class gunShooting : MonoBehaviour | |
{ | |
public playerControls _playerControls;//reference to playerControls script on player | |
public GameObject _bulletPrefab;//prefab of object were going to spawn | |
public Transform _bulletSpawnPoint;//position of where to spawn bullets to map | |
public float bulletSpeed;//speed of bullets on shoot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class playerControls : MonoBehaviour | |
{ | |
public gunShooting _gunShooting; // class reference to gunShooting script connected to player | |
public float moveSpeed, jumpHeight; //player move speed and height of jumps | |
public bool isGrounded, canJump;//is player grounded and can he jump currently | |
public float zMovement, xMovement;//current input on Z and X axis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class Player : MonoBehaviour { | |
public GameStateManager gameStateManager; | |
public float playerSpd, fwdSpd, sidSpd, jumpHeight; | |
public bool isGrounded; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
//_DB reality jam contest | |
//projest started: 10:45 am 12/31/15 | |
public class controlledStageGenerator : MonoBehaviour | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class PlayerMove : MonoBehaviour { | |
Vector3 moveDir; | |
Rigidbody rb; | |
float speed = 5f; | |
float dashCooler = 0.5f; | |
KeyCode dashKey; | |
bool dashing = false; |
NewerOlder