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
0answers
49 views
game client data processing and organization pitfalls
This MUD client is a simpler version of Mudlet in Java. Before going too far with the code for the client, I'm interested in feedback on any design problems with the current organization and data ...
0
votes
0answers
23 views
How to set, persist and send a String target for a MUD client
Mudlet, a MUD client for Linux, has the capability of targeting by name:
target = target:title()
if id then killTrigger(id) end
id = tempTrigger(target, [[selectString("]] .. target .. [[", 1) ...
1
vote
1answer
138 views
Best Practices for class usage and game architecture
I'm making a 2D game similar to mario in Java.
I have some questions about class organization and proper method usage.
I have the following classes:
Main: runs the game in a JFrame
GamePanel: ...
0
votes
1answer
331 views
Multiplayer in a game. How to design it object wise?
I was suggested on StackOverflow to ask this question here.
I'm working on a simple game and I was thinking of adding multiplayer feature but I'm a bit stuck. I'm not sure what approach should I ...
4
votes
2answers
363 views
Allocating Entities within an Entity System
I'm quite unsure how I should allocate/resemble my entities within my entity system. I have various options, but most of them seem to have cons associated with them. In all cases entities are ...
-1
votes
1answer
74 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
127 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
168 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
65 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:
...
1
vote
1answer
200 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
470 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
1k 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
514 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
216 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
1k 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 ...