CodingNow | 云风

Classification of table games

Original link: https://blog.codingnow.com/2023/09/boardgame_subdomain.html All games played on a tabletop count as tabletop games. Almost everyone has played chess, Go, and poker. Excluding these traditional abstract games, I’ve been playing modern tabletop games for over a decade. In the past, it was played with friends, but in recent years, it has been played more with family …

Classification of table games Read More »

Data Structure Optimization of Ordinal Sequence

Original link: https://blog.codingnow.com/2023/07/monotonic_array.html In our ecs module, an important internal data structure is an array of eids. It is part of the Component structure, indicating which Entity each Component belongs to. Currently, it is implemented as an ordered array of ids. The common operations of this data structure are: traversal, random access, and finding the …

Data Structure Optimization of Ordinal Sequence Read More »

A little problem with ttf font

Original link: https://blog.codingnow.com/2023/07/ttf_fontsize.html Our game engine uses stb’s truetype library to handle ttf fonts. Recently, I found that there was a problem when using the Alibaba Puhui provided by the company. The Chinese characters rendered by the engine are much shorter than the nominal pixel height. If you want to render a Chinese character with …

A little problem with ttf font Read More »

A new way to draw bastards

Original link: https://blog.codingnow.com/2023/06/oldmaid.html Before teaching children to play poker, start with drawing eighth. The kids love it. This is a traditional game called Old Maid in the West. The rule is very simple, that is, draw a king and an 8 (or any other card) from a deck of 54 playing cards. Cards are dealt …

A new way to draw bastards Read More »

Some recent optimizations of ECS

Original link: https://blog.codingnow.com/2023/06/optimize_ecs.html Recently we are optimizing our 3d engine. The rendering object management layer of the engine is based on the ECS framework, and the entire engine is designed and constructed based on Lua. In other words, the data in the rendering part can be read and written through Lua. However, for the core …

Some recent optimizations of ECS Read More »

some games played this year

Original link: https://blog.codingnow.com/2023/04/recent_games.html We are developing a game similar to Factorio, which focuses on building automated factories. Its game background is close to Mars colonization. So, in the past year, I have played a considerable number of games with similar points, hoping to get some inspiration. Among them, there are three new games with the …

some games played this year Read More »

Continue to learn about neural networks

Original link: https://blog.codingnow.com/2023/03/cnn.html During this period of time, apart from being busy with game projects, I continued to spend a few days learning neural networks. After the last blog was published, I received an email from Turing’s friend. Then, I received a bunch (nine) of Turing’s books on artificial intelligence in Chinese. Usually, my classmates …

Continue to learn about neural networks Read More »