Code Monkey home page Code Monkey logo

maze's Introduction

Maze

This is a project written in C and using the SDL v2 library.

It is currently under development.

The goal is to produce a 3D maze that looks like this:

images/example_1.png

Compiling (requires SDL2 to be installed):

Ubuntu 14.04 + 16.04:

Compile using make, or, alternatively, with this commmand

gcc -Wall -Werror -Wextra -pedantic -g src/main.c src/init_instance.c src/draw_functions.c src/map_functions.c src/game_functions.c src/paint_functions.c src/calculation_functions.c src/intersect_functions.c -lm $(sdl2-config --cflags) $(sdl2-config --libs) -lSDL2_ttf

macOS 10.12.4

Compile with the command below:

gcc -Wall -Werror -Wextra -pedantic -g src/main.c src/init_instance.c src/draw_functions.c src/map_functions.c src/game_functions.c src/paint_functions.c src/calculation_functions.c src/intersect_functions.c -lm -I/usr/local/include/ -D_THREAD_SAFE $(sdl2-config --libs)

Notes:
There is a bug in sdl2-config when returning the SDL2 compilation flags on macOS. To get around that, you must get the compilation flags manually: run sdl2-config --cflags and simply strip the trailing โ€œSDL2โ€ from the include path.

Running the program

Run with ./a.out.

Installing SDL2 (Mac OS X + Ubuntu 16.04 + Ubuntu 14.04)

Run the following installation script with root privileges:

SDL2 Installation script for Mac OS X / Ubuntu

No instructions are provided for installing SDL2 on other OSes at this time.

maze's People

Contributors

dalzuga avatar

Stargazers

 avatar

Watchers

 avatar

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.