This is the Shoot++. Have Fun.
This repository includes an interpreter, a viewer (based on OpenSceneGraph) and the c# form application.
You can download the pre-built files and directly play the game using button on top of the page.
Or if you need any help playing or building the project instructions are given below.
For further questions: sfktrkl@gmail.com
First of all you need the external files which are the OpenSceneGraph libraries.
You can simply use the pre-built(Visual Studio 15 2017 - x64) libraries in externals folder by extracting them.
If you want to build them by yourself go to, https://github.com/openscenegraph/OpenSceneGraph.
Be sure that extracting them to the appropriate path.
(externals/lib, externals/include, externals/binariesDebug, externals/binariesRelease)
After taking the binaries you can use copyBinaries.bat inside the scripts to copy binaries to configuration folders.
Then simply you can build and run in the Visual Studio.
In this game you have to complete the missions by writing your own code in game's own language.
Every tutorial and mission has its own explanations, so make sure you read them.
Since game has its own programming language you may want to use the help inside the game and also the examples below.
Example:
# THIS IS A COMMENT LINE
To create a variable use $.
Example:
$VARIABLE = 5
SHOOT $VARIABLE
SHOOT, to return something use this keyword.
Example:
SHOOT "This is a string"
SHOOT 10
SHOOT 10 + 2
INPUT, to take inputs use this keyword.
Example:
INPUT $NUMBER
SHOOT $NUMBER
IF, THEN ELSE and ENDIF
These are the keywords to create an if statement.
Example:
IF 10 + 2 == 12 THEN
SHOOT 1
ELSE
SHOOT 0
ENDIF
LOOP and ENDLOOP
These are the keywords to create a loop.
Example:
$NUMBER = 3
LOOP $NUMBER == 3 THEN
SHOOT 1
$NUMBER = $NUMBER - 1
ENDLOOP
DEBUG, to debug any variable, value or expression use this keyword.
SHOOT keyword also give debug outputs. You can enable or disable these outputs from debug screen.
Example:
DEBUG 4
DEBUG 10 + 5
INPUT $NUMBER
DEBUG $NUMBER
Arithmetic Operators
With the order of the precision,
* Multiplication
/ Division
% Modulus
+ Addition
- Subtraction
Assignment Operators
= Equals
Comparison Operators
== Equal to