A Platformer/Metroidvania made in Unity as part of a 3-day Game Jam. Inspired by games such as Super Metriod and Hollow Knight.
The game is made up of a tutorial level and 2 other levels. The player has to reach the end of each level to reach the next one. The player will encounter locked gates and enemy. The player can dash to attack the enemies and open gates. Some gates requires keys to open.
The main features were implemented as:-
// Smooth Camera ... Vector3 smoothPosition = Vector3.Lerp(transform.position, targetPOS, smoothFactor); smoothPosition.x = Mathf.Clamp(smoothPosition.x, bounds[0].x, bounds[1].x); smoothPosition.y = Mathf.Clamp(smoothPosition.y, bounds[0].y, bounds[1].y); transform.position = smoothPosition; ...
// Opening gates using Player Dash void OnTriggerStay2D(Collider2D other) { if (other.gameObject.tag == "Player") { // Check if player is dashing if (other.gameObject.controller.GetStatus()) { if (sprite.activeSelf) { if (gateType == KeyGateType.Normal) { sprite.SetActive(false); } else { Debug.Log("not normal gate"); if (CheckKey()) { GameObject.Find("GameManager").keymanager.UseKey(gateType); sprite.SetActive(false); } } } } } }
I have further broken down the development process in this blog that I wrote after said Game Jam at Fall Game Jam or The Tests: Devlog