Search found 1989 matches

by badidea
May 26, 2020 12:52
Forum: Community Discussion
Topic: Why did you choose FreeBASIC?
Replies: 37
Views: 1797

Re: Why did you choose FreeBASIC?

If you are collection ages, here are previous topics: [offtopic]I'm old :-) (2014) and How old are you ? (2011) . I hope that all are still healthy and alive. What I wonder is, has there ever been a female member in the 15 years (-1 day) that the forum exists? About BASIC, maybe some day the youth d...
by badidea
May 26, 2020 12:34
Forum: Game Dev
Topic: Maze 2D and 3D
Replies: 6
Views: 241

Re: Maze 2D and 3D

Maze 2d With -exx compile: Aborting due to runtime error 6 (out of bounds array access) at line 123 of test.bas::BUSCA_HUECOS() Press any key to continue . . . Variables c,f,g,h,i,j,r,t,x,y,a ? It is a good thing that they a commented. Now I only need to learn Spanish. More 2d mazes...
by badidea
May 24, 2020 17:37
Forum: Community Discussion
Topic: real need for a freebasic package for atom ide
Replies: 6
Views: 218

Re: real need for a freebasic package for atom ide

You can maybe ask on the Atom forum?
(howto make a package for linking a compiler)
by badidea
May 23, 2020 22:40
Forum: Linux
Topic: Strange behavior of input and line input
Replies: 8
Views: 248

Re: Strange behavior of input and line input

Done some more testing (on Ubuntu Mate 18.04). The problems here occurs when I keep a button pressed (for several seconds) and then try other keys. Tested with 4 different terminals: * MATE terminal: Not good * XFCE terminal: Not good * byobu: Good (I cannot remember installing this one) * xterm: Go...
by badidea
May 23, 2020 21:38
Forum: Linux
Topic: Strange behavior of input and line input
Replies: 8
Views: 248

Re: Strange behavior of input and line input

First thought: Try running it with a sleep 1 in the loop. Sorry, same behavior here, sleep 1 does not help. It could be a bug, the linux terminal in freeBASIC can work very slow in other cases as well. If I switch to graphic screen (e.g. screenres 800, 600) it works as expected here. Custom input h...
by badidea
May 23, 2020 10:42
Forum: Game Dev
Topic: Yet Another Connect Four
Replies: 9
Views: 348

Re: Yet Another Connect Four

I have added an AI, it is not the brightest however: #include "fbgfx.bi" dim shared as string debugStr '------------------------------------------------------------------------------- type int2d as integer x, y declare constructor declare constructor(x as integer, y as integer) end type co...
by badidea
May 22, 2020 19:36
Forum: Community Discussion
Topic: GW-BASIC is open source now
Replies: 16
Views: 727

Re: GW-BASIC is open source now

That Microsoft guy seems mostly busy with converting Windows to Linux.
by badidea
May 22, 2020 14:31
Forum: Community Discussion
Topic: BASIC is not BASIC anymore
Replies: 8
Views: 420

Re: BASIC is not BASIC anymore

Tourist Trap wrote:you still can be lazy and just type:

Code: Select all

var a = 1

That will do the job.

I forgot about that one. Beats C by one character :-)
I prefer the 'verbose' style however. Edit: Agreeing with 'srvaldez' .
by badidea
May 22, 2020 13:18
Forum: Community Discussion
Topic: GW-BASIC is open source now
Replies: 16
Views: 727

Re: GW-BASIC is open source now

Initial commit: 38 years ago :-)
by badidea
May 22, 2020 11:20
Forum: Community Discussion
Topic: BASIC is not BASIC anymore
Replies: 8
Views: 420

Re: BASIC is not BASIC anymore

Everyone is getting older, if you are lucky. FreeBASIC has indeed evolved to a more complex language, but you don't have to use all features. I have been using FreeBASIC for quite a while now (+10 years) and I also don't use all keywords. Proper functions and subroutines exist in BASIC for ~30 years...
by badidea
May 21, 2020 23:13
Forum: Game Dev
Topic: Yet Another Connect Four
Replies: 9
Views: 348

Yet Another Connect Four

I put my miner game on hold for now, and work on a series of smaller games. Today "Connect Four" or "Four in a Row". It has been done before, see: Velena (Four-in-a-row) My version: #include "fbgfx.bi" '-------------------------------------------------------------------...
by badidea
May 21, 2020 12:40
Forum: General
Topic: File I/O Issue - SOLVED
Replies: 11
Views: 256

Re: File I/O Issue - SOLVED

@dodicat: I also tried to replicate the error, but was unsuccessful as well. Funny thing is that I also defined MN_I8S as 123 :-) @Velatus: Always the problem with programming. One wants to do X, but one does know that it is called X. How to find documentation of X? Of even how to ask questions abou...
by badidea
May 21, 2020 10:39
Forum: General
Topic: File I/O Issue - SOLVED
Replies: 11
Views: 256

Re: File I/O Issue - SOLVED

There is this remark on the Namespace wiki page : "To access duplicated symbols defined in the global namespace, add one (or two) dot(s) as prefix: .SomeSymbol (or ..SomeSymbol if inside a With..End With block)." I usually try to avoid using the freebasic keywords as subs/function, but thi...
by badidea
May 21, 2020 9:21
Forum: General
Topic: File I/O Issue - SOLVED
Replies: 11
Views: 256

Re: File I/O Issue

99, "No matching overloaded function" is a compile error.
So it does not matter if the file exists or not.
by badidea
May 20, 2020 23:40
Forum: General
Topic: Squares
Replies: 7839
Views: 488906

Re: Squares

Awesome, just don't drive into a tunnel.

Go to advanced search