googleforgames / global-multiplayer-demo

This multiplayer demo is a cloud first implementation of a global scale, realtime multiplayer game utilising dedicated game servers, utilising both Google Cloud's products and open source gaming solutions.
Apache License 2.0
117 stars 16 forks source link

Add a basic match function, fake ticket generator #125

Closed zmerlynn closed 1 year ago

zmerlynn commented 1 year ago

Adds a less rudimentary match function:

Add a fake frontend that can create tickets for the new match function

New ticket "API" to match function can be see in the fake frontend:

    return &pb.Ticket{
        SearchFields: &pb.SearchFields{
            DoubleArgs: map[string]float64{
                "skill":                2 * rand.Float64(),
                "latency-us-central1":  50.0 * rand.ExpFloat64(),
                "latency-europe-west1": 50.0 * rand.ExpFloat64(),
                "latency-asia-east1":   50.0 * rand.ExpFloat64(),
            },
        },
    }

Along the way:

Towards #47