Two basic game demos for ublockly. Watch videos:
-
clone the source ublockly.
git clone [email protected]:imagicbell/ublockly.git
Make sure the two git are in the same root folder.
-
Open UBlocklyGame in Unity.
-
Hit menu UBlockly/Build Block Prefabs and wait to finish prefabs building.
-
Open scene:
- Paint game: "AllRes/Paint/Scenes/PaintGame"
- Maze game: "AllRes/Maze/Scenes/MazeGame"
-
Hit play and code!
I have prepared 2 code templates for each under /ExampleCode. Put them in folder Application.persistentDataPath + "XmlSave/"
. After hitting play, click the second button on the right top corner to load them. Make sure you load the corresponding xml
for each game.
I also provide a MazeBuilder for building map for maze game. Just open the scene, and follow the explicit UI to build your own map.