remance / Masendor

Open source educational and historical battle action game, All helps accepted
MIT License
143 stars 32 forks source link

Attempt optimize draw map #38

Closed coppermouse closed 1 year ago

coppermouse commented 1 year ago

worked on a test to make sure nothing breaks when optimize code. It is a lot easier to deal with than doing manual tests.

If you want to try out the test call it using pytest.

tests/map1.png is the file it verify against to make sure the method makes a correct image.

I also notice that I can almost not see height (I have a bright monitor, perhaps it is easier for you to see)

remance commented 1 year ago

Yeah the height colour difference is extremely minimal right now. The height recolour would need a more complex math for it to be more apparent.