Skip to content

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

Notifications You must be signed in to change notification settings

CodeChrisB/DartTime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published