-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
78 lines (56 loc) · 4.29 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
I've released this so that you can get a feel for what you are going to be working with. You will only *have* to code with this in about 2 weeks time but I would suggest familiarizing yourself with the code before that time.
There are Java-Docs of the API in the doc/ directory (it's mostly done though I still have to complete one or two things, ask on the forum if a function isn't documented). I suggest (i.e. i really really really suggest) you read the documentation for the Game class as it is the backbone of the game.
The documentation for JOGL is available on Vula but this is mainly for interests sake.
All source files are in the src/ directory
=============================================================================
How to play
=============================================================================
This is just a toy game, there is no winning conditions. If you shoot something that is not a wall it'll be destroyed.
You have to restart the game to restart. You are obviously required to change this (see the specifications on Vula)
NOTE: Sometimes the game creates you on top of an asteroid. In this case you will not be able to move. Restart that game. You need to address this in your final game.
Controls:
W, A, S, D - move
mouse position - turn to mouse
SPACE or left mouse button - fire weapon
=============================================================================
How to setup, compile and run
=============================================================================
You can use an IDE (Eclipse, soon to be NetBeans and JCreator as well) or you can use the command line
Please you have the correct version of the API depending on your Operating System. The only difference is the Eclipse .classpath file and the Operating System specific libraries
------------------------------------------------------------------------------
Eclipse 3.5 (Galileo):
------------------------------------------------------------------------------
Extract the files to the desired directory
Open Eclipse (if it asks to set a workspace just click OK)
If you are not so already, go to workbench (the arrow icon on the left)
Click File->Import...
Select "Existing Project into Workspace" and click next
Select "Browse" next to the "Select root directory" then click browse
Find the directory that you extracted the files to and click OK
Select "Copy Projects into Workspace" if you want it to copy the files to your workspace directory (obviously...)
Click Finish and you're done
------------------------------------------------------------------------------
Eclipse (complicated instructions if the above one doesn't work):
------------------------------------------------------------------------------
Extract the files to the desired directory
Open Eclipse (if it asks to set a workspace just click OK)
If you are not so already, go to workbench (the arrow icon on the left)
Click File->New->Project...
Click Java Project (should be the first option) and click Next
Select "Create project from existing source" then click browse
Find the directory that you extracted the files to and click OK
Type in the name "SurvivalGame" for your project name. Naming it anything else will cause the project not to work (since the classpath variables will be wrong).
You can rename the project later by selecting the project and pressing F2 (this will adjust the classpaths accordingly)
------------------------------------------------------------------------------
Eclipse - Setting up the correct JDK
------------------------------------------------------------------------------
If this is your first time using eclipse the incorrect java JRE compliance might be set and there might be an error with some of the newer Java features. Like the generic classes (like Vector) here is how to fix it.
Right click your project.
Select Properties.
Select Java Compiler on the left
Select the tick-box labeled "Enable project specific options"
To the left of Compiler Compliance level there is a drop-down box
Select 1.6 or higher
Click OK (and yes if it prompts you)
From here on it should be working and you can run it as per normal for Eclipse Java applications
Again, post on the forums if you have a problem. Please be sure to specify exactly what is wrong and provide any relevant information that I might need.