Search found 1359 matches

by badidea
Jun 26, 2019 18:29
Forum: General
Topic: suker lump desolve sim try
Replies: 5
Views: 103

Re: suker lump desolve sim try

MrSwiss wrote:Read comments in code ...
Recoded from scratch (faster than correcting):
...

That is not sugar, that is Swiss cheese.
by badidea
Jun 26, 2019 17:25
Forum: General
Topic: suker lump desolve sim try
Replies: 5
Views: 103

Re: suker lump desolve sim try

From using point outside the window/screen.
Reference manual wrote:If the coordinates are off-screen or off-buffer, -1 is returned

-1 is FF FF FF FF in hex is white.
by badidea
Jun 24, 2019 22:40
Forum: General
Topic: Squares
Replies: 6658
Views: 377004

Re: Squares

No, stop using these ancient units if you want to get anywhere.
They are like roman numerals, still around, but highly impractical to work with.
by badidea
Jun 24, 2019 22:05
Forum: Community Discussion
Topic: FBC's Cairo clock example error
Replies: 52
Views: 1482

Re: FBC's Cairo clock example error

Add a sleep 1 (after screenunlock)
by badidea
Jun 24, 2019 20:05
Forum: Community Discussion
Topic: FBC's Cairo clock example error
Replies: 52
Views: 1482

Re: FBC's Cairo clock example error

Nice, you are the Cairo expert here now :-)
by badidea
Jun 23, 2019 17:35
Forum: General
Topic: Squares
Replies: 6658
Views: 377004

Re: Squares

Some ventilation code :-) const as single PI = 4 * atn(1) const as integer W = 800, H = 600 screenres W, H, 32 dim as single angleShift, a1, a2 dim as single angleStep = PI / 4 while inkey = "" screenlock line(0, 0)-(W-1, H-1), rgb(0, 0, 0), bf for angle as single = 0 to PI * 2 - (angleSte...
by badidea
Jun 23, 2019 16:56
Forum: General
Topic: Squares
Replies: 6658
Views: 377004

Re: Squares

That is just because humans cannot hear pressure waves below 20 Hz.
by badidea
Jun 22, 2019 19:16
Forum: General
Topic: Squares
Replies: 6658
Views: 377004

Re: Squares

Sounds like: "I reject your reality and substitute it with my own."
by badidea
Jun 21, 2019 22:59
Forum: Tips and Tricks
Topic: Sprite rotation
Replies: 7
Views: 1244

Re: Sprite rotation

I have updated my old code (sprite rotation with bilinear interpolation) so that it can be used with transparency image (with &00FF00FF as transparent colour). const pi as double = 3.1415926535897932 const rad as double = 180 / pi union rgba_union dim as ulong v 'value type dim as ubyte b, g, r,...
by badidea
Jun 20, 2019 18:01
Forum: Community Discussion
Topic: FBC's Cairo clock example error
Replies: 52
Views: 1482

Re: FBC's Cairo clock example error

Tried rotating fonts. I am going by results of google search for this, but the rotations seem very cpu hungry. Perhaps there is a better way. At 60 fps 34% load on 1 CPU-core here. Your energy calculation seems incorrect. The total energy in the system should be a constant. Do you include energy in...
by badidea
Jun 19, 2019 22:15
Forum: General
Topic: Bit strings ? ( "Bit string datatype" )
Replies: 7
Views: 251

Re: Bit strings ? ( "Bit string datatype" )

Not sure if this is what you are looking for, but I post my today's bit exercise anyway: type bit_array redim as ulong buffer(any) '32 bit buffer dim as integer numBits declare sub addBit(bitValue as integer) declare sub setBit(bitIndex as integer, bitValue as integer) declare function getBit(bitInd...
by badidea
Jun 19, 2019 21:05
Forum: General
Topic: smart code formatter
Replies: 7
Views: 214

Re: smart code formatter

Sound like fun. I can only give some advice on how to prevent it: 1) Always use an editor that shows white-space characters 2) Don't use tabs between statements (only for indentation) I had a productive evening yesterday as well. After 1 hour of coding, I accidentally deleted it all by pasting some ...
by badidea
Jun 17, 2019 21:58
Forum: Game Dev
Topic: Atom Breakout
Replies: 5
Views: 225

Re: Atom Breakout

dodicat wrote:The best I can do is annoying pong.

Especially with mouse-pad, it is quite annoying :-)
by badidea
Jun 17, 2019 20:47
Forum: Game Dev
Topic: Atom Breakout
Replies: 5
Views: 225

Re: Atom Breakout

I had read that some of the later classic breakout games used spin, so I put this on my to-do list. I have not given it much thought yet (until now). Static fraction can probably be ignored. The kinetic friction I expect to depend on normal force, contact area and some friction constant. This result...
by badidea
Jun 17, 2019 18:55
Forum: Game Dev
Topic: Atom Breakout
Replies: 5
Views: 225

Re: Atom Breakout

Because of the overwhelming number of positive replies, I decided to make a GitHub version: https://github.com/verybadidea/Atom-Breakout
Which allows me to get familiar with GitHub as well.

Go to advanced search