Skip to main content

Questions tagged [oop]

Object-oriented programming. A paradigm using objects (instances of a class consisting of properties and methods) to design games. Techniques may include data abstraction, encapsulation, messaging, modularity, polymorphism, and inheritance.

0 votes
0 answers
71 views

What is the neatest way in a strict OOP language (c++ say) to avoid the following circular dependency. Imagine I create a character class and a world class. A character requests data from the world to ...
BadUsername's user avatar
1 vote
0 answers
80 views

I'm working on a simple 2D game using C++ and SFML. In this game, I have a class WorkbenchBlock which inherits from class Block. ...
CyberMonkey0925's user avatar
0 votes
0 answers
89 views

I have created a dynamic library that contains all the tools I want my game executable to have. Additionally, I want to create a world editor/tools for my engine to be more user-friendly. I'm ...
Benzait Sofiane's user avatar
0 votes
3 answers
249 views

I'm a bit conflicted when it comes to the use of classes currently, I use them all the time, but I realized through the KISS and YAGNI principles I can simplify things by not using them, but is there ...
Konjointed's user avatar
1 vote
0 answers
151 views

I am learning about networking for game development and need some insight. My knowledge of Unreal Engine is that it uses RPCs and replicated variables for actors. I also know that Unity has Networked ...
Gus Funder's user avatar
3 votes
2 answers
2k views

I am developing a game engine in C++ (for an idea of what kind of design I'm going for, think of ROBLOX, if you're familiar with that) and I need help with a problem I have. So basically, the objects ...
Bunabyte's user avatar
  • 331
0 votes
0 answers
92 views

If I'm making a small library for handling 2D shapes, should polymorphism generally be avoided? I know that it can worsen performance but it's not like polymorphism is never used in game development ...
JensB's user avatar
  • 157
0 votes
2 answers
207 views

What would you call the groups of cards in a card game, including both piles (draw, discard...) and hands? I'm coding a generic card game engine and I've been unable to find a good name for the base ...
Jérémy Quentin's user avatar
0 votes
2 answers
114 views

I have three classes Location, Item, Character. Every ...
Michael Moreno's user avatar
0 votes
0 answers
120 views

I am creating a tower defense game. Currently I have 2 different tower types 'Shooting tower', amd 'Unit tower'. I have a Scriptable object to initialize the tower. It contains some tower properties ...
Taras Fityo's user avatar
1 vote
1 answer
406 views

It does not seem like a good idea to include this functionality in the game logic like that even if the concrete implementation of the sound or graphics effect is abstracted away. Ideally, the game ...
codymanix's user avatar
  • 394
0 votes
1 answer
777 views

This is my base class ...
Sean Carey's user avatar
0 votes
1 answer
114 views

I want to be able to render sf::CircleShape (representing pointwise charges) when pressing mouse buttons on the window. The problem is easy enough, however the ...
user avatar
3 votes
1 answer
2k views

I'm trying to design a character system for my game. Considering I'll need a player and non-player characters - and non-player characters will further come in many more forms, making use of ...
Marty Cagas's user avatar
0 votes
1 answer
201 views

i have made this bullet class but i have a problem with the firerate. Sometimes i'm not able to shoot even when the little delay (700ms) between the two shots has ended. I guess it's due to the ...
Salem's user avatar
  • 226

15 30 50 per page
1
2 3 4 5
9