RoVo
2D Platformer (9/27/19 - 1/1/21)
RoVo is a 2D-Platforming adventure, made from the minds of Team SHMUP.
This is our very first project.
Description
RoVo is a cute little robot who got displaced from his charging port! Help him get back to his charging port before he powers down.
Run and jump using a combination of platforming and puzzle skills in order to stay charged. Use a stun gun to disable enemy robots, and avoid deadly spikes and zappers. Seven levels combined help to demonstrate Team SHMUP's skills in the first of many games planned by our team.
Sample Stun Gun Snippet
// Update is called once per frame
void Update()
{
//direction = destination - origin
Vector3 difference = Camera.main.ScreenToWorldPoint(Input.mousePosition) - transform.position;
//calculate amount of degrees weapon must rotate in order to face the cursor
float rotZ = Mathf.Atan2(difference.y, difference.x) * Mathf.Rad2Deg;
transform.rotation = Quaternion.Euler(0f, 0f, rotZ + offset);
// If ammo is zero
if (shotsFired < shotLimit)
{
if (timeBtwShots <= 0)
if (Input.GetMouseButtonDown(0))
{
shoot();
}
else timeBtwShots -= Time.deltaTime;
}
if (shotsFired == shotLimit)
{
shotLimit = 0;
shotsFired = 0;
gameObject.SetActive(false);
}
}
public void refillAmmo()
{
shotsFired = 0;
}
void shoot()
{
Instantiate(myBlast, shotPoint.position, transform.rotation);
shotsFired++;
}