forked from vitalius/MultiplayerGame
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.TXT
64 lines (50 loc) · 2.5 KB
/
README.TXT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
CS 447 Project 2 - Final Readme
Group Members:
Josh Crawford
Vitaliy
Rolf
Running (Server/Client on same computer):
1) start server with java -jar server.jar
2) start client with java -Xms128m -Xmx512m -jar client.jar
3) manually enter the 127.0.0.1 as the server ip when the client starts.
4) hit an F key as shown below to choose a spawn location
Controls:
w - jetpack
a - left
d - right
space - jump
mouse - aiming the cross-hair for weapons
left mouse button - fire
1-3 - switches weapons: 1=rifle, 2=shotgun, 3=grenades
F1-F4 - choose a spawn location when starting the game or dead
Low Bar Goals Achieved:
Player Movement - Completed by adding force to player objects
controlled by the physics engine. The physics engine
was modified so the force would continue until turned off
usually by releasing the movement key. The velocity
was clamped to prevent infinite speed.
Combat - Completed by generating bullets controlled by the physics engine.
The bullet collisions would register damage to the player objects.
Deathmatch - Completed with a match class that would keep track of scores
and time limits.
Networking - Completed by introducing threaded network engine that
broadcasts game state every few milliseconds to a list of
connected clients. Clients would predict object movement and
would correct the position when new packets arrived from the
server. UDP was used to broadcast game state and a TCP to
communicate reliable information between the client and server.
2D Physics - Completed by integrating the Catto Physics Engine into the game.
Three weapon types - Completed with a rifle, shotgun and grenade.
Grenades include a timer to control detonation.
Player has all weapons and unlimited ammo - Completed.
Other features, not stated in the initial specs:
User interface - Shows health and jetpack fuel. Additional game status
were also displayed such as the time remaining in the match
and player stats at the end of a match.
Technical Show-pieces:
Networking - Demonstrated with a networked game in the lab
2D Physics - Player movement, grenades, boxes, barrels and bullet collisions.
Attributions
Sprites - Derick
Physics Engine - Eric Catto, Scott Wallace
Everything here is licensed under MIT license.