GLBasic forum

Other languages => GLBasic - de => Topic started by: peterpan on 2008-Aug-29

Title: contraption
Post by: peterpan on 2008-Aug-29
Hi, there

hat schon jemand das hier gesehen !
http://fantasticcontraption.com/


Title: Re: contraption
Post by: Schranz0r on 2008-Aug-29
ja bei level 19 ist bei mir ende!
Ich schafs einfach net, bin da letzte Woche 3 Stunden vor gehockt ^^
Title: Re: contraption
Post by: peterpan on 2008-Aug-30
Hi SchranzOr,

Ja, ist nicht ganz so einfach.
Bin noch gar nicht so weit ! :O
Hab das erst jetzt entdeckt !
Manchmal kommen ganz lustige Sachen dabei raus.

Peter 
Title: Re: contraption
Post by: Schranz0r on 2008-Aug-30
schau mal auf Youtube da bekommst nen vogel was die alles bauen ^^

Edit habs durch.... U-Turn war dann am ende doch noch zu einfach für meinen Geschmack :D
Title: Re: contraption
Post by: Quentin on 2008-Aug-30
*rofl*
das ist richtig klasse. Leider ist an mir kein Konstrukteur  verloren gegangen ;))
Title: Re: contraption
Post by: trucidare on 2008-Aug-30
Sowas für den Wiz wär doch supi Gernot. Mach doch mal sowas und schlags GPH als build in game vor.
Title: Re: contraption
Post by: Schranz0r on 2008-Aug-31
Dafür bräuchte man mal Box2D in GLBasic.... habs versucht, aber er sagt mir :

Code (glbasic) Select

gpc_temp1.o:gpc_temp1.cpp:(.text+0xa36): undefined reference to `b2World::b2World(b2AABB const&, b2Vec2 const&, bool)'
gpc_temp1.o:gpc_temp1.cpp:(.text+0xa79): undefined reference to `b2World::~b2World()'
gpc_temp1.o:gpc_temp1.cpp:(.text+0xb4c): undefined reference to `b2World::~b2World()'


Obwohl er den Header astrein kompeliert hat... :(


Code:

Code (glbasic) Select
INLINE
}

#include "include/Box2D.h"

DGArray<b2AABB> _b2_AABB;
DGArray<float> _b2_Vec2x;
DGArray<float> _b2_Vec2y;

// The World
b2AABB worldAABB;
b2Vec2 Gravity(0.0, 10.0);


namespace __GLBASIC__{
ENDINLINE


FUNCTION b2_SetUpperBound: x, y
INLINE
worldAABB.upperBound.Set(x, y);
ENDINLINE
ENDFUNCTION


FUNCTION b2_SetLowerBound: x, y
INLINE
worldAABB.lowerBound.Set(x, y);
ENDINLINE
ENDFUNCTION


FUNCTION b2_CreateGravity: x, y // gravityhandle
INLINE
REDIM( _b2_Vec2x(), LEN( _b2_Vec2x() ) +1);
REDIM( _b2_Vec2y(), LEN( _b2_Vec2y() ) +1);

_b2_Vec2x(LEN( _b2_Vec2x() ) -1) = x;
_b2_Vec2y(LEN( _b2_Vec2y() ) -1) = y;


return LEN( _b2_Vec2x() ) -1;
ENDINLINE
ENDFUNCTION

FUNCTION b2_CreateWorld: gravityhandle, dosleep // dosleep = bool
INLINE

b2Vec2 gravity( _b2_Vec2x(gravityhandle), _b2_Vec2y(gravityhandle) );

b2World world(worldAABB, gravity, dosleep);

ENDINLINE
ENDFUNCTION
Title: Re: contraption
Post by: BumbleBee on 2008-Aug-31
Klasse. Solche Spielchen (und natürlich auch andere) ;) lieb ich. Das macht richtig Spass. Da werd sogar ich mal gefordert. :)
Und sogar besser als jedes 3D Spiel. Nein, das war jetzt gelogen.  :booze:

Cheers
Title: Re: contraption
Post by: trucidare on 2008-Aug-31
Nooob ... linkst du auch die lib mit? Wenn nicht dann versuch doch mal den ganzen crap zu kompilieren... also mit dem glbasic projekt
Title: Re: contraption
Post by: Schranz0r on 2008-Aug-31
Du bist ein noob, sicher link ich die mit!

Project/Optionen/Ink: -lbox2d_d


Schau doch selbst du klugscheisser :D (siehe Anhang)

[attachment deleted by admin]
Title: Re: contraption
Post by: Sebastian on 2008-Aug-31
Box2D kannte ich noch gar nicht. Schonmal Chipmunk physics versucht? http://wiki.slembcke.net/main/published/Chipmunk (http://wiki.slembcke.net/main/published/Chipmunk)
Title: Re: contraption
Post by: trucidare on 2008-Aug-31
Wenn ich nichts dazu linke bekomm ich den selben fehler. naa fällt was auf ? :P
Title: Re: contraption
Post by: Schranz0r on 2008-Sep-01
klugscheisser!

Scheibe ich :  -lbox2d_XYZ  statt  -lbox2d_d sagt der Lib nicht gefunden.

Also was sagt dir das?

Title: Re: contraption
Post by: trucidare on 2008-Sep-01
das du eine lib linkst die nicht die symbole hat.
Title: Re: contraption
Post by: Kitty Hello on 2008-Sep-02
die lib muss mit dem GCC gemacht worden sein! Eine MS-lib geht da nicht.
BZW: Von Box2D gibt's ja auch cpp Dateien. Die kannst Du bei CMP als Argument mit angeben.
Title: Re: contraption
Post by: Schranz0r on 2008-Sep-02
bekomm da net hin ....