Search found 334 matches

by xlucas
Nov 05, 2020 4:33
Forum: Beginners
Topic: Passing parameters to file
Replies: 5
Views: 1075

Re: Passing parameters to file

There is a chance that EkBass just meant he doesnt want the command line to be automatically split into parameters by FreeBasic. If that is the case, EkBass, all you have to do is just use Command instead of Command(1) , Command(2) , ... The Command function by itself without parameters will return ...
by xlucas
Nov 05, 2020 3:47
Forum: General
Topic: Sum of prime factors of positive integers
Replies: 12
Views: 1621

Sum of prime factors of positive integers

Well, just that. I made a little program because I was curious to know what it would look like graphically if I would represent the sum of the prime factors of the first positive integers. To my surprise, while the output is pretty chaotic, the numbers seem to be split in three groups: the bottom gr...
by xlucas
Sep 25, 2020 23:56
Forum: Community Discussion
Topic: Reinventing the wheel
Replies: 17
Views: 2835

Re: Reinventing the wheel

Hey, guys! I have to say I'm positively surprised on how much I've been understood. I guess I never commented much on this topic and assumed I was pretty much alone in this train of thought, but I was wrong. Thank you all very much for your comments. It's nice to realise we here have more in common ...
by xlucas
Sep 25, 2020 2:39
Forum: Community Discussion
Topic: Reinventing the wheel
Replies: 17
Views: 2835

Reinventing the wheel

Not sure if this should go here or in "Programming". It really is about programming, but it's a philosophical topic, so... that's why. Since I started programming, about 25 years ago, I have been criticised a few times for one particular thing and I've seen other being criticised for that ...
by xlucas
Aug 30, 2020 0:48
Forum: General
Topic: String garbage collection and handling thousands of strings
Replies: 5
Views: 1016

Re: String garbage collection and handling thousands of strings

Uhm... I'm not familiar with that. What do you mean by "controls"? I'm using no 3rd party library. I'm interested mainly in the GNU/Linux platform, but I would like my programs to be compilable to other platforms. Also, using just one large string might work with normal text that's paragra...
by xlucas
Aug 29, 2020 20:36
Forum: General
Topic: String garbage collection and handling thousands of strings
Replies: 5
Views: 1016

String garbage collection and handling thousands of strings

I never put much attention to what happened behind the scenes when I used variable length strings until I had to create text editors or programs that contained something similar that could potentially handle lots of strings. I had read about string garbage collection before, but it wasn't a concern ...
by xlucas
Aug 20, 2020 6:52
Forum: Community Discussion
Topic: The FreeBasic Forum and Tor
Replies: 3
Views: 1093

Re: The FreeBasic Forum and Tor

Captchas are mostly to avoid automated mass login attempts and account registrations on the forum. Exactly. That's what I mean. Well, more or less. I don't see why logging in could be a problem, but signing up might. Now, I'm already signed up here, but with Tor, I get captchas when I want to post ...
by xlucas
Aug 18, 2020 23:31
Forum: Community Discussion
Topic: The FreeBasic Forum and Tor
Replies: 3
Views: 1093

The FreeBasic Forum and Tor

Hi! A couple of times I've tried to use the forum while I'm on Tor. I regularly used to Tor browser. Unfortunately, the Forum does not seem to work well with it. Sometimes, I can't post and sometimes, I can't access it at all. It leads me to Google's recaptcha, which not only is all but private, but...
by xlucas
Aug 18, 2020 6:30
Forum: DOS
Topic: ISR + coroutines = Multitasking in DOS
Replies: 5
Views: 8130

Re: ISR + coroutines = Multitasking in DOS

That is really amazing! I didn't know all that! I wish I had been online aware of those sites earlier to have been able to contribute more. And I'm a fan of FreeBasic's graphics library. Most graphics libraries nowadays are horribly bloated for simple tasks.
by xlucas
Aug 12, 2020 1:55
Forum: Game Dev
Topic: Simplicity
Replies: 8
Views: 2481

Re: Simplicity

Nice game! Reminds me of a physical board game I had as a child called "Trabado". It's this one: https://cdn.swisscows.ch//https://cdn.batitienda.com/baticloud/images/product_e4c4699a369947ecb20677dd387c48f5_637322202959663224_0_t.jpg It surely exists outside the Spanish speaking world wit...
by xlucas
Aug 12, 2020 1:45
Forum: Game Dev
Topic: Drawing a horizon in 3D
Replies: 6
Views: 1497

Re: Drawing a horizon in 3D

But this is a cars game :P I don't expect the car to jump up that high! Yeah, you're right about rotation. I don't need to apply the azimuth to the rectangle. I figure I might just adapt the future landscape to the varying horizon height. I'm using a coordinate system with Z pointing upwards because...
by xlucas
Aug 11, 2020 22:51
Forum: Game Dev
Topic: Drawing a horizon in 3D
Replies: 6
Views: 1497

Re: Drawin a horizon in 3D

Are you using a z buffer? No. I'm just using the painter's algorithm. The world is very simple, low-poly, and 3D objects in it never overlap, so this approach is better in this case. I would like to implement a Z-buffer in future projects, though, to be able to process more complex environments. By...
by xlucas
Aug 10, 2020 23:32
Forum: Game Dev
Topic: Drawing a horizon in 3D
Replies: 6
Views: 1497

Drawing a horizon in 3D

OK... this is a very basic idea, simple to explain... so simple that I don't need to include code to make it clear, but I will post a Sub nevertheless. I made a simple and very buggy plain-triangle-based 3D engine in pure FreeBasic a couple of years ago that resembled Stunts, the 1990s cars game. Ri...
by xlucas
Aug 10, 2020 23:19
Forum: DOS
Topic: ISR + coroutines = Multitasking in DOS
Replies: 5
Views: 8130

Re: ISR + coroutines = Multitasking in DOS

Wow! I've done this in real mode many times in the past, but never over DPMI. I used to make my QB programs include an assembly routine that would be loaded to memory and then pointed to with Call Absolute. Then the whole thing could go resident. Or also, I'd make a small TSR in assembly and then in...
by xlucas
Aug 09, 2020 2:16
Forum: Beginners
Topic: [solved] GET and PUT ( graphics ) commands slow down my program[solved]
Replies: 64
Views: 10589

Re: GET and PUT ( graphics ) commands slow down my program

This is the thing. You're first reading with GET from the screen or from a buffer? The previous part of the program is somehow writing to the upper-left-most corner of the screen or buffer, then using a GET and a PUT after that is moving a lot of bytes twice. If you were to do it only once, that'd b...