Search found 5793 matches

by dodicat
Jul 22, 2019 10:34
Forum: General
Topic: Squares
Replies: 6745
Views: 384506

Re: Squares

Albert, I think your almost impossible tasks (and trying to resolve them) are sometimes spilling out from your subconscious to your keyboard. It is only human nature of course, none of us are happy with a block in our way. Why don't you compose a compress and decompress step by step together. As soo...
by dodicat
Jul 22, 2019 9:29
Forum: General
Topic: Forum search
Replies: 1
Views: 71

Forum search

With the advanced search here, words in code blocks are ignored now.
For instance I can no longer search for a post which includes some winapi function I would like to see in use.
Only general chat or topic titles seem to be searched now.
Or Have I got my forum setting wrong?
by dodicat
Jul 21, 2019 19:07
Forum: Game Dev
Topic: Physics question
Replies: 52
Views: 1069

Re: Physics question

Badidea, I hope you are not procrastinating your camping. It has been raining here all day. Your demo runs OK here. Thank you everybody for your comments. I have gathered up everything and put it all inside one sub to return the required angle and direction after a kick on one thruster. This makes t...
by dodicat
Jul 20, 2019 18:40
Forum: General
Topic: #error error? solved
Replies: 19
Views: 261

Re: #error error?

OOPs already done.
Didn't see the post.
by dodicat
Jul 20, 2019 18:39
Forum: General
Topic: #error error? solved
Replies: 19
Views: 261

Re: #error error?

If you use the switch
-maxerr 1
it stops at the fisrt error

Code: Select all

   error: abort1
           error 133: Too many errors, exiting

(I rubbed out the compiler path, but you get too many at one)
by dodicat
Jul 20, 2019 7:50
Forum: Game Dev
Topic: Physics question
Replies: 52
Views: 1069

Re: Physics question

Thanks deltarho
I have edited the post, put the sleep directly into the display macro so it sleeps for a bit in all cases.
I was in error, bypassing sleep during a drag.
by dodicat
Jul 19, 2019 22:29
Forum: General
Topic: Squares
Replies: 6745
Views: 384506

Re: Squares

Hi Albert.
I am not sure what to find and replace in the decompress.
Everything formed is some binary string with ones and zeros, some with spaces, but the answer has to be asci 0 to 255 to agree with input s.
How do I get the jump?
by dodicat
Jul 19, 2019 22:21
Forum: Game Dev
Topic: Physics question
Replies: 52
Views: 1069

Re: Physics question

Hi deltarho. There is not too much going on, pset about 332 points + the number of polygon vertices chosen. And painting the polygon. The floating points are just moving and turning those points (sin, cos and some + - * /, but not many. I tested on win XP 32 bits, OK, I get the full 60 fps. I tested...
by dodicat
Jul 19, 2019 20:39
Forum: Game Dev
Topic: Physics question
Replies: 52
Views: 1069

Re: Physics question

Happy camping. Const pi=4*Atn(1) Const BoxSize=100 Const systemconstant=1/boxsize #define incircle(cx,cy,radius,x,y) (cx-x)*(cx-x) +(cy-y)*(cy-y)<= radius*radius #define onscreen (mx>0) and (mx<xres) and (my>0) and (my<yres) Type pt As Double x,y,z End Type Redim Shared As pt msg() Operator -(p1 As ...
by dodicat
Jul 19, 2019 0:39
Forum: General
Topic: Squares
Replies: 6745
Views: 384506

Re: Squares

No luck yet Albert.
It's a bit like figuring out a decryption algorithm.
by dodicat
Jul 19, 2019 0:26
Forum: Game Dev
Topic: Physics question
Replies: 52
Views: 1069

Re: Physics question

I expect both to move in y-direction only while rotating. You may be right with an object hitting a Borg ship. The boat and it's motor interacts with the water it is not skidding along a frictionless frozen lake with a rocket for propulsion. https://www.youtube.com/watch?v=qaIqanZ00uo However if th...
by dodicat
Jul 19, 2019 0:05
Forum: Game Dev
Topic: Physics question
Replies: 52
Views: 1069

Re: Physics question

Here is a general strike. I have used the property of mass of a disc and moment of inertia of a disc. ... Looking at you code, but I is a bit hard to follow. Not written for a beauty contest :-) linearimpulse = impulse * Cos(a) / mass angularimpulse = impulse * Sin(a) / anginertia You assume that l...
by dodicat
Jul 18, 2019 0:20
Forum: Game Dev
Topic: Physics question
Replies: 52
Views: 1069

Re: Physics question

Here is a general strike. I have used the property of mass of a disc and moment of inertia of a disc. I have applied a system constant to keep the motion reasonable. Drag the dots and press a key to apply an impulse. Right click to reset. (The laws of physics apply everywhere), maybe not here. Const...
by dodicat
Jul 18, 2019 0:05
Forum: General
Topic: Squares
Replies: 6745
Views: 384506

Re: Squares

I'll have a look tomprrow Albert.
by dodicat
Jul 16, 2019 22:17
Forum: Game Dev
Topic: Physics question
Replies: 52
Views: 1069

Re: Physics question

By the way D.J.Peters I forgot to thank you for speeding up my image rotate.
I used my old rotate here, but I may use the speeded up version in future.

Go to advanced search