Search found 656 matches

by h4tt3n
Oct 20, 2018 8:24
Forum: Tips and Tricks
Topic: Collision detection circle <-> rectangle with position correction
Replies: 2
Views: 109

Re: Collision detection circle <-> rectangle with position correction

If you want to take it a step further, then look at these polygon - polygon collision detection algos by RelSoft. THey use the separating axis theorem (SAT), which is one of the commonly used algos in game physics.

viewtopic.php?t=16038&highlight=sat
by h4tt3n
Oct 11, 2018 7:24
Forum: Game Dev
Topic: Rubik cube
Replies: 5
Views: 291

Re: Rubik cube

Impressive as always :-)
by h4tt3n
Oct 10, 2018 16:16
Forum: Projects
Topic: Sort of overselling this as a project... Arkanoid physics toy
Replies: 6
Views: 298

Re: Sort of overselling this as a project... Arkanoid physics toy

Nice! An obvious way of expanding this would be to add rotation to the ball. You could then make it spin using the friction of the paddle, allowing some insane shots. I've got all the physics stuff lying around if you'd like to see some examples.
by h4tt3n
Oct 05, 2018 20:30
Forum: Tips and Tricks
Topic: period modulation (windows audio)
Replies: 4
Views: 221

Re: period modulation (windows audio)

Cool thanks!
by h4tt3n
Sep 29, 2018 13:44
Forum: Libraries
Topic: SDL2 bindings for FB?
Replies: 1
Views: 127

SDL2 bindings for FB?

Hello folks, I was wondering if anyone here have bindings for SDL2 that are newer that the preinstalled ones? Alternatively, is there a good tool for translating the latest to FB? I would like to contribute to the community by making these, but I'm not entirely sure how to do it, other than manually...
by h4tt3n
Sep 26, 2018 6:28
Forum: Game Dev
Topic: AI TANKS first draft
Replies: 90
Views: 2815

Re: AI TANKS first draft

@badidea, Here I have changed the image a bit and shown it on the left with 1 pixel per dot and on the right with small circle per dot. The problem with all rotations is leaving blank pixels that have to be filled in some way. https://i.postimg.cc/8kn5Wc4v/ambo2.png What rotation algorithm are you ...
by h4tt3n
Sep 25, 2018 11:00
Forum: Game Dev
Topic: AI TANKS first draft
Replies: 90
Views: 2815

Re: AI TANKS first draft

Just stop yourselves right there guys. You are ruining a perfectly nice project with your pointless bickering. Start coding instead, either in this thread or elsewhere, it doesn't matter.
by h4tt3n
Sep 01, 2018 15:05
Forum: Community Discussion
Topic: FreeBASIC Community produced game
Replies: 123
Views: 4444

Re: FreeBASIC Community produced game

badidea wrote:
h4tt3n wrote:I don't know if this would be of any help, but ...

Sounds interesting. No battle tanks in your code I suppose?


No, as mentioned this wold probably only be useful if we stick to the space battle type game.
by h4tt3n
Sep 01, 2018 12:38
Forum: Community Discussion
Topic: FreeBASIC Community produced game
Replies: 123
Views: 4444

Re: FreeBASIC Community produced game

I don't know if this would be of any help, but I have spent quite a bit of time developing a physics engine specially for 2D space type games. It has commands for creating planets, asteroid belts and entire solar systems with complex orbits, deriving orbit data from state vectors, drawing orbits on ...
by h4tt3n
Jun 23, 2018 13:32
Forum: Game Dev
Topic: What is good cross platform gameloop?
Replies: 47
Views: 3555

Re: What is good cross platform gameloop?

Here is the "Fix your timestep" game loop tutorial by Glemm Fiedler, converted to FreeBASIC. Cheers, Mike Part 1: Fixed delta time '' '' Glenn Fiedler game loop tutorial '' Code sample # 1 '' http://gafferongames.com/game-physics/fix-your-timestep/ '' Fixed delta time 'double t = 0.0; 'dou...
by h4tt3n
Jun 23, 2018 13:21
Forum: Game Dev
Topic: What is good cross platform gameloop?
Replies: 47
Views: 3555

Re: What is good cross platform gameloop?

Hello folks, First post in a looong time. I've been tampering with a game loop that treats framerate a bit as a damped spring or a constraint. As much cpu time as possible is freed with sleep. By setting the "stiffness" c_sleep to a near 1.0 value, it reaches an equilibrium faster, but you...
by h4tt3n
Feb 13, 2018 11:11
Forum: Hardware Interfaces / Communication
Topic: DIY hardware interface for simple data collection and robot control?
Replies: 49
Views: 2814

Re: DIY hardware interface for simple data collection and robot control?

Hello again, I've been looking into things and have decided on the Arduino. I have ordered an Arduino Uno and Mega and some extra shields for sensor input and motor control. The programming ide is very straight forward to use for anyone with basic programming skills, and when the mailman arrives I'l...
by h4tt3n
Jan 27, 2018 9:16
Forum: Community Discussion
Topic: Using FreeBASIC in the classroom?
Replies: 11
Views: 1027

Re: Using FreeBASIC in the classroom?

Thanks everyone for your replies, you've given me some tracks to follow.
by h4tt3n
Jan 27, 2018 9:13
Forum: Community Discussion
Topic: Using FreeBASIC in the classroom?
Replies: 11
Views: 1027

Re: Using FreeBASIC in the classroom?

So, I'd like to know if anyone here have any practical experience with programming as a teaching tool? No, my thoughts: If I look at a list of physics topics like on http://www.physicsclassroom.com/Class , I see some topics where code could be used to visualise concepts. Mostly mechanics (motion, a...
by h4tt3n
Jan 25, 2018 17:57
Forum: Hardware Interfaces / Communication
Topic: DIY hardware interface for simple data collection and robot control?
Replies: 49
Views: 2814

Re: DIY hardware interface for simple data collection and robot control?

Apart from the hardware, do you have practical (automation) ideas that the students would interest? Yes. Most of it is pretty straight-forward. For the input part, I want to measure if a certain switch is on or off. I'd also like to measure frequency / rotations per second when comparing different ...

Go to advanced search