Skip to content

It is an isometric projection of a grid that rotates using arrow keys or WASD keys.

License

Notifications You must be signed in to change notification settings

fredhii/Raise_the_terrain

Repository files navigation

Contributors Forks Stargazers Issues LinkedIn

Raise The Terrain

Plot a 3D grid

Report Bug · Request Feature

About this project

It is an isometric projection of a grid that rotates using arrow keys or WASD keys,
This project was created using SDL2 and C programming Language.

How does it work?

  • It Reads a file "file_demo".
  • It Generates a window
  • Gets the coordinates of each point from the file
  • Rotates the grid, when the user press the keys
  • Finish program when the user press ESC key or clocks on window Quit button

Requirements

  • SDL2 Lirary

Usage

1) Clone this repository

$ git clone https://github.com/fredhii/Raise_the_terrain

1.1) Install SDL2 (Skip this step if you already have it)

$ chmod 755 0_install_SDL2.sh
$ sudo ./0_install_SDL2.sh

2) Compile the program

$ gcc -Wall -Werror -Wextra -pedantic *.c -lm $(sdl2-config --cflags --libs) -o raise_the_terrain

3) Run the program

$ ./raise_the_terrain <file>

Controls

Keyboard Description
ESC Close program
W or Up Arrow Rotates grid upward
A or Left Arrow Rotates grid clockwise
S or Down Arrow Rotates grid downward
D or Right Arrow Rotates grid counter-clockwise

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

About

It is an isometric projection of a grid that rotates using arrow keys or WASD keys.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published