Giter Site home page Giter Site logo

maze-generator's Introduction

Maze generator

A 3D maze generator implemented using Monogame (using Visual Studio 2015/C# 6.0).

The maze is dynamically generated using the growing tree algorithm and is split into chunks so only the visible parts have to be drawn.

The individual maze cells are then combined in a linear way to reduce mesh size (instead of 10 cubes in a row, just have one long cuboid).

Compile

  • Restore nuget packages for solution
  • then either run "RELEASE VERSION.cmd" (requires msbuild in path) to get all the necessary files in "!Releases" output dir
  • or compile solution and run in Visual Studio

Note that while monogame was used it is embedded directly into the exe using Fody.Costura

You should not have to install monogame, unless you are missing some common DirectX redistributables.

Sample maze

Maze

Known issues

  • DirectX implementation of Monogame does not support AA which makes the maze look really bad at distance (especially with textured walls).
  • Sometimes the mouse left/right movement seems sluggish, this is a known issue with Monogame on Windows
    • The cause is the mouse actually moving outside the window (even though it should be reset each frame). To fix it alt tabbing out of the game and back in will help
  • The player may get stuck in some of the walls due to a poor collision implementation
  • When running into a wall while sprinting the player can actually see through the wall

maze-generator's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.