Search found 404 matches

by lizard
Jun 05, 2018 19:34
Forum: General
Topic: time zone conversion
Replies: 4
Views: 987

Re: time zone conversion

A timezone is basically a special time difference from Greenwich (GMT). So one could calculate the difference from his own timezone to GMT and the difference of the other zone with this table after wiki: ' timezones.bas dim as string tzone(589), tzoffs(589) tzone(000) = "Zulu":tzoffs(000) ...
by lizard
Jun 05, 2018 4:24
Forum: Game Dev
Topic: Gather the gold
Replies: 4
Views: 1853

Re: Gather the gold

Works all here on Mint 18.3 64 bit (i suppose you are on windows). Yes, thats the game! As far i remember, the enemies always moved towards player. Player could dig holes to stop them. But the holes closed after some time. Climbing the upper ladder to top leaded to next level. But these days it woul...
by lizard
Jun 03, 2018 14:44
Forum: Sources, Examples, Tips and Tricks
Topic: Cairo Clock Example
Replies: 45
Views: 7205

Re: Cairo Clock Example

"Toy fonts" is named not because i played around some time to find out, but because they are a bit limited. They are not fully described in docs and with google i found not much. Seems they are builtin, because i have no fonts with these names installed. So far i found five fonts each with...
by lizard
Jun 01, 2018 19:01
Forum: Game Dev
Topic: Roll out the barrel
Replies: 15
Views: 3680

Re: Roll out the barrel

From all the thousands games i tried, i played very few to the end. Another was "Populus". Simply amazing. And some early of the C & C series like "Red Alert". Sadly some became annoying at the end. Last years i lost interest for gaming. Dont know why. One gets enough from ev...
by lizard
Jun 01, 2018 18:33
Forum: Game Dev
Topic: Roll out the barrel
Replies: 15
Views: 3680

Re: Roll out the barrel

Dr.Creep has been rewritten several times i believe: https://www.google.de/search?q=castles+of+dr.+creep&client=ubuntu&hs=bIC&source=lnms&tbm=isch&sa=X&ved=0ahUKEwio3oWLjLPbAhUQaFAKHb-RDJcQ_AUICygC&biw=1280&bih=825 Remembering i solved all levels, and they are huge. B...
by lizard
Jun 01, 2018 9:32
Forum: Game Dev
Topic: Roll out the barrel
Replies: 15
Views: 3680

Re: Roll out the barrel

Works here on Linux 64. Fascinating with such few lines to realize this game. There is not much left to make i complete. Player sprite and goal to reach. And then next level. And next. And dozens more... Then you could do a "Loderunner", too. Played this some time. Or "Castles of Dr. ...
by lizard
May 31, 2018 17:22
Forum: Sources, Examples, Tips and Tricks
Topic: Cairo Clock Example
Replies: 45
Views: 7205

Re: Cairo Clock Example

A nice feature is having text outlines. :-) ' cairo_textoutline.bas ' Translated from the C example written by Øyvind Kolås ' Public domain from here ' https://www.cairographics.org/samples/ #include once "cairo/cairo.bi" Const SCREEN_W = 300 Const SCREEN_H = 250 CONST M_PI = 4 * ATN(1) Sc...
by lizard
May 27, 2018 5:52
Forum: Libraries & Headers
Topic: Astro.com astronomical / astrological calculations
Replies: 30
Views: 7097

Re: Astro.com astronomical / astrological calculations

dodicat wrote:As you can see, my console codepage gets the degree symbol wrong.
Right, added screenres and replaced the degree symbol with chr(248).

Found the mistake at Windows version and replaced swisseph.bi and swe_next_eclipse.bas. Now all works here on Linux and Windows.
by lizard
May 25, 2018 20:51
Forum: Libraries & Headers
Topic: Astro.com astronomical / astrological calculations
Replies: 30
Views: 7097

Re: Astro.com astronomical / astrological calculations

Thanks for your interest! Tried for hours, but could get it not working on Windows 32. But it worked last year.
by lizard
May 25, 2018 20:07
Forum: Libraries & Headers
Topic: Astro.com astronomical / astrological calculations
Replies: 30
Views: 7097

Re: Astro.com astronomical / astrological calculations

Ever needed to know where and when the heck next total eclipse will happen? Swisseph can give the answer. ' swe_next_eclipse.bas ' Example of a typical eclipse calculation from here (chap. 6): ' https://www.astro.com/swisseph/swephprg.htm?lang=g#_Toc505244854 ' translated to FreeBASIC 1.05 ' added a...
by lizard
May 25, 2018 10:49
Forum: Libraries & Headers
Topic: Astro.com astronomical / astrological calculations
Replies: 30
Views: 7097

Re: Astro.com astronomical / astrological calculations

I must confess, it is confusing, because for geographical coordinates the same words are used, longitude and latitude. In manual description says: int swe_calc_ut ( double tjd_ut, int ipl, int iflag, double* xx, char* serr), where tjd_ut =Julian day, Universal Time ipl =body number iflag =a 32 bit i...
by lizard
May 24, 2018 18:11
Forum: Community Discussion
Topic: Hiding Information in Plain Text
Replies: 1
Views: 715

Re: Hiding Information in Plain Text

Now we have to care what our font tells about us...
by lizard
May 24, 2018 16:44
Forum: Libraries & Headers
Topic: Astro.com astronomical / astrological calculations
Replies: 30
Views: 7097

Re: Astro.com astronomical / astrological calculations

Here is a part of the data sheet for today: Transite Datum: 24. Mai 2018 UT: 0:00:00 Jul.Day 2458262.500800 Planet Länge tgl. Bew. Breite Deklination Sonne 2°47'42" 57'40" 0° 0' 0" N 20°42'53" N Mond 26° 9'54" 13°26'37" 3°45'48" N 4°58'39" N Merkur 18° 0'29&qu...
by lizard
May 24, 2018 16:03
Forum: Libraries & Headers
Topic: Astro.com astronomical / astrological calculations
Replies: 30
Views: 7097

Re: Astro.com astronomical / astrological calculations

You have a old version with include "swephexp.bi" i have replaced again with "swisseph.bi". But sadly this dont work on Win32.

But your example works here.