Search found 33 matches

by maachal
Mar 08, 2020 14:55
Forum: General
Topic: Cross compiling, from Windows 64bit create 64bit lib for Android
Replies: 1
Views: 278

Cross compiling, from Windows 64bit create 64bit lib for Android

I use Standalone FB 1.07.1 on Win7 64bit. I tested the java lib 32bit example: ..\FB32\examples\other-languages\Java\JNI\mylib.bas It works perfectly. 32bit Java loads and uses 32bit DLLs. I tested the java lib 64bit example: ..\FB64\examples\other-languages\Java\JNI\mylib.bas - but missing: ..\FB64...
by maachal
Mar 02, 2019 16:23
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition Community Poll (ROUND 1)
Replies: 12
Views: 3005

Re: "A Love Letter To FreeBASIC" Game Dev Competition Community Poll (ROUND 1)

I'm the last one. Mission accomplished! :-D Cite from: https://www.freebasic.net/forum/viewtopic.php?f=17&t=27069&p=257917#p257917 I came across this thread about a week ago. I have never programmed games, but I tried it. ;-) There is no time for fun so it was quickly programmed. My dream is...
by maachal
Feb 18, 2019 0:05
Forum: Tips and Tricks
Topic: Bit duplication
Replies: 17
Views: 1805

Re: Bit duplication

X:\fb\doublebits>doublebits-other32.exe Number 0-255: 170 in: 170 - 10101010 testing 100000000 iterations 3.825298 seconds, badidea freeBASIC 1, out: 52428 - 1100110011001100 5.056277 seconds, badidea freeBASIC 2, out: 52428 - 1100110011001100 1.040516 seconds, jj2007 assembly, out: 52428 - 11001100...
by maachal
Feb 17, 2019 23:48
Forum: Tips and Tricks
Topic: Bit duplication
Replies: 17
Views: 1805

Re: Bit duplication

@coderJeff Speed at 100 million iterations: X:\fb\doublebits>doublebits-other32.exe Number 0-255: 170 in: 170 - 10101010 testing 100000000 iterations 3.825298 seconds, badidea freeBASIC 1, out: 52428 - 1100110011001100 5.056277 seconds, badidea freeBASIC 2, out: 52428 - 1100110011001100 1.040516 sec...
by maachal
Feb 17, 2019 18:18
Forum: Tips and Tricks
Topic: Bit duplication
Replies: 17
Views: 1805

Re: Bit duplication

This is all still freebasic syntax, but it looks suspiciously like asm :-) Yes. :-) Nice piece of code, thank you. What's wrong with assembly? You want it fast, right? Yes, fast. Nice piece of code, thank you. ;-) But if the other people in the group are working on the code who do not understand th...
by maachal
Feb 16, 2019 23:59
Forum: Tips and Tricks
Topic: Bit duplication
Replies: 17
Views: 1805

Bit duplication

Duplicate bits 0->00, 1->11. Example: 1001 0001 -> 11000011 00000011 'similarly rr and test carry cls dim as ubyte i dim as ushort o = 0, c = 0 input "Number 0-255: ", i print "in: " & i & " - " & bin(i, 8) do 'print i & " - " & i mod 2 &am...
by maachal
Feb 14, 2019 13:58
Forum: Tips and Tricks
Topic: GDIPlus ASCII GIF Anim Player [Windows only]
Replies: 8
Views: 1504

Re: GDIPlus ASCII GIF Anim Player [Windows only]

The original image also works if https://i.gifer.com/embedded/download/6H3K.gif (not: https://i.gifer.com/6H3K.gif) is used. It takes a moment to wait. A very nice example.
by maachal
Feb 14, 2019 13:43
Forum: General
Topic: Keyboard Function not detecting F10
Replies: 4
Views: 583

Re: Keyboard Function not detecting F10

function GetKeyNB() as integer dim as string key key = inkey select case len(key) case 0 return 0 case 1 return key[0] case 2 return key[0] + (key[1] shl 8) end select end function dim key as integer 'add Do key = GetKeyNB If key Then 'PrintKeyDetails(Hex(key)) 'remove Print(Hex(key)) 'add End If L...
by maachal
Feb 14, 2019 8:40
Forum: General
Topic: Keyboard Function not detecting F10
Replies: 4
Views: 583

Re: Keyboard Function not detecting F10

Is not it better to use multikey? Scancode &h44.
by maachal
Feb 14, 2019 8:28
Forum: Tips and Tricks
Topic: GDIPlus ASCII GIF Anim Player [Windows only]
Replies: 8
Views: 1504

Re: GDIPlus ASCII GIF Anim Player [Windows only]

Beware, this server (request https://i.gifer.com/6H3K.gif) does not return a clean GIF, but a full page with a video. :-(
by maachal
Feb 12, 2019 20:50
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize
Replies: 360
Views: 32394

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 maachal
Feb 12, 2019 12:29
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize
Replies: 360
Views: 32394

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

... I couldn't get far as I couldn't get past a higher wall. If it is near the bust, take it (key X), put it on the wall, place it (key X), jump on the bust (key Z), and then onto the high wall. The bust will then collapse. Or other tip: You can also teleport with a bust, then drop a bust on anothe...
by maachal
Feb 12, 2019 11:30
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize
Replies: 360
Views: 32394

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 The game is functional and very nice: h...
by maachal
Feb 11, 2019 11:47
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize
Replies: 360
Views: 32394

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

Or to sound the movement of the tank / horse? Something like tick, tick, tick, ...? This is what I tried, and the sound of the gunfire dampened the sound of the tank / horse movement. :-D Any idea would be ok, even just the name of the key pressed so that we know what we do. Without background, we'...

Go to advanced search