Sep. 20th, 2020

Work Post

Sep. 20th, 2020 01:28 am
relee: Picture of Relee Starbreeze, Wizard (Default)
2:26am - Alright, so, I think I'm ready and I've decided to try and copy the systems and algorithms from Faron Bracy's RogueSharp library into GDScript. It's a bit tricky and it'll be less efficient in GDScript but it should hopefully work.

3:07am - I've got the project set up in Godot and it's already getting interesting. GDScript is a dynamic language where as C# is static, so there's a lot of things I don't have to copy over, because GDScript doesn't work that way. Like all of the interface classes for example.

I'll start by coding the Cell class.

3:12am - Okay coding in two languages at once is twisting my head up in knots. How do professional translators do it? XD

3:26am - No function overloading in GDScript either. That'll make things complicated. Bracy uses a lot of overloaded constructors.

5:02am - I've copied over the Cell class from C# to GDScript. It's one of the smallest classes in RogueSharp and it only took me two hours. Though to be fair I did learn some things along the way and ran into some issues I should know how to solve in the future. Heh.

Next up is, I think the longest class in RogueSharp? It's the Map class.

...

On second thought, I've been working for two hours, so I should take a break and watch an anime ep.

6:33am - Alright it's time for me to take a break from my break. I've been binge-watching Digimon Adventure Tri. Surprisingly heavy stuff.

Anyways let's get back to that Map class.

Oh! Hang on. I just looked at the top of the code and saw that it inherits from another class. I should do that one first.

7:41am - I'm getting some circular dependancies here; Map uses the MapCreationStrategies but the MapCreationStrategies refer to Map and Cell. So I'm going to go back and do Map after all, now that I have a MapCreationStrategy prepared.

9:53am - Well I'm only about half way done the Map class, it's a doozy. But it's also really late in the morning, and I asked Rob to wake me up at 4pm so I can get ready for D&D. Gonna be hard times this evening!

Ah well. I'll continue this later.

Profile

relee: Picture of Relee Starbreeze, Wizard (Default)
Relee Squirrel

July 2023

S M T W T F S
      1
23456 78
9101112131415
16171819202122
23242526272829
3031     

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 12th, 2025 11:23 am
Powered by Dreamwidth Studios