GithubHelp home page GithubHelp logo

codechrisb / darttime Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 38.11 MB

A small mqtt client which is part of a bigger school project.

C# 74.91% ShaderLab 23.19% HLSL 1.90%
mqtt game json-data hivemq-mqtt-client

darttime's Introduction

DartTime

A small mqtt client which is part of a bigger school project.
In this game you have to hit targets with darts, there are
multiple difficulties (5 in total) that each add more obstacles, to block your sight of the targets. The goal of the game is to get the highest score possible.

Base topic

Since we use the HiveMc Online broker we need a unique base Topic.

string baseTopic = 'x6et/q8zl/'

Mqtt Requests

Description Topic Implemented
A game was started game/[Username] ✔️
A target was hit game/[Username]/hit ✔️
A target was missed game/[Username]/miss ✔️
The current score of a player game/[Username]/score/total ✔️
Latest score addition or subtraction game/[Username]/score/latest ✔️
Latest score addition or subtraction game/[Username]/score/multiplier ✔️
The current amount of darts a player has left game/[Username]/darts ✔️
The current amount of time a player has left game/[Username]/time ✔️
The current difficulty game/[Username]/difficulty ✔️
Game stats after a game was completed game/stats ✔️

Json data for game/stats

{ 
  data: 
  {
    "username":"Chr1s",
    "score":25750,
    "level":4
  },
  time:5/8/2021 8:02:05 PM 
}

Other Json data

{ 
  data: [Requested Data]
  time:5/8/2021 8:02:05 PM 
}

Mqtt Subscribe

Description Topic Implemented
Currently we do not need those None

ToDo

Name Description Implemented
Base Gameplay Being able to shot darts and get points by hitting targets. ✔️
Score Mulitplier Getting More Points for consecutive hit targets ✔️
Integrated UI Having the Score, Time and Dart Left UI integrated in the game world ✔️
Light Indicator Change the light when a dart hits or misses a target ✔️
Real Dart Display Being able to phyisically see the darts that are left in the game ✔️
Difficulties Have multiple Difficulties that each spawn more Obstacles ✔️
End Screen After the game is over (No time/darts left) There should be a big Score showcase and after like 5 seconds a transition to the main menu ✔️
Pause Menu At any time in the game there should be a way to pause it and have acess to a small menu ✔️
How to Play Page A small overview what the game is about and how to play ✔️
Zoom Mechanic Left Click to zoom something like a 1.5x zoom ✔️
Start Countdown 3 , 2 , 1 , Start ! Coutndown before the game starts ✔️
Level Diffrence Page Page that gives information about Level, Target Size, Target Score, Start Multiplier, Time (these things are diffrent for each Level) ✔️
Unity Build Background Change the Startup background for the Made with Unity Page ✔️
Game Icon Change the Icon of the .exe File
Custom UI Create own UI Elements to fit the game world better

Screenshots

alt text

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.