HyperCrowd / moba

Quick MOBA Concept using Phaser.js
0 stars 0 forks source link

Terrain Heightmap Support #13

Open HyperCrowd opened 1 day ago

HyperCrowd commented 1 day ago

We make a grayscale heightmap of the terrain, and then generate a mask on the fly based on that heightmap on everything greater than a specific color value and anything less than another color value

From there, we grab chunks of the heightmap to average the directionality of height values

Tthe averages tell us direction of slope, then we have a much more coarse resolution to utilize referring terrain movement hinderence based on movement direction

Should be easy and CPU efficient to run this way

HyperCrowd commented 1 day ago

Examples: