So I could use my own programming language to create my Game Engine and then I could make my 2d and 3d games.
Other languages like vbC++ or python ok but I decide to make my own programming language so I could understand it easier for my scripting.
Ok, I'll show you the codes:
In game code:
Comments look like:
\\This is an example code of a comment.
Math signs look like:
+, -, \ (divide), *(multiply), ~ (Round-up answer)
They will appear blue text
5 + 4 \ 3
On the code the answer will be 3.
IF you round your answer:
5.4 +4.91 ~ (1)
Your answer will be 10.31 but the rounding to 1 decimal will make it 10.3.
~ = round-up
(1) = round decimals
If you wanted to define text:
Integer as [test_text]
then you can input without errors:
Adding a word like "Interger" and the string [Your_string] will define your word.
Showing message boxes:
ShowMsgbox("Your text here", ButtonsOKCancel, Exclamation, "Msgbox test" -noclosebutton)
The - define the parameter such as for msgboxes:
-addbutton, "Testtext", [TEST01]
TEST01 = Code
Starting a code:
Ending a code:
If's, thens, ends, else
If <ADDTEXT> Then
the <ADDTEXT> areas are where you add your txt.
If you want a word to be nothing you just input:
The use of OR:
<ADDTEXT> or <ADDTEXT>
Running applications, including files:
Run "\MYAPP.exe" or Run "$GAMEDIR\MyApp.exe"
The BZC files are the script file extension.
You can also include files in the same folder as the code:
The "print" function:
ColorRed, ColorBlue or
Color0, 0, 0, 0 (ColorRed, Green, Blue, Alpha)
ShowMsgbox("Test") Loop [U]
U = If file("Test.txt") *exists
(don't know much about loops)
If "Text1.txt" exists Then
Add object.test at position(X,Y,Z)
Output a file:
outputfile > ("\$APPDIR\", "Test", *.txt)
Output folder, name and extension. Many more codes.
Showing a message when picked up item (medikit)
Print("You picked up a medikit")
That is just an simple medi-kit pickup.
# = Enter a value
--These codes might change...