Search found 1845 matches

by angros47
Jul 23, 2021 20:16
Forum: Game Dev
Topic: List of *FREE* game programming resources
Replies: 83
Views: 112584

Re: List of *FREE* game programming resources

BESCII font: https://github.com/damianvila/font-bescii

A nice retro-style font, that reminds Commodore, Amstrad CPC or Famicom computers
by angros47
Jul 23, 2021 19:35
Forum: Tips and Tricks
Topic: Redefining internal font (a.k.a. custom characters) in graphic mode
Replies: 0
Views: 22

Redefining internal font (a.k.a. custom characters) in graphic mode

I found this code: https://www.freebasic.net/forum/viewtopic.php?f=7&t=20766 and I realized that it is possible to access the internal font used in the graphic mode. So, I wrote this: type Font w as long h as long d as any ptr end type enum FB_FONT_8 = 0, FB_FONT_14 FB_FONT_16 end enum extern Fo...
by angros47
Jul 21, 2021 10:53
Forum: Tips and Tricks
Topic: Vertical raster bars
Replies: 0
Views: 77

Vertical raster bars

A classic old school effect: const w=800 const h=600 screenres w,h,32 dim bar(10) as long 'the vertical raster bar itself bar(0)=rgb(255,255,0) for i as integer=1 to 9 bar(i)=rgb(255,0,0) next bar(10)=rgb(128,0,0) screenlock do dim source(w) as long 'the line that will be copied along all the screen...
by angros47
Jul 20, 2021 20:40
Forum: Linux
Topic: Transparent window
Replies: 1
Views: 80

Transparent window

I borrowed some code from the utility transset, to be able to set the window transparency. It should work in OpenGL, too #include once "X11/Xlib.bi" #include once "X11/Xatom.bi" #include once "X11/Intrinsic.bi" #include once "X11/extensions/shape.bi" #include ...
by angros47
Jul 20, 2021 10:01
Forum: Windows
Topic: Transparent window
Replies: 0
Views: 51

Transparent window

I found the example on old QB64 forum, and adapted it: #include"windows.bi" 'Level: 0 = transparent 255=opaque SUB SetWindowOpacity (h AS integer, Level as ubyte) CONST G = -20 DIM Msg AS LONG dim hWnd as any ptr=cast(any ptr, h) Msg = GetWindowLong(hWnd, G) Msg = Msg OR WS_EX_LAYERED SetW...
by angros47
Jul 13, 2021 21:16
Forum: Libraries
Topic: MiniB3d for FreeBasic
Replies: 995
Views: 234725

Re: MiniB3d for FreeBasic

Since I got no answer, I assume you were talking about the windows version, so I built and added it.
by angros47
Jul 13, 2021 0:14
Forum: Windows
Topic: Hiding data "behind" files on NTFS
Replies: 1
Views: 146

Hiding data "behind" files on NTFS

I have found this article: https://www.howtogeek.com/howto/windows-vista/stupid-geek-tricks-hide-data-in-a-secret-text-file-compartment/ I hope it can give interesting ideas to someone. Perhaps it can be used to hide program flags, for example to save a game and make harder for the user to mess with...
by angros47
Jul 12, 2021 23:49
Forum: Libraries
Topic: MiniB3d for FreeBasic
Replies: 995
Views: 234725

Re: MiniB3d for FreeBasic

For Windows or Linux?
by angros47
Jul 07, 2021 23:56
Forum: Libraries
Topic: MiniB3d for FreeBasic
Replies: 995
Views: 234725

Re: MiniB3d for FreeBasic

Version 1.26 is online:

https://sourceforge.net/projects/minib3d/files/

It includes the bugfixes I mentioned, and some other ones. It also fixes some dependency issues on Windows
by angros47
Jul 06, 2021 18:09
Forum: Projects
Topic: Freebasic operating system
Replies: 3
Views: 334

Re: Freebasic operating system

To run the compiler, you would need to port at least: - basic I/O functions (to read and write on files, and to display error messages) - basic file functions (check if file exists, open it, create a new file to write in it, close it, call external programs) - string functions (to parse the source c...
by angros47
Jul 05, 2021 23:16
Forum: Libraries
Topic: MiniB3d for FreeBasic
Replies: 995
Views: 234725

Re: MiniB3d for FreeBasic

This one is not written in FreeBasic, but I hope it's still of interest to someone: https://openb3d-online.sourceforge.io/ It is possible to write programs in BASIC from a web page, using OpenB3D. The interpreter can be used from FreeBasic too ( https://www.freebasic.net/forum/viewtopic.php?f=17&...
by angros47
Jul 05, 2021 21:21
Forum: Projects
Topic: Freebasic operating system
Replies: 3
Views: 334

Re: Freebasic operating system

I am not sure if I understood right: your programs are low level enough to work without the runtime, but you want to port the compiler to your OS (so you would be able to compile from inside your new operating system)? Usually, when porting a compiler, the opposite is done: first you port the runtim...
by angros47
Jun 25, 2021 10:18
Forum: Tips and Tricks
Topic: Starfield with trails
Replies: 3
Views: 384

Re: Starfield with trails

tau is a math constant: it is equal to 2*pi, or 6.28318530718
by angros47
Jun 19, 2021 18:42
Forum: Tips and Tricks
Topic: Starfield with trails
Replies: 3
Views: 384

Starfield with trails

Very simple starfield effect, made using the old school trick of color cycling. Use PgUp and PgDown to set the speed. const w=800: const h=600 screenres w, h, 8 Dim pal(0 To 255) As Integer dim as single x, y, c, sx, sy, sc c=1.0 for i as integer=1 to 300 x=w/2: y=h/2 sx=(rnd()*2.0)-1.0 sy=(rnd()*2....
by angros47
Jun 19, 2021 10:46
Forum: Community Discussion
Topic: FreeBASIC 1.08.1 and 1.09.0 Development
Replies: 21
Views: 1490

Re: FreeBASIC 1.08.1 and 1.09.0 Development

Speaking about GOTO, I was wondering: has anyone considered adding the computed goto? Basically, a way to get a code pointer not just from subroutines, but also from line labels. If the line label is followed by a RETURN (and it was meant to be called with GOSUB), it could be called by invoking the ...

Go to advanced search