Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Managing Game Objects  (Read 1623 times)

0 Members and 1 Guest are viewing this topic.

Raincode

  • Full Member
  • ***
  • Posts: 118
    • View Profile
Managing Game Objects
« on: November 17, 2013, 03:54:54 pm »
Hello everyone,

I have worked on a couple of classes. Their purpose is to represent an interactive Object in a 2D Game World and manage these Objects, for example a wave of enemies.

I'm fairly unexperienced and I really would like to get feedback to improve and learn new things  :)

I haven't managed to complete a complete game so far, and I wonder if it's because of  a lack in design...

So if you feel like it, please, check out the code and say what you think  ;)
https://github.com/Raincode/2DGameEngine/tree/master/src

There is also a minimal example use, but it won't compile the way it is, so only to get an idea

Kind Regards,
Raincode

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: Managing Game Objects
« Reply #1 on: November 17, 2013, 05:27:59 pm »
I think it is time to pull out the infamous article titled "Write Games, Not Engines". When you try to write a generic game engine to match all scenarios you will fail, because not one engine can fit all problems.

What you should instead do is focus on writing classes that can do exactly what you want to do. If you want waves of enemies then write classes to manage enemies specifically for your game. Then after your game is done what you can extract from your final game can be considered your "game engine"  ;)
« Last Edit: November 17, 2013, 05:32:26 pm by zsbzsb »
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor

Raincode

  • Full Member
  • ***
  • Posts: 118
    • View Profile
Re: Managing Game Objects
« Reply #2 on: November 17, 2013, 06:19:02 pm »
Hi,

thankyou very much for your reply.

I will put some thought to it, indeed I have tried to generalize my code in order to make the process of writing games much faster in the future. I'll have to step back and concentrate on one game and one task only.