Skip to content

dolovnyak/landscape-render

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

landscape-render

MacOS - Build

This program renders the landscape in the format below:

0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0
0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0
0  0 10 10  0  0 10 10  0  0  0 10 10 10 10 10  0  0  0
0  0 10 10  0  0 10 10  0  0  0  0  0  0  0 10 10  0  0
0  0 10 10  0  0 10 10  0  0  0  0  0  0  0 10 10  0  0
0  0 10 10 10 10 10 10  0  0  0  0 10 10 10 10  0  0  0
0  0  0 10 10 10 10 10  0  0  0 10 10  0  0  0  0  0  0
0  0  0  0  0  0 10 10  0  0  0 10 10  0  0  0  0  0  0
0  0  0  0  0  0 10 10  0  0  0 10 10 10 10 10 10  0  0
0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0
0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0

The position of the number is the local x, y coordinates, the value of the number is the local height.
(Central number have local position 0,0)

Implimented:

  • Rotations
  • Bresenham line
  • Wu's line
  • Maps parsing

Build and run on MacOS

make
./ls-render maps/'map_name'

Controls

  • ESC - Close the program.
  • W/A/S/D - Move the map.
  • Q/E - Spin the map.
  • R/T - Start/Stop auto spin.
  • J + auto spin (R) - Nice moving.
  • Hold LMB - Map will follow mouse cursor.
  • Mouse wheel - Zoom.
  • CTRL + mouse wheel - Height.
  • L - Switch mode.
  • O - Small optimization for Breshenham mode.

Screenshots:

Image alt Image alt Image alt Image alt Image alt

About

`Graphic` project at School21

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors