Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Day One on the Show Floor

A topic by clyde created Jul 03, 2017 Views: 512 Replies: 7
Viewing posts 1 to 4
Submitted (1 edit)

We are making a game where you are a vendor for a bidet company and your first day is demonstrating the product at a convention. You (as the player) have to figure out a way to get the attention of show attendees in order to get buyers lined up.

gif

I'm using Unity and I just started importing some standard assets and wrote two short scripts. Here they are in their current form:


using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Squirt : MonoBehaviour {
    public Rigidbody droplet;
    public GameObject nozzle;
    public float waterForce=1f;
    void Update () {
        if (Input.GetButton ("Fire1") == true) {
            Rigidbody drop;
            drop=Instantiate(droplet, nozzle.transform.position, Quaternion.identity)as Rigidbody;
            drop.velocity=nozzle.transform.TransformDirection(nozzle.transform.forward*waterForce);
        }
    }
}

and a teleporter for the  ai Target once they reach it.


using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TeleportAiTarget : MonoBehaviour {
    //I'm limiting the area that the Ai characters will want to walk towards.
    public float xRange=8f;
    public float zRange=8f;
    float y;
    Vector3 newPos;
    public GameObject ai;
    void Teleport(){
        float x = Random.Range (-xRange, xRange);
        float z = Random.Range (-zRange, zRange);
        newPos = new Vector3 (x, y, z);
        this.transform.position = newPos;
    }
    //When the Ai reaches the  point I want them to wait for a moment before their target teleports to a new spot.
    public float waitMax=5f;
    float waitActual;
    void OnTriggerEnter(Collider other){
        if (other.gameObject == ai) {
            waitActual = Random.Range (0f, waitMax);
            cycle = waitActual;
            waitingToTeleport = true;
        }
    }
        
    // Use this for initialization
    void Start () {
        y = ai.transform.position.y;
    }
    //Just a timer
    float timer;
    float cycle;
    bool waitingToTeleport;
    void Update(){
        if (waitingToTeleport == true) {
            timer = timer + Time.deltaTime;
            if (cycle < timer) {
                Teleport ();
                timer = 0f;
                waitingToTeleport = false;
            }
        }
    }
}
Submitted

I started wanting to make the environment be more conference-like so I watched a few long-winded videos on how to bake lights and put some textures in. Baking lights takes a good amount of cpu time so it's slow figuring it out, but I like the dinginess. After I did that I finalized how the booth geometry is gonna be and I haven't re-baked yet so there are artifacts currently. I'm going to try to increase the area-light intensity from 3-10 and rebake to see if that looks good. Here is what it looks like currently with no directional lights.

I started putting a player finger in for pushing buttons. It almost works. I need to fix that and then start working on scripting the system where an audio-dialogue starts when the ai collides with you and make the dialogue stop once you give them a brochure. I've also decided to limit  player-movement so they can't leave the booth. That was the easiest way to make the scope of the game much smaller.

I also need to put some ambient audio in.

Submitted

Love how unique your idea is. Can hardly imagine what the dialogue options would be for a bidet salesperson.

Submitted

I can easily imagine what a bidet-salesperson might say (because my recently purchased bidet is awesome) so it seems like a good fit for me to make!

Jam HostSubmitted(+1)

Will there be rival  bum gun salespeople?

It's the poor man's version of a bidet.

Submitted

no. You can see 6 (?) other booths from your station and I'm planning on putting asunder products there, I'm leaning towards silly useless ones. 

Only one booth is in range of the bidet (directly across the aisle) and we are trying to figure out what could go there that your spraying could affect. Something that gets bigger when it gets wet or umbrellas or rain-chains or something. Suggestions are welcome.

Jam HostSubmitted(+1)

Grow Capsules would be amazing!

It could just be a booth full of them. Or a vending machine. Something that's just all these un-grown capsules so when they get wet they start to grow and explode out taking over the area.

Submitted (1 edit)

this is a good idea. The Suggestion-box is closed.