Fifteen minutes of popular science on the "Midpoint Circle Algorithm", which uses pixels to create a circle with a specified radius with optimal efficiency.
Buy me a drink☕ https://www.buymeacoffee.com/haskasu
Fan page: https://www.facebook.com/haska.gamelet/
Circle drawing App: https://line-renderer.gamelet.online/
[Xiaoha Publishing]
"Game Design x Algorithm/The publisher said to me: Hand over all the secrets!" 》
https://www.tenlong.com.tw/products/9786263335714
"Pixi.js allows novices to write good games"
https://www.tenlong.com.tw/products/9786267273821
[Channel] Only speak the truth, not write programs https://youtube.com/playlist?list=PL1GxW0vJciBTdxe6FQDa9ae0GaJSq1lG_
[Channel] Program Mathematics, a moment of gathering https://youtube.com/playlist?list=PL1GxW0vJciBSiJJnJwAV1pN1npdhLFJuh
[Channel] Create an App from Scratch, Quietly https://youtube.com/playlist?list=PL1GxW0vJciBRHSAKUxyZ-2xwteeTmRxU2
0:00 Introduction
1:13 Usage in game
1:34 Drawing APP
2:08 Circular segmentation
2:41 The Loop of the Midpoint Algorithm
8:16 The magic three lines
10:02 Bit shifting method
15:07 Eight-directional mirroring
Assets:
https://www.vecteezy.com/
https://creazilla.com/
https://mixkit.co/
https://pixabay.com/
https://www.pexels.com/