Search found 684 matches

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

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
Sep 29, 2018 13:44
Forum: Libraries Questions
Topic: SDL2 bindings for FB?
Replies: 1
Views: 1166

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

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

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: 130
Views: 21923

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: 130
Views: 21923

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

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

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: 62
Views: 38645

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

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

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: 62
Views: 38645

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 ...
by h4tt3n
Jan 25, 2018 17:47
Forum: Hardware Interfaces / Communication
Topic: DIY hardware interface for simple data collection and robot control?
Replies: 62
Views: 38645

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

Do you know of an economic, software controllable piece of hardware that will allow us to flip a series of pins on/off or do measurements on them? Yes, have a look at Arduino, or any of the many Clones: "Open Source HW", as well as plenty possible add on Modules (for many specific tasks, ...
by h4tt3n
Jan 25, 2018 17:46
Forum: Hardware Interfaces / Communication
Topic: DIY hardware interface for simple data collection and robot control?
Replies: 62
Views: 38645

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

If I am not mistaken, what I am taking away from this discussion so far is that my students won't be able to solder up a piece of hardware by themselves that will allow them to do simple data collection and robot control from a modern PC? Well do they need to solder? It is common now to use a solde...