I have been working on GBScript
Posted February 14, 2024 by Btara
#Announcement #Code #Update
Since the last post announcement I have been working on GBScript and I have made a little progress.
So far I have finished the Code Interpreter and the Code Compiler, and I have started to add some basic lines of code you can use to code the games. Below you can see all the code statements I have added so far, along with what they do.
- Var VarName, Value Creates a new var with name "VarName" and stores "Value" inside it
- Set VarName, Value Sets the data of the variable with "VarName" to "Value"
- Inc VarName Increments the variable with the name "VarName" by 1
- Dec VarName Decrements the variable with the name "VarName" by 1
- Add Value1, Value2, Variable Adds "Value1" to "Value2" and saves the result into the variable with the name "Variable"
- Sub Value1, Value2, Variable Subtracts "Value1" from "Value2" and saves the result into the variable with the name "Variable"
- DefTile TileData Creates a new 8x8 tile/sprite variable (TileData should be a list of [0,1,2,3] 0 being the lightest and 3 being the darkest)
- Label LabelName Creates a Label in the code with the name "LabelName"
- Jump LabelName Jumps to the Label with the name "LabelName" and starts running the code that comes after the label (Useful for functions, loops, etc)
Some of these Code statements may be confusing right now but once I get a little further I will create some tutorials on my YouTube channel so that anyone can make games.
My YouTube Channel: https://www.youtube.com/channel/UCwN4vybW5eBmpgR7GdK6z-w (Plz Sub so you don't miss out on the tutorials)
Also follow my itch.io page so you don't miss out when I release the beta: https://btara.itch.io