Search found 1410 matches

by badidea
Jul 18, 2019 22:33
Forum: Game Dev
Topic: Physics question
Replies: 62
Views: 2419

Re: Physics question

The borg cube is of course 3d and a lot more complicated. You are allowed to squeeze to borg cube to a height of nearly nothing :-) Hitting a circle is the same at any point. I am not hitting the circle. I have attached engine which shortly applies thrust in y-direction. The angle you hit a square ...
by badidea
Jul 18, 2019 22:01
Forum: Game Dev
Topic: Physics question
Replies: 62
Views: 2419

Re: Physics question

I cannot see what BasicCoder2's last post is adding more to the conversation than the second post did; or am I missing something? Neither did I. As I don't see a real difference between the flying saucer and the borg cube, I expect both to move in y-direction only while rotating. (assuming the thru...
by badidea
Jul 17, 2019 21:50
Forum: Game Dev
Topic: Physics question
Replies: 62
Views: 2419

Re: Physics question

BasicCoder2 wrote:
badidea wrote:Nice demo, but you skip most of the physics involved (forces, mass, inertia). Direct change of rotation and speed. Which is fine for a game, but not what I am looking for (in my game).

Maybe you need a 2d physics engine?

That is an option, but I prefer to grok the physics and implement it myself.
by badidea
Jul 17, 2019 21:34
Forum: Game Dev
Topic: Tetris vs Mario (Work in progress)
Replies: 2
Views: 17622

Re: Tetris vs Mario (Work in progress)

For those you missed it, the 'final' result (with Mario as a horse) can be found here: viewtopic.php?f=17&t=27438&start=90#p260499
Unfortunately, the competition organizer was apparently so disappointed with the result that he ran away.
by badidea
Jul 17, 2019 17:16
Forum: Game Dev
Topic: Physics question
Replies: 62
Views: 2419

Re: Physics question

... Nice demo, but you skip most of the physics involved (forces, mass, inertia). Direct change of rotation and speed. Which is fine for a game, but not what I am looking for (in my game). In space (without gravity) the center is the center of the object COO your spaceship but for example on earth ...
by badidea
Jul 16, 2019 21:51
Forum: Game Dev
Topic: Physics question
Replies: 62
Views: 2419

Re: Physics question

Somehow it seems counter-intuitive that if the thrust is in the y-direction only that the resulting linear motion can be in a different direction. If it be would be a billiard ball and the arrow a cue (stick) with friction between them then motion like in docicat's code seems correct. I'll think som...
by badidea
Jul 16, 2019 20:08
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 353
Views: 40467

Re: FLTK-C-1.3.3 for FreeBASIC

... Mostly simple things like closing a window can drive you mad and it takes days, because it is mentioned nowhere.. Not sure if this is a question or remark, but in my code containing a main window and setting window, I just use the small 'x' (often top-left) of the window manager :-) More seriou...
by badidea
Jul 15, 2019 22:44
Forum: Game Dev
Topic: Physics question
Replies: 62
Views: 2419

Physics question

Hello all, I am trying to make a small space ship simulation game, but I got confused with the physics. Maybe someone likes to help. Lets say I have circular space ship (a flying Saucer) with 2 forward thrusters placed off-axis of which only 1 working. Drawing: https://nr100.home.xs4all.nl/badidea/U...
by badidea
Jul 14, 2019 22:35
Forum: Windows
Topic: PALETTE USING and SCREEN bug on newer windows OS
Replies: 7
Views: 938

Re: PALETTE USING and SCREEN bug on newer windows OS

Out of curiosity, I ran the code from ShawnLG with the "256mask.pal" on my Linux laptop and 32-bit freebasic. Result: Seems to work as expected fullscreen, windowed and switching between the two. "256mask.pal" can be found (in zip-file) here: http://games.freebasic.net/dumpbyid.p...
by badidea
Jul 12, 2019 14:35
Forum: Game Dev
Topic: Mouse trouble
Replies: 21
Views: 849

Re: Mouse trouble

I cannot run your code, but in this small game (https://freebasic.net/forum/viewtopic.php?f=15&t=27720) I detect mouse button release by storing the previous state of the mouse buttons. And I compare this against current state. Mouse button was active and now it is not, then button was released....
by badidea
Jul 08, 2019 16:26
Forum: General
Topic: Squares
Replies: 6849
Views: 395005

Re: Take a break

dodicat wrote:Summer is here.

Fractal trees?
by badidea
Jul 07, 2019 21:26
Forum: Game Dev
Topic: Another sliding puzzle
Replies: 1
Views: 360

Another sliding puzzle

Back to basics, no classes used. Controls: - Mouse click on tile to rotate tile - Mouse click on arrow to rotate a row / column - Escape key to quit const SCREEN_W = 640, SCREEN_H = 480 const IMG_SIZE = 400 const IMG_XO = (SCREEN_W - IMG_SIZE) \ 2 '120 const IMG_YO = (SCREEN_H - IMG_SIZE) \ 2 '40 co...
by badidea
Jul 06, 2019 17:53
Forum: General
Topic: Squares
Replies: 6849
Views: 395005

Re: Squares

A doodle a day, keeps the insanity away :-)
by badidea
Jul 06, 2019 12:53
Forum: General
Topic: Squares
Replies: 6849
Views: 395005

Re: Squares

FreeBASIC art: const SCREEN_W = 640, SCREEN_H = 480 const IMG_SIZE = 400 const IMG_XO = (SCREEN_W - IMG_SIZE) \ 2 '120 const IMG_YO = (SCREEN_H - IMG_SIZE) \ 2 '40 const as ulong WHITE = rgb(255, 255, 255) const as ulong GREEN = rgb(0, 200, 0) const as ulong RED = rgb(255, 0, 0) const as ulong YELLO...
by badidea
Jul 03, 2019 18:19
Forum: General
Topic: Why doesn't this crash (UDT copy)
Replies: 4
Views: 508

Re: Why doesn't this crash (UDT copy)

fxm wrote:
...the implicit copy constructor and the implicit let operator themselves support [re]sizing and copying such arrays, or their erasing)...

Thanks, the compiler is more advanced than I expected :-)

Go to advanced search