More ExamplesΒΆ

Would you like to see more examples? Or even better, compile them yourself and use them as starting point for your ideas? Below are some links to more examples and the HGamer3D github repository.

Example Description Link
Cuboid2 A puzzle game, finding a path Cuboid2 on github
Gui1 GUI example Gui1 on github
Materials Showcasing all available Materials Materials on github
RotatingCube2 Attaching elements to each other RotatingCube2 on github
SoundEffects How to program sound SoundEffects on github
SpaceInvaders A comprehensive space invaders clone SpaceInvaders on github

To compile the examples, you need to:

  • Download the raw version of the file by clicking the appropriate link in the github interface
  • Rename the file to game.hs in the project folder
  • Run build and then run

Alternatively, you can figure out, how the build batch file work and issue the same command on the downloaded file. In the case of the space invader example, you can clone the complete repo into a new folder and use the build and run batches within that cloned folder.