Search found 1890 matches

by badidea
Apr 06, 2020 21:17
Forum: Game Dev
Topic: A simple miner program
Replies: 22
Views: 729

Re: A simple miner program

In Linux 32 bit the constructor alias is "_ZN7STRINGSC1ER8FBSTRINGall" Don't have 64 bit Linux to test. Strange, "_ZN7STRINGSC1ER8FBSTRINGa ii " works fine here on linux fbc 32 and 64 bit. You seem in a very bad mood badidea. Than I must be me with the corona-depression. Maybe I...
by badidea
Apr 06, 2020 12:37
Forum: Game Dev
Topic: A simple miner program
Replies: 22
Views: 729

Re: A simple miner program

dodicat wrote:Just for fun, using some oop but bypassing it back to procedural.
...

That code is not funny :-P
by badidea
Apr 05, 2020 22:23
Forum: Game Dev
Topic: A simple miner program
Replies: 22
Views: 729

Re: A simple miner program

I thought OOP was to prevent modifications breaking the code? I don't know. Maybe if you are good at it. And if you are capable of doing the full design before actual coding. Which I cannot. Maybe for a next project I try without OOP and see what happens. But with 'structs', else I go crazy. Maybe ...
by badidea
Apr 05, 2020 21:20
Forum: Game Dev
Topic: A simple miner program
Replies: 22
Views: 729

Re: A simple miner program

Quiet day / weekend here on the forum. Maybe everyone is in some sort of corona-depression? With a walking animation I would have a strip of images within a larger image (usually called a sheet) but I see with the images you are using each frame is independent. Using image sheets makes the images lo...
by badidea
Apr 03, 2020 18:57
Forum: General
Topic: the mathematical analog clock
Replies: 6
Views: 223

Re: the mathematical analog clock

MrSwiss wrote:The current implementation is very inefficient.
A comparison in the Main-Loop whould be much more efficient and, free a lot of CPU time.
...

Note that sleep in #lang "QB" is in seconds, not in milliseconds.
by badidea
Apr 03, 2020 17:12
Forum: General
Topic: the mathematical analog clock
Replies: 6
Views: 223

Re: the mathematical analog clock

Suggested rewrite, without changing too much: #lang "QB" '_TITLE "THE MATHEMATICAL ANALOG CLOCK VERSION 3 - WITHOUT CALIBRATION" SCREEN 12 'DEVELOPED 2/17/2019 IN QBASIC BY RON77 AND MISHKA AND ITAY :) 'screen half with & height const SHW = 640 \ 2 const SHH = 480 \ 2 const p...
by badidea
Apr 03, 2020 10:31
Forum: General
Topic: Corona virus simulator
Replies: 41
Views: 1381

Re: Corona virus simulator

A different version. No more fancy math, all integers and random walk. And no collision detection. I set a location on the map as infected when an infected person is at that spot. When a healthy (not immune) person is also at this spot, the disease is transmitted. Map is cleaned each cycle. Simulati...
by badidea
Apr 02, 2020 15:16
Forum: General
Topic: midnight tic tac toe - a game
Replies: 4
Views: 161

Re: midnight tic tac toe - a game

Windows uses a different character map, most likely Code page 437 Also the terminal display on linux with freebasic is insanely slow, but that is a known issue. Same code with modified characters: 'OPTION _EXPLICIT 'started by me ron77 on 6-15-2019 saturday night... 'one boring lonley weekend night ...
by badidea
Apr 01, 2020 22:23
Forum: General
Topic: Corona virus simulator
Replies: 41
Views: 1381

Re: Corona virus simulator

Simulation of virus containment failure: https://nr100.home.xs4all.nl/badidea/corona/virus_2020-04-01_a.png Same conditions without borders: https://nr100.home.xs4all.nl/badidea/corona/virus_2020-04-01_b.png #Include "fbgfx.bi" #Include "string.bi" Type int2d As Integer x, y Decl...
by badidea
Mar 31, 2020 22:03
Forum: Beginners
Topic: I started a blog to learn FreeBASIC through videogames
Replies: 9
Views: 491

Re: I started a blog to learn FreeBASIC through videogames

thebigh wrote:*%#§)%

Yes, coding is 90% frustration and 10% satisfaction. Still we do it.
by badidea
Mar 31, 2020 16:11
Forum: General
Topic: Corona virus simulator
Replies: 41
Views: 1381

Re: Corona virus simulator

I am running a comparison With and Without spacial partitioning (sectors in code). I have added accumulative timers for simulation steps (excluding rendering): step 1 = irrelevant (mouse and keyboard handling) step 2 = update positions step 3 = wall collisions step 4 = end of sickness check step 5 =...
by badidea
Mar 30, 2020 23:36
Forum: General
Topic: Corona virus simulator
Replies: 41
Views: 1381

Re: Corona virus simulator

A version with grid based spacial partitioning. I hope that I did not make an error, with 6 nested for-loops and a bunch of if-statements, a bit nasty. It is a bit heavy on the drawing, so I only display 1 in 10 frames. Can be speed up further with macros, ditching the classes and testing the optima...
by badidea
Mar 29, 2020 23:03
Forum: General
Topic: Corona virus simulator
Replies: 41
Views: 1381

Re: Corona virus simulator

Virus outbreak form the patient zero perspective. <space> to trigger. Uses a semi-random walk. To do: * Sectioning to handle more persons * Social distancing control #Include "fbgfx.bi" #Include "string.bi" '========================================================================...
by badidea
Mar 29, 2020 21:06
Forum: Projects
Topic: Charger - A General FreeBASIC Framework
Replies: 11
Views: 457

Re: Charger - A General FreeBASIC Framework

angros47 wrote:Are you sure you linked the right repository? All I can see in that github is the license file, and nothing else

Development branch: https://github.com/sorucoder/Charger/tree/develop
by badidea
Mar 29, 2020 20:02
Forum: Game Dev
Topic: A simple miner program
Replies: 22
Views: 729

Re: miner demo program [classes]

Being home bound due to the Corona virus restrictions has given me some extra spare time to rewrite the miner game demo and I even used the same graphics you are using as well as trying to duplicate some of the behaviours. I thought that I would have more time now due to this virus, but still busy ...

Go to advanced search