Search found 4373 matches

by albinopapa
February 3rd, 2022, 5:15 am
Forum: Everything
Topic: Sand Simulator / 2D Fun
Replies: 19
Views: 19461

Re: Sand Simulator / 2D Fun

If you are assigning a float to a Z value then you'll get flicking if the values are relatively close to each other and fluctuate enough to crisscross. If everything is done in 2D, you could just use the painters method, draw back to front. Of course, without a way of sorting, you'd have to manually...
by albinopapa
January 30th, 2022, 6:30 pm
Forum: Everything
Topic: Sand Simulator / 2D Fun
Replies: 19
Views: 19461

Re: Sand Simulator / 2D Fun

Yeah, I was hesitant in the beginning as it didn't feel right, especially since I'd have to pass this World instance into any function that needed to callback into it. I guess I could have also just used the Observer pattern, but I really haven't implemented it for any of my projects yet. There's a ...
by albinopapa
January 30th, 2022, 6:23 pm
Forum: Everything
Topic: For loop not working
Replies: 10
Views: 4665

Re: For loop not working

Haha, yeah, the only variables that seem to be anywhere near accurate in the Locals window are the function parameters. Outside of that, some things seem to be optimized away so much that the compiler doesn't know which values are associated with the source code.
by albinopapa
January 29th, 2022, 11:48 am
Forum: Everything
Topic: For loop not working
Replies: 10
Views: 4665

Re: For loop not working

I give up man, I can't seem to figure out how to get the game to call that function, to be honest I don't know how to play the game lol. The for loop looks like it should work just fine in terms of setting 'y' to -vision to +vision.
by albinopapa
January 29th, 2022, 11:04 am
Forum: Everything
Topic: Sand Simulator / 2D Fun
Replies: 19
Views: 19461

Re: Sand Simulator / 2D Fun

Life has been a real piece of work for a lot of people the past couple of years. I for one went through a divorce which was finalized in Jan 2021. The marriage was emotionally draining and I have thoughts of self loathing and inadequacies all too often. I spent so long in the marriage living off her...
by albinopapa
January 26th, 2022, 5:49 pm
Forum: Everything
Topic: Sand Simulator / 2D Fun
Replies: 19
Views: 19461

Re: Sand Simulator / 2D Fun

Pretty cool, sorry to hear about the job loss. Looking forward to see where you go with this.
by albinopapa
January 23rd, 2022, 6:18 am
Forum: Everything
Topic: SDL rendering funk
Replies: 3
Views: 2681

Re: SDL rendering funk

Or just draw the four lines yourself.
by albinopapa
January 23rd, 2022, 6:17 am
Forum: Everything
Topic: SDL rendering funk
Replies: 3
Views: 2681

Re: SDL rendering funk

Wow, that sucks. It would seem pointless, but I guess you could, if you're wanting outline, fill a white rect, then a smaller black rect.
by albinopapa
January 22nd, 2022, 12:39 pm
Forum: Everything
Topic: Obstacle Collision Poo game
Replies: 5
Views: 2863

Re: Obstacle Collision Poo game

You're welcome, did it help any?
by albinopapa
January 21st, 2022, 10:37 pm
Forum: Everything
Topic: Obstacle Collision Poo game
Replies: 5
Views: 2863

Re: Obstacle Collision Poo game

A couple of suggestions though. Make a Rect struct with members left,top,right,bottom. Use this struct to act as a bounding box around your entities. Add a function to Poo, Dude and your collideable objects like boxes that calculates and returns this bounding box. Dude::GetRect() Poo::GetRect() Wall...