To continue to improve the state of the project, I tightened up the code for the StaticDialogBox class in the RGL. About 20 to 30 lines of code were removed or rewritten, opposed to the small patch that was created by copy and pasting the DialogBox class code and changing a few lines. More improvements will be coming to the RGL, as I have decided to expand the library where possible and release the changes as a side project in addition to Open Math Game and the Jumpstart server. Currently, the main goal is to write the puzzle system for the game and then the level parser and game objects.
Certain challenges have presented themselves in doing the intended type of puzzle.One of the core educational aspects that the puzzle would help teach is order of operations.A possible, but very inefficient solution would be to go through the player input and check for each operation in order, then go through it again and repeat until there is only one value. The other easy solution would be to have each puzzle hard coded, making it very easy to code, check to see if all entries have a certain value, but this would severely limit the content of the game, making it useless after the player has gone through X amount of puzzles.
The other code I’m writing is a tile-based level parser which will take plain text, loaded in from a python file and create a level based off the characters in a list of strings. Each character string will represent the level width in tiles, each string will be another tile in height. I have several examples of how to do this which were included in the RGL and am currently considering the best way to approach this. With levels written in a separate python or text file, the end user will be able create his/her own levels.
On a side note, the RCOS dashboard still shows the Github repo as having no updates when in fact I pushed the code and the updated RGL last night.
One Comment
Thanks – Let me check why our code push is not getting updated in our dashboard