Skip to main content

Questions tagged [logic]

1 vote
2 answers
152 views

Recently I decided to start optimizing code in the game development field. I found this pacman project on github a good starting point: https://github.com/LucaFeggi/PacMan_SDL/tree/main I found a lot ...
X Y's user avatar
  • 111
0 votes
1 answer
180 views

Good Afternoon, I'm trying to move three objects from their current position to a shared target position based on speed. Once they reach the target position, they move to a shared respawn location and ...
PayasoPrince's user avatar
1 vote
1 answer
238 views

input reading = NPC reads the input of the player and instantly reacts to counter everything the player does. So, is it like : ...
Cei's user avatar
  • 873
1 vote
0 answers
797 views

I'm trying to adapt my current inventory so that the items can occupy more than one slots (cells) like in this image: Any idea that might help me? My inventory is an Image that has grid layout and ...
Jamelaumn's user avatar
1 vote
0 answers
38 views

This one's going to be interesting to explain. Let's say I'm making a geometry based collision system for a platformer, where polygons exist based on the lines that form them. I'm using some basic ...
GabbyCube's user avatar
0 votes
1 answer
169 views

I am currently working on a traffic simulator with Pygame, however i am struggling with implementing the logic of the traffic signals. Any help is welcome. My traffic simulation is grid based. The ...
Maurice's user avatar
1 vote
2 answers
1k views

The functionality I am trying to implement, consists of rotating one Transform and appling this rotation to other relevant Transforms in the scene. To make it a bit more clear: I have several objects ...
stupidbutseeking's user avatar
1 vote
1 answer
95 views

I have a system where I'm sifting through a large number and variety of objects in my game, looking for objects that match an arbitrary search criteria that can be simple or complex. For example, ...
GarrickW's user avatar
  • 330
0 votes
0 answers
258 views

Ok, so I was thinking of making a Texas Hold'em game, and I wanted to write down the game logic loop before starting. Here's what I have. Tell me if I missed anything or if anything is wrong. Game ...
user avatar
0 votes
1 answer
107 views

How can I disable pause() in game_loop() once game_over() function is called? game loop ...
Gayatri Rout's user avatar
1 vote
1 answer
166 views

I'm creating a puzzle game where the player must remove all colored blocks from a grid. When the player selects a block, all adjacent blocks of the same color are removed. Any blocks that have empty ...
Robert's user avatar
  • 13
0 votes
0 answers
108 views

I've got a task for job application to create a snake AI that can defeat their basic AI. Searching in this topic I've found that it's very similar to Tron and it's solved mostly by minimax algorithm. ...
Dinter's user avatar
  • 1
0 votes
1 answer
475 views

I'm messing around with a 2D game using UDP. I've read some books and articles on the logic of a dedicated server to clients multiplayer game and I can't wrap my head around one thing: What I've read:...
user2578216's user avatar
1 vote
1 answer
154 views

I have been learning opengl and I have made good progress over past few months. However I still struggle to understand game logic in C++, I am new to C++ too. Say I have this program. ...
user avatar
1 vote
1 answer
338 views

I've just started to try and learn how to use ECS (Entity component systems), but I'm having trouble understanding the concepts behind components. Should adding more types of components, or trying to ...
Sarah's user avatar
  • 59

15 30 50 per page
1
2 3 4 5
8