Search found 224 matches

by gothon
Feb 15, 2019 0:44
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize
Replies: 360
Views: 25928

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

Is it possible to have the README file open with NotePad? The README.md file is made to be displayed on github.com. I actually edit the README file in Notepad myself however git automatically converts the CR+LF line endings to LF when I push my changes to github.com. Moved the extracted .zip folder...
by gothon
Feb 14, 2019 23:55
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize
Replies: 360
Views: 25928

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

Fast running elegant & expressive Be my Valentine, you Adaptable Self-Hosting Interoperable Compiler Those participating in round 2, I would appreciate your reconfirmation of the participation, and update on your entry status. Thanks. I will participate in Round 2 here is my Work In Progress (WI...
by gothon
Feb 12, 2019 15:44
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize
Replies: 360
Views: 25928

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

Sorry guys for the delay with listing the final entries. I have problem running Zamaster's The Secret Garden, and I'm still not sure how to go about it. Is it playable for you? https://drive.google.com/file/d/1rqyCeBhQj2z7daW64eKGSQlhtGlAc_YA/view?usp=sharing After I choose N to "Fullscreen (r...
by gothon
Feb 04, 2019 23:02
Forum: Libraries
Topic: libtcc 0.9.26 dynamic Windows Linux 32/64-bit.
Replies: 7
Views: 3285

Re: libtcc 0.9.26 dynamic Windows Linux 32/64-bit.

@MrSwiss Thank you for catching that. I was aware that the FB Integer type changes size to match pointer size, but the C end of things is harder to track down because of more compilers and variation between them including the common practice of 'int' being 16bits in 16bit builds. I have edited my ea...
by gothon
Feb 04, 2019 22:47
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize
Replies: 360
Views: 25928

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

Thank you for warning me of the mistake, I'm ashamed. http://www.hsgi.cz/dokumenty/sctank-zip/ Corrected version. Thank you, your game now runs without reporting any runtime errors! Landeel, nice that you have a 2 player mode and a full gamepad mapping support, however the mapping doesn't seem to w...
by gothon
Feb 04, 2019 2:54
Forum: Libraries
Topic: libtcc 0.9.26 dynamic Windows Linux 32/64-bit.
Replies: 7
Views: 3285

Re: libtcc 0.9.26 dynamic Windows Linux 32/64-bit.

Also, does anyone know of a way to prevent libtcc from trying to locate and link the file 'libtcc1.a' to my memory compiled string at runtime? If I could just stop it from doing that, the build would be entirely in memory and have no need to read the disk at all once my program is running.
by gothon
Feb 04, 2019 2:45
Forum: Libraries
Topic: libtcc 0.9.26 dynamic Windows Linux 32/64-bit.
Replies: 7
Views: 3285

Re: libtcc 0.9.26 dynamic Windows Linux 32/64-bit.

Thank you D.J.Peters! I have been using this, and I can say that it is a very powerful tool. There are however 4 [err 3] minor issues I have with the bindings you made 'tcc_dynamic.bi'. 1) Memory leak! Line 133 is if tcc_new then state=tcc_new() Every call to tcc_new should be paired with a correspo...
by gothon
Feb 04, 2019 1:46
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize
Replies: 360
Views: 25928

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

Hi, maachal I have made a debug build of your game, fbc -g -exx -s console "sctank.bas"" but when I run sctank.exe I get Aborting due to runtime error 0 () at line 1259 of sctank.bas::() Also, ssjx, Pitto, and Landeel I have played your games aswell. Good Job Everyone! ssjx, interesti...
by gothon
Mar 23, 2018 0:06
Forum: Community Discussion
Topic: FreeBASIC and the Raspberry Pi ?
Replies: 69
Views: 6810

Re: FreeBASIC and the Raspberry Pi ?

Yes, it looks like install.sh may not be in the current folder. Type 'pwd' to print the working directory (current folder). To list the contents of the current folder type 'ls' (this is the linux 'dir' command). You can get a wealth of information on terminal commands by using 'man' to look at the m...
by gothon
Aug 18, 2016 5:44
Forum: Community Discussion
Topic: [solved]Math Guru II How to make a Normal little bit random FAST?
Replies: 59
Views: 5029

Re: Math Guru II How to make a Normal little bit random FAST?

Ok here is some code Type Vect3D As Single X, Y, Z End Type Type Mat3x3 M(2, 2) As Single End Type 'Multiply two 3x3 Matricies possably backwards? :P Function MatMult3x3(A As Mat3x3, B As Mat3x3) As Mat3x3 Dim C As Mat3x3 For I As Integer = 0 To 2 For J As Integer = 0 To 2 For K As Integer = 0 To 2 ...
by gothon
Aug 18, 2016 1:25
Forum: Community Discussion
Topic: [solved]Math Guru II How to make a Normal little bit random FAST?
Replies: 59
Views: 5029

Re: Math Guru II How to make a Normal little bit random FAST?

@dafhi @gothon first you think it's clever but in practice it looks different. If you get any surface normal (it points in any direction) 1) how you would select a precalculated random vector ? (as a minimum you have to get the right qudrant from sphere to chose one) I suggested pre-computing a ran...
by gothon
Aug 18, 2016 0:56
Forum: Community Discussion
Topic: [solved]Math Guru II How to make a Normal little bit random FAST?
Replies: 59
Views: 5029

Re: Math Guru II How to make a Normal little bit random FAST?

Another trick you might use is to replace the sqr() function directly. Since all your vectors are already nearly unit length when you re-normalize them, you can approximate sqr(x) or 1/sqr(x) at x = 1 by using the tailor series expansion. Depending on the number of terms you use it could be faster t...
by gothon
Aug 17, 2016 23:20
Forum: Community Discussion
Topic: [solved]Math Guru II How to make a Normal little bit random FAST?
Replies: 59
Views: 5029

Re: Math Guru II How to make a Normal little bit random FAST?

May be it exist a small random rotation or other trigonometric trick without the need to normalized again. First all small random vectors around a given normal is a kind cone. Looks like one inverse sqr() and three mul's to normlize the new random vector are faster then rotating any precalculated v...
by gothon
Oct 15, 2015 16:19
Forum: General
Topic: issue with ulongint maximum boundary value in a constant
Replies: 9
Views: 1374

Re: issue with ulongint maximum boundary value in a constant

An easy way to get ULongInt maximum is by casting it from the signed value -1. 2^64 is one larger than the largest value and essentially overflows to 0. So if you take 0 - 1 it effectively under-flows producing the largest value. So -1 actually is really the formula 2^64 - 1 in disguise if you think...
by gothon
Sep 12, 2015 4:50
Forum: Tips and Tricks
Topic: Infinite sprites in pure FreeBasic
Replies: 6
Views: 1112

Re: Infinite sprites in pure FreeBasic

The circle faces are at war! Who will win? ScreenRes 800, 600, 32 Dim Img As Any Ptr = ImageCreate(32, 32, RGBA(255, 0, 255,0)) Circle Img, (16, 16), 15, RGB(255, 255, 0), , , 1, F Circle Img, (10, 10), 3, RGB( 0, 0, 0), , , 2, F Circle Img, (23, 10), 3, RGB( 0, 0, 0), , , 2, F Circle Img, (16, 18),...

Go to advanced search