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.

learn more… | top users | synonyms

0
votes
1answer
55 views

Refactoring an XNA map redraw [closed]

In the draw step I have different content loading depending on which side of the screen the player exits from. I'm trying to refactor this into a single method for handling the updated content, but I ...
-1
votes
1answer
64 views

good struct for making items in game [closed]

i am trying to make a java game. i have a spaceShip(player) on left. you can go up and down, and shoot bullets. from right side enemy keep on coming and shoot bullets. you have to avoid them and kill ...
-6
votes
1answer
86 views

Generic Class Name for RTS [closed]

Hopefully this will be a nice easy question :- I am building an RTS as a way of learning OOP techniques. Currently the code has the following classes Class MustInherit GameUnit Class MustInherit ...
1
vote
1answer
117 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
49 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: ...
0
votes
1answer
153 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
382 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
811 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
469 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
200 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
721 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
189 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
252 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
296 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
855 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 ...

1 2
15 30 50 per page