TheMowgliMan / Country-Clash

A 2D OGLES 3 game developed in Godot 3.x. Intends to emulate the mechanics of CCRPIV on Scratch: https://scratch.mit.edu/studios/31228758/
GNU General Public License v3.0
3 stars 1 forks source link

Add latitude color variation #24

Closed 3quarterscolon closed 2 years ago

3quarterscolon commented 2 years ago

Lighter colors further north and south and darker colors closer to the equator to make it look like it’s colder near the poles.

This isn’t necessary or anything, but I think it might be a nice substitute for actually calculating climate. Shouldn’t be too hard to implement.

3quarterscolon commented 2 years ago

It's a tad bit more complex than I thought.

Screen Shot 2022-05-28 at 9 06 08 PM

3quarterscolon commented 2 years ago

Now when I open the map I get this error: "cmd.get_type() != Variant::STRING" is true. what does that even mean???

3quarterscolon commented 2 years ago

Dozens of attempts later, and I still have no idea how to get this to work properly. I can get tantalizingly close, but for some reason the last step always results in it failing.

3quarterscolon commented 2 years ago

I guess I'll try again tomorrow.

Here's the closest I can get: Screen Shot 2022-05-28 at 9 58 57 PM

(note: right now I'm just debugging it to find a function to get the distance from the "equator". in the final version, that would be used to shade the biomes.)

TheMowgliMan commented 2 years ago

Likely some dust code. That error means that there was supposed to be a command there but it didn't consist of text.

On Sat, May 28, 2022, 10:00 PM 3quarterscolon @.***> wrote:

I guess I'll try again tomorrow.

Here's the closest I can get: [image: Screen Shot 2022-05-28 at 9 58 57 PM] https://user-images.githubusercontent.com/94267030/170848887-a70bce3f-697b-47c0-93dc-2d642edc669e.png

(note: right now I'm just debugging it to find a function to get the distance from the "equator". in the final version, that would be used to shade the biomes.)

— Reply to this email directly, view it on GitHub https://github.com/TheMowgliMan/Country-Clash/issues/24#issuecomment-1140357789, or unsubscribe https://github.com/notifications/unsubscribe-auth/AW7ZWTNN7ZFYVUQY3HXB4YDVMLFTLANCNFSM5XG3CXOQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

3quarterscolon commented 2 years ago

Likely some dust code. That error means that there was supposed to be a command there but it didn't consist of text.

I solved it after I posted that comment. I think it was caused by accidental division by zero.

TheMowgliMan commented 2 years ago

Hmmm... It would say division by zero error. I suspect you accidentally tried to call something like "42a(3)", or that general structure.

On Sun, May 29, 2022, 1:21 PM 3quarterscolon @.***> wrote:

Likely some dust code. That error means that there was supposed to be a command there but it didn't consist of text. … <#m-5128031470359343765>

I solved it after I posted that comment. I think it was caused by accidental division by zero.

— Reply to this email directly, view it on GitHub https://github.com/TheMowgliMan/Country-Clash/issues/24#issuecomment-1140490944, or unsubscribe https://github.com/notifications/unsubscribe-auth/AW7ZWTPB2THVPTATNV77O6DVMORSBANCNFSM5XG3CXOQ . You are receiving this because you commented.Message ID: @.***>

3quarterscolon commented 2 years ago

Hmmm... It would say division by zero error. I suspect you accidentally tried to call something like "42a(3)", or that general structure.

I don’t know what that is, but I don’t think that’s what I did.

3quarterscolon commented 2 years ago

Still not working at all. Screen Shot 2022-05-29 at 8 47 37 PM

3quarterscolon commented 2 years ago

NOTHING IS WORKING AAAAAAAA I CAN'T EVEN GET AN IF FUNCTION TO DO ANYTHING WHAT IS HAPPENING

3quarterscolon commented 2 years ago

now it's slightly less crazy in terms of color Screen Shot 2022-05-29 at 9 08 30 PM I see this as a total win

3quarterscolon commented 2 years ago

one step forward, 300 steps back. Screen Shot 2022-05-29 at 9 15 15 PM

3quarterscolon commented 2 years ago

I- what? Screen Shot 2022-05-29 at 9 17 32 PM

3quarterscolon commented 2 years ago

The return of shading Screen Shot 2022-05-29 at 9 19 42 PM So I've come full-circle and I still haven't been able to do the thing I wanted to in the first place.

3quarterscolon commented 2 years ago

...and we're back to this. Screen Shot 2022-05-29 at 9 25 19 PM

3quarterscolon commented 2 years ago

And back to being shadingless. I'm done for tonight, maybe tomorrow?

TheMowgliMan commented 2 years ago

Wow. there is a value that is added to for shading, add to that value in each: abs((y - (map_size_square / 2)) / 3) . You may need to clamp it. I'll see if I can get it working.

On Sun, May 29, 2022, 9:29 PM 3quarterscolon @.***> wrote:

And back to being shadingless. I'm done for tonight, maybe tomorrow?

— Reply to this email directly, view it on GitHub https://github.com/TheMowgliMan/Country-Clash/issues/24#issuecomment-1140585697, or unsubscribe https://github.com/notifications/unsubscribe-auth/AW7ZWTMGBHSVWKZMC7S45GLVMQKW3ANCNFSM5XG3CXOQ . You are receiving this because you commented.Message ID: @.***>

TheMowgliMan commented 2 years ago

You know what? I bet it's value overflow. I'll see if clamping it fixes it.

On Tue, May 31, 2022, 5:30 PM NJ K @.***> wrote:

Wow. there is a value that is added to for shading, add to that value in each: abs((y - (map_size_square / 2)) / 3) . You may need to clamp it. I'll see if I can get it working.

On Sun, May 29, 2022, 9:29 PM 3quarterscolon @.***> wrote:

And back to being shadingless. I'm done for tonight, maybe tomorrow?

— Reply to this email directly, view it on GitHub https://github.com/TheMowgliMan/Country-Clash/issues/24#issuecomment-1140585697, or unsubscribe https://github.com/notifications/unsubscribe-auth/AW7ZWTMGBHSVWKZMC7S45GLVMQKW3ANCNFSM5XG3CXOQ . You are receiving this because you commented.Message ID: @.***>

TheMowgliMan commented 2 years ago

Done! I added polar regions for good measure: Country Clash- The Game (DEBUG) 5_31_2022 3_09_28 PM

3quarterscolon commented 2 years ago

Wow. there is a value that is added to for shading, add to that value in each: abs((y - (map_size_square / 2)) / 3) . You may need to clamp it. I'll see if I can get it working.

I tried clamping it, I guess I didn’t do it correctly.