Loading...

Global Game Jam 2017

Waves
GGJ 2017

Running in the 80s

is a tower-defense like game with a big neon arrow pointing to the 80s art style. This game is both playable on PC as on Android devices.

Running in the 80s is a phyics game where the goal is to "swing" enemies out of the level before they reach the castle. This is done by creating waves by pulling (or swiping, depending on the platform) on the rope the enemies walk on.

The physics rope is the core mechanic of the game and was the most challenging part of this game. This had actually more to do with the lack of knowledge of 2d physics. The rope itself was build op from small GameObjects which were glued together with Joint2D components.

private void GenerateRope() {
        GameObject prevGo = null;
        for (int i = 0; i < GetNeededPrefabs(); i++) {

            ropeFills.Add(Instantiate(ropePrefab));

            ropeFills[i].name = "Part-" + i;
            ropeFills[i].transform.SetParent(pointA.transform.parent);
            Joint2D[] joints = ropeFills[i].GetComponents<Joint2D>();

            if (prevGo != null) {
                foreach (Joint2D joint in joints) {
                    joint.connectedBody = prevGo.GetComponent<Rigidbody2D>();
                    if(joint is AnchoredJoint2D) {
                        AnchoredJoint2D anchoredJoint = joint as AnchoredJoint2D;
                        anchoredJoint.anchor = new Vector2((-GetPrefabSize().x) / 2, 0);
                    }
                }
            }
                
            ropeFills[i].transform.position = new Vector3( pointA.transform.position.x + GetPrefabSize().x + GetPrefabSize().x * i, 0, 0);
            prevGo = ropeFills[i];

        }

        ropeFills[0].GetComponent<Rigidbody2D>().isKinematic = true;
        ropeFills[ropeFills.Count-1].GetComponent<Rigidbody2D>().isKinematic = true;

}

This website uses cookies to ensure you get the best experience on my website