Search found 533 matches

by badidea
Oct 04, 2017 21:31
Forum: Linux
Topic: New to linux how to run FB
Replies: 8
Views: 345

Re: New to linux how to run FB

Getting used to linux will take a while. I started using linux at home (Ubuntu 10.04) 7 years ago. I have had many frustrations in those 7 years with it, and some programs are just not available or are crappy alternatives, but now I cannot image ever switching back to Windows. Virtually no spyware o...
by badidea
Oct 02, 2017 21:43
Forum: Linux
Topic: New to linux how to run FB
Replies: 8
Views: 345

Re: New to linux how to run FB

To compile: fbc test.bas To run: ./test If there is no graphics environment at all, I can imagine 'screenres 800, 600, 32' will fail. But that is unlikely if you installed Ubuntu. Also 'screenres 800, 600, 32' is not necessary for your example, but does requires an additional library for freebasic (...
by badidea
Sep 13, 2017 21:31
Forum: Beginners
Topic: "Locate" wrong position
Replies: 7
Views: 417

Re: "Locate" wrong position

Are you any relation to badidea, by any chance?

Not that i know :-) Also on linux BTW

Add ";' to omit the line break:

Code: Select all

dim as integer ymax=HiWord(Width)
For i As Integer=1 To ymax
   Locate i,20
   Print "H";
Next
sleep
by badidea
Sep 03, 2017 14:32
Forum: Community Discussion
Topic: Coding Challenge
Replies: 6
Views: 544

Re: Coding Challenge

Is there a prize to win?
by badidea
Aug 21, 2017 20:12
Forum: General
Topic: cannot find -lSDL2
Replies: 12
Views: 525

Re: cannot find -lSDL2

BasicCoder2 wrote:Like I say it is a chore finding and figuring stuff out.

Sometimes, linux is a lot easier:
Image
by badidea
Aug 17, 2017 14:00
Forum: Libraries
Topic: Winsock versus Berkeley Sockets on Windows
Replies: 11
Views: 388

Re: Winsock versus Berkeley Sockets on Windows

https://en.wikipedia.org/wiki/Berkeley_sockets : Berkeley sockets is an application programming interface (API) for Internet sockets and Unix domain sockets, used for inter-process communication (IPC). It is commonly implemented as a library of linkable modules. It originated with the 4.2BSD Unix r...
by badidea
Jul 11, 2017 7:55
Forum: Game Dev
Topic: Liquidish 3d Terrain
Replies: 6
Views: 505

Re: Liquidish 3d Terrain

I need a light switch. I get a barely visible dark red (or blue) plane.
by badidea
Jul 09, 2017 14:35
Forum: Tips and Tricks
Topic: Get CPU Informations (Name, Speed, Cores)
Replies: 9
Views: 425

Re: Get CPU Informations (Name, Speed, Cores)

Missing 1 core:

CPU: Intel(R) Core(TM) i7-5600U CPU @ 2.60GHz
3x 2601 MHz

Linux, 32-bit fbc
by badidea
Jun 19, 2017 21:24
Forum: Projects
Topic: Game Maxit (clone)
Replies: 3
Views: 359

Re: Game Maxit (clone)

Nice, making simple board- or puzzle games is satisfying. The rules are not completely clear to me yet, mostly due to laziness. Some feedback of the computer would be nice. e.g.: * Text "busy" visible (or some other indicator) when computer is thinking. * Some kind of animation of the comp...
by badidea
Jun 09, 2017 20:44
Forum: Beginners
Topic: Terrible Bugs
Replies: 13
Views: 529

Re: Terrible Bugs

Or with some constant: const as integer NUM_ENTRIES = 3 Dim i as integer dim array(1 to NUM_ENTRIES) as string dim array2(1 to NUM_ENTRIES) as string for i = 1 to NUM_ENTRIES print i input array(i) input array2(i) next i print "" print "OUTPUT" print "" for i = 1 to NUM...
by badidea
May 04, 2017 18:12
Forum: Beginners
Topic: Always for me a Big question
Replies: 28
Views: 1309

Re: Always for me a Big question

I am not aware of any language, having such *native* Python (2.7) seems to do this fine: a = 123456789123456789123456789123456789123456789123456789 b = 987654321987654321987654321987654321987654321987654321 c = a + b + 1 print c Result: 1111111111111111111111111111111111111111111111111111111 This h...
by badidea
May 04, 2017 7:30
Forum: Game Dev
Topic: Bliss - Stunts Track Editor
Replies: 10
Views: 664

Re: Bliss - Stunts Track Editor

I did the some thing ~10 years ago (in Powerbasic, I think). I'll try to find the code.
by badidea
May 01, 2017 19:59
Forum: Game Dev
Topic: Need help with 2d collision ASAP
Replies: 58
Views: 2169

Re: Need help with 2d collision ASAP

If it is acceptable the represent your character and the enemies as circles, things are maybe easier. Distance between them smaller then the two radii together? Then collision. Next step, check if mostly above, below, left or right using dx and dy (where dx = player.x-enemy.x and dy=player.y-enemy.y...
by badidea
Apr 30, 2017 15:17
Forum: Beginners
Topic: udp networking in freebasic.
Replies: 8
Views: 580

Re: udp networking in freebasic.

Do you mind if I fool with it and use it in some of my programs?

Not at all, please do fool around with it :-)

Go to advanced search