This game was made for the TweetTweetJam 8 game jam.

You only need the mouse to play this game. The box will follow the mouse and you need to catch as many blue balls as possible to increase your score. Every ball that falls below the box will reset the score.

The game has in total 3 scripts. There are 499 characters in total if the scripts are combined.

Script 1:

using UnityEngine;
using TMPro;
public class S : MonoBehaviour
{public Transform[] a;public GameObject b;public int c;float e=1;public TextMeshProUGUI d;void Update(){Vector2 f=Camera.main.ScreenToWorldPoint(Input.mousePosition);transform.position=new Vector3(f.x,transform.position.y,9);int g=Random.Range(0,9);if(e<0){Instantiate(b,a[g].position,transform.rotation);e=.7f;}else e-=Time.deltaTime;d.text=""+c;}void OnTriggerEnter2D(Collider2D h){if(h.tag=="A")c++;}}

Script 2:

using UnityEngine;
public class C : MonoBehaviour
{void OnTriggerEnter2D(Collider2D b){Destroy(gameObject);}}

Script 3:

using UnityEngine;
public class R : MonoBehaviour
{public S a;void OnTriggerEnter2D(){a.c=0;}}


Leave a comment

Log in with itch.io to leave a comment.