Search found 6 matches

by Blackflower-1996
Wed May 09, 2012 4:11 pm
Forum: Art, Music, and Design
Topic: 8-bit Platformer Pixel Artist Needed
Replies: 4
Views: 8401

Re: 8-bit Platformer Pixel Artist Needed

Moosader wrote:
lalacomun wrote:dude please post all these on the off-topic section :)
Shouldn't "Art needed" postings go in the Art forum?
yes, offcourse, but a few days ago, actually yesterday ;) there was a guy posting recipes for some jamaikan type food so he commented that :)
by Blackflower-1996
Wed May 09, 2012 2:55 pm
Forum: Programming Discussion
Topic: Struct inheritance problem
Replies: 9
Views: 1668

Re: Struct inheritance problem

JarrodParkes wrote:

Code: Select all

Entity1.setX(20);
Where is Entity1 created?
at the end of struct entity

Code: Select all

struct Entity
{
     ...
} Entity1;

by Blackflower-1996
Wed May 09, 2012 1:44 pm
Forum: Programming Discussion
Topic: Struct inheritance problem
Replies: 9
Views: 1668

Re: Struct inheritance problem

You havent posted enough for anybody to help you. Where is your main? And can we see the ACTUAL error? sure ;) errors: obj\Debug\main.o||In function `SDL_main':| C:\Users\martin\Desktop\Engine\main.cpp|22|multiple definition of `Entity1'| obj\Debug\Player.o:C:\Users\martin\Desktop\Engine\Player.cpp...
by Blackflower-1996
Wed May 09, 2012 1:25 pm
Forum: Programming Discussion
Topic: Struct inheritance problem
Replies: 9
Views: 1668

Re: Struct inheritance problem

lalacomun wrote:arent you including a source file (.cpp) in you main program ?? ;)
No :( any other suggestions??
by Blackflower-1996
Wed May 09, 2012 12:20 pm
Forum: Programming Discussion
Topic: Struct inheritance problem
Replies: 9
Views: 1668

Struct inheritance problem

so, i am having an erron that sais: Multiple Definition of "Entity" (main.cpp) First Defined in here (player.cpp) so my entity struct looks like this: #ifndef ENTITY.H #define ENTITY.H struct Entity { int x,y,w,h; int getX() { return x;} int getY() { return y;} int getW() { return w;} int ...
by Blackflower-1996
Mon May 07, 2012 2:47 pm
Forum: Programming Discussion
Topic: Game engine structure question
Replies: 2
Views: 823

Game engine structure question

ok so i have a question about game engine development for example i have 2 classes: "graphics.h" class graphics { public: graphics(); ~graphics(); void DrawImage(); } "engine.h" class engine: public graphics; //that inherit from graphics class { public: engine(); ~engine(); } and...