Search found 1382 matches

by badidea
Jul 19, 2019 0:39
Forum: Game Dev
Topic: Physics question
Replies: 26
Views: 506

Re: Physics question

However if there was a rocket engine on the block it would turn with the block and thus change the direction of the force in absolute space? So to test this you would need to have a rocket of some kind (water bottle with vinegar and baking soda dissolved in water?) and a low friction setup such as ...
by badidea
Jul 18, 2019 22:43
Forum: Game Dev
Topic: Physics question
Replies: 26
Views: 506

Re: Physics question

Here is a general strike. I have used the property of mass of a disc and moment of inertia of a disc. ... Looking at you code, but I is a bit hard to follow. Not written for a beauty contest :-) linearimpulse = impulse * Cos(a) / mass angularimpulse = impulse * Sin(a) / anginertia You assume that l...
by badidea
Jul 18, 2019 22:33
Forum: Game Dev
Topic: Physics question
Replies: 26
Views: 506

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: 26
Views: 506

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: 26
Views: 506

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: 17360

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: 26
Views: 506

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: 26
Views: 506

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: 265
Views: 33864

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: 26
Views: 506

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: 637

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: 3
Views: 132

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: 6717
Views: 383135

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: 136

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: 6717
Views: 383135

Re: Squares

A doodle a day, keeps the insanity away :-)

Go to advanced search