Search found 4373 matches
- February 3rd, 2022, 5:15 am
- Forum: Everything
- Topic: Sand Simulator / 2D Fun
- Replies: 19
- Views: 20125
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...
- January 30th, 2022, 6:30 pm
- Forum: Everything
- Topic: Sand Simulator / 2D Fun
- Replies: 19
- Views: 20125
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 ...
- January 30th, 2022, 6:23 pm
- Forum: Everything
- Topic: For loop not working
- Replies: 10
- Views: 4888
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.
- January 29th, 2022, 11:48 am
- Forum: Everything
- Topic: For loop not working
- Replies: 10
- Views: 4888
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.
- January 29th, 2022, 11:04 am
- Forum: Everything
- Topic: Sand Simulator / 2D Fun
- Replies: 19
- Views: 20125
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...
- January 26th, 2022, 5:49 pm
- Forum: Everything
- Topic: Sand Simulator / 2D Fun
- Replies: 19
- Views: 20125
Re: Sand Simulator / 2D Fun
Pretty cool, sorry to hear about the job loss. Looking forward to see where you go with this.
- January 23rd, 2022, 6:18 am
- Forum: Everything
- Topic: SDL rendering funk
- Replies: 3
- Views: 2813
Re: SDL rendering funk
Or just draw the four lines yourself.
- January 23rd, 2022, 6:17 am
- Forum: Everything
- Topic: SDL rendering funk
- Replies: 3
- Views: 2813
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.
- January 22nd, 2022, 12:39 pm
- Forum: Everything
- Topic: Obstacle Collision Poo game
- Replies: 5
- Views: 2993
Re: Obstacle Collision Poo game
You're welcome, did it help any?
- January 21st, 2022, 10:37 pm
- Forum: Everything
- Topic: Obstacle Collision Poo game
- Replies: 5
- Views: 2993
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...