Search found 1796 matches

by angros47
Mar 04, 2021 0:22
Forum: Community Discussion
Topic: My_basic interpreter
Replies: 21
Views: 1157

Re: My_basic interpreter

How to use a FreeBasic function from My_Basic: #include "my_basic.bi" function maximum cdecl (s as any ptr, byref l as any ptr) as integer dim as integer result = MB_FUNC_OK dim as integer m = 0 dim as integer n = 0 dim as integer r = 0 mb_attempt_open_bracket(s, l) mb_pop_int(s, l, m) mb_...
by angros47
Feb 21, 2021 0:32
Forum: Libraries
Topic: MiniB3d for FreeBasic
Replies: 985
Views: 218018

Re: MiniB3d for FreeBasic

Little experiment: OpenB3D + Lua inside FreeBasic

https://www.mediafire.com/file/rue9610idhpcofi/LuaB3D.tar.gz/file

For now, Linux only, sorry. Anyway, it shows that it's possible to use OpenB3D features from a scripting language, as well.
by angros47
Feb 18, 2021 9:40
Forum: General
Topic: Dodicat Zlib
Replies: 29
Views: 1044

Re: Dodicat Zlib

Albert, the reason s+= chr( int( rnd *128 ) ) can be compressed is that it is not completely random: the range of int( rnd *128 ) is 0-127 (so, 7 bits), while a byte is 0-255 (8 bits): one bit (the first one) is never used, it is always set to 0, so it can be discarded with no data loss. The Zlib li...
by angros47
Feb 14, 2021 21:54
Forum: General
Topic: FB Examples
Replies: 16
Views: 336

Re: FB Examples

@srvaldez

You are pointing at the libraries for windows, as far as I know Albert uses Linux. Anyway: my solution is for Linux, yours is for Windows, in case other people will have the same issue
by angros47
Feb 14, 2021 21:47
Forum: General
Topic: FB Examples
Replies: 16
Views: 336

Re: FB Examples

Are you using Linux? You should likely do:

Code: Select all

sudo apt install zlib1g-dev


to install the zlib library
by angros47
Feb 14, 2021 18:28
Forum: General
Topic: FB Examples
Replies: 16
Views: 336

Re: FB Examples

All examples are tested, as far as I know, before a version of FreeBasic is published, so they have been written correctly.

Which ones are the examples that don't compile for you?
by angros47
Feb 13, 2021 12:08
Forum: General
Topic: Dodicat Zlib
Replies: 29
Views: 1044

Re: Dodicat Zlib

Dodicat, in my opinion one of the reasons why he got banned was that you kept encouraging him.
by angros47
Feb 12, 2021 19:47
Forum: General
Topic: Dodicat Zlib
Replies: 29
Views: 1044

Re: Dodicat Zlib

Albert, you already got banned several times for that.
by angros47
Feb 10, 2021 17:56
Forum: Game Dev
Topic: experimenting with sprites
Replies: 21
Views: 803

Re: experimenting with sprites

Years ago I wrote a tutorial for games set in multiple rooms: http://back2basic.phatcode.net/?Issue-%231/Multi-room-Games

Let me know if it helps you, both for your adventure and for your sprite-based game
by angros47
Feb 10, 2021 0:24
Forum: General
Topic: I Left The JOKE! Forum https://www.qb64.org/forum By Anthony.R.Brown
Replies: 1
Views: 138

Re: I Left The JOKE! Forum https://www.qb64.org/forum By Anthony.R.Brown

Please, you shouldn't do cross posting, you already sent the same message here: http://petesqbsite.com/phpBB3/viewtopic.php?f=4&t=14860

Anyway, FreeBasic forum got rid of the Off Topic section years ago, so are you sure you want to be here?
by angros47
Feb 09, 2021 21:31
Forum: Game Dev
Topic: Conway's game of life
Replies: 7
Views: 312

Re: Conway's game of life

Yes, it's the most common mistake made when writing a Conway's life program: using the same array both as source and destination, because in that way some cells are overwritten when they are still needed to compute the values for other cells. The same thing is necessary when writing a convolution fi...
by angros47
Feb 09, 2021 18:13
Forum: Game Dev
Topic: An attempt to create a first person adventure game engine
Replies: 38
Views: 1093

Re: An attempt to create a first person adventure game engine

That kind of graphic style reminds me of the "Deep Sleep" saga, for some reason. Thinking of that, I decided to make this simple graphic effect to simulate a flashlight in a dark room: screenres 800, 600, 32, 2 screenset 1,0 dim room as any ptr room=imagecreate(800,600) bload "05-4.bm...
by angros47
Feb 07, 2021 22:33
Forum: Community Discussion
Topic: Sound (description)
Replies: 14
Views: 515

Re: Sound (description)

Correction: the command PLAY can play more than one note at time: it supports chords, by grouping notes inside curly brackets, and it allows to play up to 16 channels at the same time
by angros47
Feb 07, 2021 0:52
Forum: Libraries
Topic: MiniB3d for FreeBasic
Replies: 985
Views: 218018

Re: MiniB3d for FreeBasic

Fixed

Go to advanced search