WUT_Computer_Science/Programming/E-PSYOPS/projectConcept/main.tex

144 lines
6.8 KiB
TeX
Raw Permalink Normal View History

2022-05-09 16:48:44 +02:00
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{listings}
\usepackage{xcolor}
\usepackage{graphicx}
2022-05-12 12:22:00 +02:00
\usepackage{soul}
2022-05-09 16:48:44 +02:00
\lstdefinestyle{sharpc}{language=[Sharp]C, frame=lr, rulecolor=\color{blue!80!black}}
\title{EOPSY Lab 5, 6, 7 project concept}
\author{Maciej Domański, Krzysztof Rudnicki, Gabriel Skowron-Rodriguez}
\date{\today}
\begin{document}
\maketitle
\section{Introduction}
\subsection{Goal of project}
Creating an analogy in form of a real time strategy game to operating system processes and how they function. \\
Each soldier in our game will represent a process which can receive and send signals from and to "the general" (player), soldiers communicate with each other, exchange information, divide resources among themselves and work together to achieve a goal or set of goals. \\
2022-05-12 12:22:00 +02:00
We will focus on the parts of the game which represent how processes work in operating systems first, then on how the game actually looks and works
2022-05-09 16:48:44 +02:00
\subsection{Tools}
2022-05-12 12:22:00 +02:00
We will use the Unity Game Engine, for simplicity's sake we will use Mono-behaviours on prefabs to represent the soldiers. This is not the most performant solution but it is easy enough to implement in realistic (one month) timeframe.\\
When it comes to more detailed usage of different tools to accomplish different goals all of them will come up as the project progresses and we actually work on the tasks.
2022-05-09 16:48:44 +02:00
\subsection{Dividing Tasks}
2022-05-12 12:22:00 +02:00
Every week our group will meet on Monday at 12:00 and work for approximately 3 hours. This will ensure that everybody does a similar amount of work. \\
Task division will be done using Trello before or at the beginning of the weekly meeting.
2022-05-09 16:48:44 +02:00
\newpage
\subsection{Workflow}
We use gitlab hosted on studia elka servers. There are 3 types of branches in our project:
\begin{enumerate}
2022-05-12 12:22:00 +02:00
\item Main - Rarely used, hosting stable versions of the game
2022-05-09 16:48:44 +02:00
\item Development - Branch where we merge all individual branches and actively change on weekly basis.
\item Individual branches - Created for each task and merged when this task is finished
\end{enumerate}
We also use separate scenes on which we will work for each member of the project. \\
2022-05-12 12:22:00 +02:00
Branching and separate scenes minimize the risk of corrupting the gitlab project and simplifies merging and management of the project.
2022-05-09 16:48:44 +02:00
\section{Goals}
\subsection{Minimum Viable Product}
This is a minimum goal we want to achieve in order to consider this project as finished \\
2022-05-12 12:22:00 +02:00
\paragraph{Goal of the game} Destroying enemy base.
For simplicity's sake, the enemy base is just a "soldier" without the ability to attack or move, with more health points. "Base destruction" is accomplished by reducing its health points to zero.
\paragraph{Realization of the goal} Attacking the base with our soldiers.
2022-05-09 16:48:44 +02:00
\paragraph{Map}
Map is divided into tiles
2022-05-09 16:48:44 +02:00
\subsubsection{Soldiers}
Exactly one type of soldiers \\
Exactly one squad \\
Exactly one formation (Rectangle or any other that we find the easiest to implement) \\
New soldiers spawn (appear) every \textit{x} seconds in the squad \\
Soldiers have following attributes:
\begin{itemize}
\item Health Points
\item Range of Attack
\item Range of View
\item Damage per attack
\item Speed of attack
\end{itemize}
2022-05-12 12:22:00 +02:00
We have decided to split range of attack and range of view since combining them may lead to difficult code problems to solve should we reach higher level(s) of our project. \\
Soldiers occupy physical space - a tile \\
2022-05-09 16:48:44 +02:00
\subsubsection{Soldiers Communication}
2022-05-12 12:22:00 +02:00
Soldiers receive global orders from the player but they use their local vision to fulfill those orders. (For example by looking at where their neighbours stand and adjust their position accordingly). Used to simulate communication between operating system and processes. \\
In order to communicate something to the whole squad (like killing of an enemy soldier), the soldiers sends a message to its neighbours, causing the info to be distributed to the whole squad immediately
\\ This is used to simulate processes communicating with each other. \\
Each soldier has its own Action "stack". Every tick a single (topmost) action from the Soldier's Action stack is executed
2022-05-10 12:23:40 +02:00
\\
2022-05-12 12:22:00 +02:00
There are process interrupts sent by the player which force the soldier to perform a special action instead of executing what is on the action stack.
2022-05-09 16:48:44 +02:00
\subsection{Squads}
Exactly one squad on map \\
\begin{lstlisting}[caption={Pseudo-code for Squad class}]
class Squad{
List<Soldier> soldiers
2022-05-12 12:22:00 +02:00
Queue<Order> orders
2022-05-09 16:48:44 +02:00
}
\end{lstlisting}
\subsection{Fighting}
2022-05-12 12:22:00 +02:00
If an enemy is within a Soldier's attack range, the Soldier will perform an "attack" action\\
"Attack" means that the closest enemy to the soldier, receives damage (which means that its health gets decreased, accordingly to the soldier stats)
2022-05-09 16:48:44 +02:00
\subsubsection{Player}
Player orders are first in priority for soldiers, (like interrupt signals) \\
Player sees everything on map
\subsubsection{Enemy}
One stationary squad of enemy soldiers \\
Enemy base \\
No AI \\
\subsection{Expansion 1}
This is what we would like to introduce should we finish MVP. We mostly focused
on operating systems and processes related features. \\
2022-05-12 12:22:00 +02:00
Expansion 1 means that those are first priority features we would like to
implement after finishing minimum viable product.
2022-05-09 16:48:44 +02:00
\subsubsection{Fighting}
2022-05-12 12:22:00 +02:00
Priority points determining who the soldiers should attack based on distance from the
enemy, how many friendly soldiers are nearby or the enemy health. \\
2022-05-09 16:48:44 +02:00
Soldiers automatically get in fighting distance to enemy soldiers \\
When soldier sees enemy he communicates so to the squad and the whole squad goes towards enemy
\subsubsection{Squads}
More than one squad \\
We can transfer soldiers between squads
\subsubsection{Commander panel}
Commander panel with all info regarding soldiers and squads, amount of enemy soldiers killed, where they are, whether they exist, ability to remove squads which do not send those statistics. \\
If there is at least one living soldier in a squad he will send every \textit{x} ticks statistics:
\begin{itemize}
\item How many soldiers are in the squad
\item Squad position
\item How many enemy soldiers does he see
\end{itemize}
\subsubsection{Player}
Symbolically player sees different color outlines of the squads based on whether they send statistics or not
\subsection{Expansion 2}
2022-05-12 12:22:00 +02:00
Expansion 2 means that those are second priority features we would like to
implement after finishing minimum viable product AND expansion 1
2022-05-09 16:48:44 +02:00
Creating soldiers in the main base and spawning them near the base in a new squad. \\
Soldiers have limited resources (as in limited memory and CPU power) \\
More soldier types with different communication and attributes \\
Player sees exactly and only what the soldiers send him. \\
Resources with stable generation of \textit{x} resources per minute \\
Resource points to make generation faster \\
Physical, realistic placement of soldiers on map instead of tiles \\
\end{document}