Search found 1750 matches

by deltarho[1859]
Jul 24, 2019 23:48
Forum: Game Dev
Topic: The 50 years ago moon landing 4K contest!
Replies: 32
Views: 1987

Re: The 50 years ago moon landing 4K contest!

That is a sexist post.

The byte count can be reduced and avoid offending anyone with.

Code: Select all

? "Astronaut: Houston we have a problem. We cannot find a McDonald's!"
 
sleep

<smile>
by deltarho[1859]
Jul 24, 2019 9:39
Forum: Game Dev
Topic: The 50 years ago moon landing 4K contest!
Replies: 32
Views: 1987

Re: The 50 years ago moon landing 4K contest!

I think you have a super fast machine deltarho, and need a sleep strictly after every screenunlock. That is a good point. In another thread, where I was having issues, XP was working OK and with srvaldez's Mac. Anyone using XP has probably got a CPU weaker than mine and, if memory serves, srvaldez'...
by deltarho[1859]
Jul 24, 2019 7:45
Forum: Game Dev
Topic: The 50 years ago moon landing 4K contest!
Replies: 32
Views: 1987

Re: The 50 years ago moon landing 4K contest!

With Joshy's editing we lose the animation of the flare. I would suggest we do not remove the ScreenUnlock at line 130 but insert a ScreenLock just after line 137. That is, dodicat did not have one ScreenUnlock too many but one ScreenLock too little. Added: The 'Sleep 10' works a treat, I am not get...
by deltarho[1859]
Jul 24, 2019 7:25
Forum: Game Dev
Topic: The 50 years ago moon landing 4K contest!
Replies: 32
Views: 1987

Re: The 50 years ago moon landing 4K contest!

D.J.Peters wrote:Remember it's a size contest not writing easy to read nor well nice formatted code.

My mistake, I didn't realize that was an instruction to turn off automatic indentation in our IDEs. <Quickly exists stage left><smile>
by deltarho[1859]
Jul 24, 2019 0:00
Forum: Game Dev
Topic: The 50 years ago moon landing 4K contest!
Replies: 32
Views: 1987

Re: The 50 years ago moon landing 4K contest!

@dodicat I knew that you would be first out the traps. <smile> However, the 'Adjust Charge' is a bit 'flaky'. A left click sometimes works and other times I get 'Not responding'. Actually, I am getting 'Not responding' in other areas as well. Have you changed your editor's settings? There are no ind...
by deltarho[1859]
Jul 21, 2019 5:50
Forum: Game Dev
Topic: Physics question
Replies: 62
Views: 2418

Re: Physics question

BasicCodr2 wrote:I have a special folder called the dodicat folder because I find his examples so useful and/or entertaining.

Snap! My folder is called 'DodicatGems'.
by deltarho[1859]
Jul 20, 2019 22:35
Forum: Game Dev
Topic: Physics question
Replies: 62
Views: 2418

Re: Physics question

but are the pieces good starting points to learn (painting or coding)? Probably not. If van Gogh and Constable got into programming I'd reckon van Gogh would plug for Top-Down programming and Constable would plug for Bottom-Up programming. <smile> Both methods have their pros and cons, best bet is ...
by deltarho[1859]
Jul 20, 2019 21:08
Forum: Game Dev
Topic: Physics question
Replies: 62
Views: 2418

Re: Physics question

badidea wrote:but the whole structure is a bit of a mess.

I think that Vincent van Gogh's paintings are a bit of a mess but some folk have parted with some serious money to get their hands on them. One thing is for sure and that is dodicat is not a John Constable. <smile>
by deltarho[1859]
Jul 20, 2019 10:22
Forum: Game Dev
Topic: Physics question
Replies: 62
Views: 2418

Re: Physics question

I was in error, bypassing sleep during a drag. It happens to the best of us. Graphics are not my strong point so it is probably not much coming from me but I reckon that code is one of the best that I have seen. I will make a point of studying it to better my understanding of FB's graphic's capabil...
by deltarho[1859]
Jul 20, 2019 2:13
Forum: Game Dev
Topic: Physics question
Replies: 62
Views: 2418

Re: Physics question

Found the problem. Forget everything that I have written re this problem. In the 'Angle example' '#macro mouse(m)' there is 'Sleep 1,1' just after 'Display()'. That Sleep is not in dodicat's last code. Inserting 'Sleep 1, 1' as follows sees the drag & drop now work perfectly on my machine for bo...
by deltarho[1859]
Jul 20, 2019 0:36
Forum: Game Dev
Topic: Physics question
Replies: 62
Views: 2418

Re: Physics question

I removed the 'rain'. That helped. I then removed all the 'Sleep 0', one at a time, but did not establish a bottleneck. So, the rain was problematic. Perhaps the rain should have been in a separate thread of execution (TOE). I have noticed that many, if not all, graphics apps are single core and hav...
by deltarho[1859]
Jul 20, 2019 0:10
Forum: Game Dev
Topic: Physics question
Replies: 62
Views: 2418

Re: Physics question

srvaldez wrote:that I believe is by design, look at the code for rain.

In deep space? In deep space we are down to about three degrees Kelvin. Perhaps we are near to a black hole and in a Hawking radiation storm. <smile>
by deltarho[1859]
Jul 19, 2019 23:56
Forum: Game Dev
Topic: Physics question
Replies: 62
Views: 2418

Re: Physics question

however if I drag the red dot around and around, the CPU usage rises to 92% This can happen when code is running in a tight loop, so we need to release the time slice. This is not necessary for each iteration, perhaps every 128 or 256. However, to keep things simple I inserted 'Sleep 0' before the ...
by deltarho[1859]
Jul 19, 2019 22:57
Forum: Game Dev
Topic: Physics question
Replies: 62
Views: 2418

Re: Physics question

Thanks dodicat. No luck there. The drag & drop can take between 10 and 20 seconds to work but the drop is nowhere near where it should be. I will leave it and wait to see if anyone else has any issues. I don't want to waste your time so if no one else reports any issues then, probably, there is ...
by deltarho[1859]
Jul 19, 2019 21:42
Forum: Game Dev
Topic: Physics question
Replies: 62
Views: 2418

Re: Physics question

@dodicat I am having problems running some of your code. Your very first code is working fine as is you code where we can drag & drop one of three circles. However, every other code where we should be able to drag & drop either the red or green circle sees the CPU max out on a core, I have f...

Go to advanced search