Search found 35 matches

by RetardedAndProud
Jun 11, 2025 6:50
Forum: Beginners
Topic: Calculating the size of a sprite sheet.
Replies: 8
Views: 670

Re: Calculating the size of a sprite sheet.

If you want the sprite sheet to always be a square, how about...

Code: Select all

#define CEIL(x) (Sgn(x)*(Int(Abs(x)) + Sgn(x)))

Dim As Integer lcount = 8

Print CEIL(Sqr(lcount))
by RetardedAndProud
Jun 08, 2025 10:59
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 192
Views: 87631

Re: Audio library for FreeBasic - Features

Hi, I'm no expert whatsoever especially MIDI or sound related but I think the problem is not the size, but the "Roland Drums" track in that particular file and possibly in general. I'm sure I read somewhere that Roland Drums doesn't always stick to the MIDI GM standard. I tested my theory ...
by RetardedAndProud
Jun 06, 2025 0:04
Forum: Game Dev
Topic: Catfish Bouncer - Raylib minigame by Syn9
Replies: 3
Views: 795

Re: Catfish Bouncer - Raylib minigame by Syn9

Nice, a very good, clear and well presented easy to follow piece of code showing how to use Raylib 5 in FreeBASIC.

Just for information, I built and tested using: FreeBASIC Compiler - Version 1.20.0 (2025-03-10), built for linux-x86_64 (64bit)
by RetardedAndProud
Jun 03, 2025 7:06
Forum: Community Discussion
Topic: The end of SyntaxBomb forum
Replies: 7
Views: 1003

Re: The end of SyntaxBomb forum

This could be the rebirth of https://www.dbfinteractive.com/ to fill the void, but the forum software need updating as it's so unstable.
by RetardedAndProud
Jun 03, 2025 7:00
Forum: Linux
Topic: Which Linux should I use?
Replies: 4
Views: 1002

Re: Which Linux should I use?

You could also search for some flavour that has a live CD/DVD/USB image that you can try to get a basic idea of what might be good for you before you jump into an install.
by RetardedAndProud
Jun 03, 2025 5:00
Forum: Community Discussion
Topic: The end of SyntaxBomb forum
Replies: 7
Views: 1003

Re: The end of SyntaxBomb forum

Such a shame we have lost another forum, especially how I myself detest Discord. Not one to cause upset or rumours but I caught the site in an "under construction" mode before the current home page state, and it's message was along the lines of that Qube had had enough of the childish squa...
by RetardedAndProud
May 31, 2025 10:34
Forum: Community Discussion
Topic: Bug?
Replies: 16
Views: 1968

Re: Bug?

Interestingly, negative works...

Code: Select all

	SCREENRES 800, 600
	DIM a AS DOUBLE
	a = 1E-10
	LINE (800, 600) - (a, a)
	SLEEP
by RetardedAndProud
May 22, 2025 19:06
Forum: Libraries Questions
Topic: Converting and using const char * strings.
Replies: 2
Views: 613

Re: Converting and using const char * strings.

Dereference SDL_GetError()...

Code: Select all

Print #EF, "SDL_LoadBMP() failed "; *SDL_GetError()
by RetardedAndProud
Apr 13, 2025 5:04
Forum: Game Dev
Topic: The Endless Metal Rooms
Replies: 4
Views: 1388

Re: The Endless Metal Rooms

Point to note... In its current state, it is 32bit only. For example the bmpload function uses Integer for reading the width & height and Integer on 64bit is 64bits wide, this reads 8 bytes rather than the 4 required and thus needs to be Long for inter architecture compatibility. There maybe els...
by RetardedAndProud
Mar 29, 2025 18:43
Forum: Community Discussion
Topic: Is anyone using freebasic as a macro assembler?
Replies: 6
Views: 1442

Re: Is anyone using freebasic as a macro assembler?

Just received these error message 100 times, C:\FreeBASIC_CODE\ASM_ADD.asm: Assembler messages: C:\FreeBASIC_CODE\ASM_ADD.asm:28: Error: too many memory references for `mov' C:\FreeBASIC_CODEt\ASM_ADD.asm:28: Error: ambiguous operand size for `add' The word "add" is reserved? Put [ target...
by RetardedAndProud
Mar 29, 2025 14:38
Forum: Community Discussion
Topic: Is anyone using freebasic as a macro assembler?
Replies: 6
Views: 1442

Re: Is anyone using freebasic as a macro assembler?

Fixable? I think that would turn FreeBASIC into something akin to an Acorn/BBC BASIC with it's inbuilt assembler, is that what you are thinking? If so, just use BBCSDL/BB4W. You can always include GAS directives (.rept & .endr) for example into the assembly block thus... This would produce the c...
by RetardedAndProud
Mar 29, 2025 1:51
Forum: General
Topic: Need multiple separate Random Number Generators
Replies: 6
Views: 1436

Re: Need multiple separate Random Number Generators

Maybe?.... https://www.freebasic.net/wiki/ExtLibgsl https://www.gnu.org/software/gsl/doc/html/rng.html Looks like you can create multiple RNG's. Also look in FreeBASIC headers gsl/gsl_rng.bi Here's a quick simple conversion of one of their C examples. #include "gsl/gsl_rng.bi" DIM T AS CON...
by RetardedAndProud
Mar 28, 2025 21:09
Forum: Community Discussion
Topic: Is anyone using freebasic as a macro assembler?
Replies: 6
Views: 1442

Re: Is anyone using freebasic as a macro assembler?

Freebasic with inline asm sounds as a masm alternative, am I right? No. For one example... DIM i AS INTEGER FOR i = 0 TO 99 ASM nop END ASM NEXT i Will not inline 100 nop's into the compiled code, it loops over 100 single nop intructions. Neither specifying -funroll-all-loops to gcc will produce th...
by RetardedAndProud
Mar 27, 2025 18:04
Forum: General
Topic: error 91
Replies: 2
Views: 937

Re: error 91

If it helps...

Just a Windows problem by the looks of it. No errors on Linux.