Search found 2640 matches

by Tourist Trap
Feb 10, 2019 13:51
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize
Replies: 360
Views: 16472

Re: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize

The executable works. Can I do anything in the demo? Unfortunately not at the moment. I have to implement collision first, and then some way to allow the user a complete freedom of moves. Then the rest will be classical, I'm sure that a smooth natural moving character can be already very funny. I w...
by Tourist Trap
Feb 10, 2019 12:04
Forum: General
Topic: How to "customize" the random generator?
Replies: 18
Views: 620

Re: How to "customize" the random generator?

This code gives random integers, biassed by your arbitrary probability distribution. Hi Richard, I'm sure it must work, but for now I don't see what it does in particular. If I wanted to set 100% of probability on the number 10 for example , how do I modify your example? I'm sorry, don't get it well.
by Tourist Trap
Feb 10, 2019 12:01
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize
Replies: 360
Views: 16472

Re: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize

The file to build is bonemademandemo.bas. It's still a mess overall but it shows how this pretends to be working as a character motion engine for a game. Compile OK but crash at startup. :-( WIN 7, 64bit system Hi, thanks for testing. That's quite weird, I got a running executable without problem o...
by Tourist Trap
Feb 09, 2019 21:46
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize
Replies: 360
Views: 16472

Re: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize

For my case, setting the ScreenRes instruction to 1680x1050 is sufficient (in fullscreen mode) to ensure a properly display with a desktop 1920x1080 / 125%. Same here. Still, some people has now monitors reaching a lot higher dpi rate so I think I'll keep trying to find an automated solution. The a...
by Tourist Trap
Feb 09, 2019 21:31
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize
Replies: 360
Views: 16472

Re: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize

For a high resolution screen the recommended size of text, icons and apps by Win 10 is 125% (or even 150% depending on screen resolution) for a better readability in the Win screens. If I set this Win 10 setting to 100%, a simplest code and your fbshoot properly work (with 125%, both visualizes onl...
by Tourist Trap
Feb 09, 2019 20:19
Forum: Windows
Topic: Windows Button Image
Replies: 25
Views: 675

Re: Windows Button Image

UEZ wrote:
albert wrote:How would you create an "image" , draw on the image and then stick the image on the button?



I would use GDIPlus to create and draw

By luck, would gdi+ be dpi aware or not?
by Tourist Trap
Feb 09, 2019 20:15
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize
Replies: 360
Views: 16472

Re: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize

Thanks for your comments and suggestions! Hello Landeel, I tried to figure out how to get rid of the high dpi bug on win10. Here is my find so far. If not compiled as a project on winfbe, but rather as a standalone application without any special features (manifest is guilty I guess) you can set th...
by Tourist Trap
Feb 09, 2019 19:36
Forum: Windows
Topic: Dpi awareness functions not included?
Replies: 20
Views: 609

Dpi awareness functions not included?

Hi, apparently I can't use SetProcessDpiAware on win10. Then I'll need SetProcessDpiAwarenessContext and the constants taken as arguments. https://msdn.microsoft.com/fr-fr/C9488338-D863-45DF-B5CB-7ED9B869A5E2 Simply editing the manifest to set the awareness to false (this should be the default state...
by Tourist Trap
Feb 09, 2019 16:45
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize
Replies: 360
Views: 16472

Re: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize

Hi all, I have not gone quite far due to lack of time and many troubles those days. However, I tried to push my current state on github. I still compete for the second round. Chances are very low that I could submit anything named a game for the 1st round. Then ok, here is my repo on github: https:/...
by Tourist Trap
Feb 09, 2019 16:26
Forum: Beginners
Topic: How to reset the value when using input
Replies: 22
Views: 545

Re: How to reset the value when using input

Another possible method to clear the keyboard buffer. dim as function() as string clearbuffer=@inkey() print "Press a key to continue .." sleep clearbuffer() print "len inkey = ";len(inkey) print "Press a key to end .." sleep Nice one, I was trying with @chr(getkey()) ...
by Tourist Trap
Feb 09, 2019 16:18
Forum: General
Topic: How to "customize" the random generator?
Replies: 18
Views: 620

Re: How to "customize" the random generator?

0 1 2 3 4 4 4 4 5 6 7 8 9 10 (fourteen entries) Now, with a Rand(14) you'll get more often the 4 than any other value. Rand ( pt: offset pTable) ; set the p robability t able : pointer to zero-delimited DWORD array void Rand ( pt ) ; return weighted index Ah that's clever. I'll try ...
by Tourist Trap
Feb 09, 2019 16:01
Forum: General
Topic: How to "customize" the random generator?
Replies: 18
Views: 620

Re: How to "customize" the random generator?

Perhaps you could explain in three, four words what your program is doing? Yes of course. It is supposed to set the probability to get a number from 0 to 63 for each of these numbers. If you move the circles you change this probability for the number concerned. At first, all the number have 1/64 ch...
by Tourist Trap
Feb 09, 2019 15:16
Forum: Beginners
Topic: How to reset the value when using input
Replies: 22
Views: 545

Re: How to reset the value when using input

Former documentation text on SLEEP Thanks a lot for the work fxm! It's insisting but it doesn't leave anymore room for hesitation. Use sleep is convenient only if the keyboard buffer has not to be cleaned up. Otherwise Getkey, or one of the other form is suitable. All of this reminds me of the prin...
by Tourist Trap
Feb 09, 2019 14:16
Forum: Beginners
Topic: How to reset the value when using input
Replies: 22
Views: 545

Re: How to reset the value when using input

For 'MultiKey' , the documentation description is proper and complete about this behavior, up to proposing the only clearing method which correctly works: 'While Inkey <> "" : Wend' (loop until the Inkey buffer is empty). For multikey it's correct yes. What I meant is that...

Go to advanced search