petrSchreiber / BetweenTheBubbles-tb

Bugs adventure in an infinite bubbleverse, thinBasic game
1 stars 0 forks source link

feat: using canvas #28

Closed petrSchreiber closed 4 years ago

DirectuX commented 4 years ago

Hi Petr, I ran a stress-test on Cornelius ( maxHalfWidth = 10 and a 9 steps E S W N loop ) it took 1h16min and the result is below.

Show picture ![stresstest - 1H16](https://user-images.githubusercontent.com/17156661/81983142-2bc43980-9633-11ea-8ffa-57fba9470d53.png)

as you can see there is an inexplicable glitch in the upper right corner. However, this "insane" map gave me issues to think of, from gameplay/story points of view essentially. I'll try to summarise them soon in the projects

petrSchreiber commented 4 years ago

Wow,

this is so fascinating to watch 🥇.

I see the glitch and do not understand it, looking forward to further comments.

As for the 1h+ time. We currently approach the generation "per pixel". If we took geometric approach (working with line segments, with width as metadata), maybe we could be more time-efficient in lookups, for example. But I am not 100% sure.

To give you idea:

petrSchreiber commented 4 years ago

@DirectuX this particular branch, using canvas, is just about rendering via Canvas.

While we need to further answer the glitch you discovered, it is related to algorithm, so we could maybe merge this to feat_proceduralMap and continue there?

DirectuX commented 4 years ago

Yes Petr, we should keep the last iteration of this Poc : the one with canvas