Added some text to documentation.
--- a/doc/kishna.tex Mon Dec 08 16:38:33 2008 +0000
+++ b/doc/kishna.tex Mon Dec 08 16:39:20 2008 +0000
@@ -35,9 +35,37 @@
\maketitle
\section{Instructions for compiling and use}
-These should be pretty straightforward.
+
+You can compile the program by going trough the following procedure:
+\begin{itemize}
+\item \textsl{cd build}
+\item \textsl{./mkcmake.sh}
+\item \textsl{make install}
+\end{itemize}
+
\subsection{Basic usage}
Starting. Default Keys. Starting the server. Connecting. etc.
+
+Controls are currently liero default controls.
+\begin{center}
+\begin{tabular}{l|l}
+\textbf{Action} & \textbf{Default key(s)} \\
+\hline
+Move left & Arrow left \\
+Move right & Arrow right \\
+Aim up & Arrow up \\
+Aim down & Arror down \\
+Shoot & Right CTRL \\
+Jump & Right shift \\
+Change weapon & Enter \\
+Shoot rope & Change weapon + jump \\
+Change rope length & Change weapon + aim up/down \\
+\end{tabular}
+\end{center}
+
+\subsubsection*{Starting the game}
+Somekind of intstuctions on starting the server, connecting etc...
+
\subsection{Configuration}
How to make configuration changes.
--- a/src/Config.hh Mon Dec 08 16:38:33 2008 +0000
+++ b/src/Config.hh Mon Dec 08 16:39:20 2008 +0000
@@ -39,7 +39,7 @@
const float PLAYER_INITIAL_Y = 300.0;
const float PLAYER_CROSSHAIR_DISTANCE = 20.0;
const float PLAYER_CROSSHAIR_WIDTH = 4;
-const float CROSSHAIR_ANGLE_SPEED = PI/40;
+const float CROSSHAIR_ANGLE_SPEED = PI/2000;
const float PLAYER_MAX_SPEED = 43;
const float PLAYER_WALK_SPEED = 33;
--- a/src/Player.cc Mon Dec 08 16:38:33 2008 +0000
+++ b/src/Player.cc Mon Dec 08 16:39:20 2008 +0000
@@ -139,10 +139,10 @@
// handle aim by creating a aim angle delta
if (input & INPUT_AIM_UP)
- aim_delta += CROSSHAIR_ANGLE_SPEED;
+ aim_delta += CROSSHAIR_ANGLE_SPEED*dt;
if (input & INPUT_AIM_DOWN)
- aim_delta -= CROSSHAIR_ANGLE_SPEED;
+ aim_delta -= CROSSHAIR_ANGLE_SPEED*dt;
// handle jumping by invoking the jump method
// XXX: the direction should ideally be given using some other method