/SCRGame

This is project of simple Real Time System game in WPF.

Primary LanguageC#

This is project of simple Real Time System game. Game was created in Windows Presentation Foundation (WPF). Program supports multithreading managed by C# Mutex class. 

Game allows user (Red Team) to play against computer (Blue Team). Game is simulation of battle between spaceships. Blue team spaceships attack random enemies, when red team spaceships target can be chosen. All red team spaceships attack one chosen enemy. In the game there is ability to choose how much spaceships  we want to have in a team (2, 3 or 4, but implementation has no limitation so it can be any number). Every spaceship needs energy to renew its shield, and plasma to shoot. Each team has two energy and plasma generators. Every team member has access to that generators. If spaceship finds left energy generator empty, it switches to right one. If both generators are empty action is not executed. If spaceships shield level comes to 0, deamge points are substracted from hit points (HP). If spaceships HP comes to 0 ship is defeated and stops working. If all members in team are defeated there is end of game and there appears message which team has won. Game can be restarted in every moment.

In this game every generator and every spaceship is seperate thread which is is executed in parrarel way. Every spaceships thread can affect on other spaceship thread during the shooting to the enemy. Also every spaceship affects generators threads.

If you have any question about this project you can find me on www.ipprograms.pl.

The MIT License

Copyright 2019 Łukasz Granat and Stanisław Pietrowski

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.