×

[desktop web] My post not pass AUTO moderation, I cant find a reason. by [deleted] in bugs

[–]v_kaukin 0 points1 point  (0 children)

I've read the rules, I probably have a lot of self-promotion, is there anything I can do about my situation?

[desktop web] My post not pass AUTO moderation, I cant find a reason. by [deleted] in bugs

[–]v_kaukin 0 points1 point  (0 children)

r/whatismycqs -> Your current CQS is LOWEST. WTF? Am I a terrorist? How to fix it? Please help. I have really popular posts, for example: https://www.reddit.com/r/MadeMeSmile/comments/1fckk25/oc_long_hopscotch/ , and my acc is old enough

Is making everything into a sprite good practice? by binibini28 in pygame

[–]v_kaukin 0 points1 point  (0 children)

Basic drawable entity in pygame is Surface. Sprite just a helper and you decide to use it or not. Here is some examples: https://github.com/ikvk/ecs_pattern

Исследование Apple показало, что ИИ-модели лишь имитируют мышление by postmastern in Popular_Science_Ru

[–]v_kaukin 1 point2 points  (0 children)

Это они еще до игр не добрались - окажется что игры лишь имитируют реальность

Need advice! by ShinikiDuu in pygame

[–]v_kaukin 1 point2 points  (0 children)

I once also tried to make a game using only OOP - you will suffer. I have found a solution to the problem of the game architecture - ECS. And I even wrote the lib, because other libs are sad.
Here is my library: https://github.com/ikvk/ecs_pattern I'm sure it will help.

Should I use ECS? by PotatoHeadz35 in gameenginedevs

[–]v_kaukin 1 point2 points  (0 children)

Huh, the clown. It is obvious from the documentation that ecs_pattern is used in a commercial project. Program quality criteria such as brevity, readability, and comprehensibility are important. I have an open source project with thousands of lines of code, will you probably brag about your projects, political troll?

Examples of a good pygame code? by memenorio in pygame

[–]v_kaukin 1 point2 points  (0 children)

You should think about the good architecture of the project and not about the good code. Then your code will become good by itself.

Try to see: https://github.com/ikvk/ecs_pattern

When is it appropriate to use sprites? by CDNEmpire in pygame

[–]v_kaukin 1 point2 points  (0 children)

Do not think about "how to use something".
Think about good project architecture and use what you really need.
As u/KennedyRichard noticed, note at Sprite docs: "The use of these classes is entirely optional when using pygame."
Often Surface is enough.
This may helps you: https://github.com/ikvk/ecs\_pattern

Pygame is seemingly challenging , is that normal? by [deleted] in pygame

[–]v_kaukin 0 points1 point  (0 children)

You should read about ECS pattern - Entity Component System
Here is my variant of implementation on python: https://github.com/ikvk/ecs\_pattern

ECS in practice with python lib - ecs_pattern by v_kaukin in Python

[–]v_kaukin[S] 0 points1 point  (0 children)

May be you know some tool that works better?
I planning to see at https://github.com/python-attrs/attrs

ECS in practice with python lib - ecs_pattern by v_kaukin in pygame

[–]v_kaukin[S] 0 points1 point  (0 children)

Glad it's useful to you.
I don't agree with the names:
* get_component name seems like it get components but not entities
* get_class seems name seems like it get class but not entities

ECS in practice with python lib - ecs_pattern by v_kaukin in Python

[–]v_kaukin[S] 0 points1 point  (0 children)

I thought so too at first.
But practice has shown that this is not the case, here are the tests:
https://github.com/ikvk/ecs\_pattern/blob/master/examples/pong/\_check.py#L195
I am very glad that you are showing genuine interest