LASERHELL - Portfolio
A downloadable game
Solo Project
Created in Unity
Programming Work:
- Summoning Lasers
- Player movement
- Timer system
- Collision Events
Game Download: LASERHELL by Cameron Beck
Sample of code from project (Death + Highscore counter):
using UnityEngine;
using UnityEngine.Rendering.Universal;
using UnityEngine.UI;
using TMPro;
public class DEATH : MonoBehaviour
{
public TextMeshProUGUI display;
public int count = 0;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
InvokeRepeating("highscore", 0, 1);
}
// Update is called once per frame
void Update()
{
display.text = ("Time Survived: " + count.ToString());
}
void highscore()
{
count++;
}
void OnTriggerEnter(Collider other)
{
Destroy(gameObject);
Destroy(other.gameObject);
Debug.Log("Game Over! Highscore: " + count);
}
}
| Published | 1 day ago |
| Status | Released |
| Author | CameronBeck |
