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
1answer
86 views
Bullet Manager Class
I'm making a game in AS3, and it's a rather simple shooting game because I'm original. Anyway, probably the most subjective question here yet: what is the best way to implement bullets in my game?
...
0
votes
0answers
39 views
pygame object returns wrong button object
Another question from dumb developer :)
I have class for window:
class MainMenuWindow(Window):
# singeltone:
_instance = None
def __new__(cls, *args, **kwargs):
if not cls._instance:
...
-3
votes
0answers
119 views
OOP Game programming approach [closed]
I'm in the middle of creating a game using the concept of OOP, which I barely ever done..
I have a fear that I'm not sorting my classes correctly, it would really help to get some information about ...
0
votes
1answer
137 views
Entity Component Systems with Model View Controller
Can the Model View Controller design pattern be used with non-OOP coding style, specifically with Entity Component System?
2
votes
7answers
365 views
is ECS a kind of (or vs) OOP?
Is Entity Component System (ECS) considered a part of OOP or is it a completely different concept?
2
votes
1answer
630 views
HTML5 point and click adventure game code structure with CreateJS
I'm a programming beginner.
I made a tiny one scene point and click adventure game to try to understand simple game logic and came up with this:
CreateJS features prototypes for creating bitmap ...
1
vote
4answers
448 views
Non-object-oriented game tutorials
I've been tasked with writing an essay extolling the virtues of object oriented programming and creating an accompanying game to demonstrate them.
My initial idea is to find a tutorial for a simple ...
0
votes
4answers
195 views
Actor and Sprite, who should own these properties?
I'm writing sort of a 2D game engine for making the process of creating games easier. It has two classes, Actor and Sprite. Actor is used for interactive elements (the player, enemies, bullets, a ...
5
votes
3answers
588 views
What's a good entity hierarchy for a 2D game?
I'm in the process of building a new 2D game out of some code I wrote a while ago.
The object hierarchy for entities is like this:
Scene (e.g. MainMenu): Contains multiple entities and delegates ...
2
votes
3answers
175 views
OOP in cocos2d for ios
I have been pulling my hair out trying to make an object in cocos 2d that is a CCSprite (with an image) and a CCLabelBMFont.
I tried making a CCNode object and I tried making a custom CCSprite object ...
-3
votes
1answer
248 views
Why it is C++? [duplicate]
Possible Duplicate:
Why has the industry switched from C to C++?
Since many organizations have demonstarated Object orientation in C and we all know its ABI compatibility that C++ lacks, ...
1
vote
1answer
264 views
Implicity of “Objects” in component based design
For a while, I have mostly been using "standard OOP" (inheritance heavy, tree structure, etc.) styled designs for my Game Development needs. However, for my current project I am trying to shift over ...
4
votes
3answers
761 views
Composition heavy OOP vs pure entity component systems? [closed]
I admit, I have made the sin of overusing, and even abusing inheritance. The first (text) game project that I made when I was taking my OOP course went as far as "Locked door" and "unlocked door" from ...
0
votes
1answer
138 views
Structuring various game states and unique levels
I have a game design 'structure' question that I'd like to throw out there. This question is about various ways of designing game 'states', and specifically a system of 'levels'. Specifically, what is ...
6
votes
2answers
471 views
Doesn't multiple inheritance solve all problems that entity systems do?
The question is pretty self explaining: doesn't multiple inheritance solve all the problems that entity systems also solve?
I just remembered a term called "multiple inheritance", and that seems to ...