Search found 8 matches

by palas
Fri Apr 03, 2026 7:35 pm
Forum: Iris Blade
Topic: Dialogue system
Replies: 4
Views: 380

Re: Dialogue system

Oh man I was so ready for a language parsing tangent! :blobcatchewwire:
As for XML, this was kinda eye-opening. For *dialogue* use case specifically, with different styling, modifiers, external variables etc, seems like hypertext is a clear winner. With say JSON and its inability to intertwine ...
by palas
Mon Mar 16, 2026 3:04 am
Forum: Game Programming
Topic: Tip: Your input system should not be an opaque abstraction
Replies: 2
Views: 78

Re: Tip: Your input system should not be an opaque abstraction

Oh the input, so important to nail down in any game, yet rarely talked about.

As an owner of a steam controller, I know how annoying it is when games use mouse movement as an indicator that the player is using keyboard and mouse, so I'm not gonna do that.

Very interesting, I've never considered ...
by palas
Sat Mar 14, 2026 8:37 pm
Forum: Game Programming
Topic: When to global, and how global is a global
Replies: 9
Views: 469

Re: When to global, and how global is a global

Then there's the fact you can combine multiple if statements using "is" with boolean operators like && to access a chain of possibly null things, kinda like if-let-chains in Rust, which again makes me think the design of is is very elegant and versatile...

On, you mean something like this?

if ...
by palas
Sat Mar 14, 2026 11:00 am
Forum: Game Programming
Topic: When to global, and how global is a global
Replies: 9
Views: 469

Re: When to global, and how global is a global

Oh and half-unrelatedly: The "is" operator in C# is such a powerful pattern, because it is a generalization of all those Rust specific syntaxes (if-let, let-else...).

It is indeed, though I'm really not a fan of the scope of locals introduced inside ifs being extended outside of the if { }. This ...
by palas
Sat Mar 14, 2026 12:40 am
Forum: Game Programming
Topic: When to global, and how global is a global
Replies: 9
Views: 469

Re: When to global, and how global is a global

Classifying globals based on their locality makes a lot of sense! Another way to distinguish them is by their usage.

1. Read-only
Basically constants, though their value doesn't have to stay immutable forever. From your post, delta time would fit this description.

2. Write-only
The opposite ...
by palas
Mon Mar 09, 2026 6:37 am
Forum: Langdev
Topic: On named arguments
Replies: 7
Views: 175

Re: On named arguments

but when a function takes a bunch of booleans, I find it almost always pays off in terms of readability to specify the names those parameters.

Functions accepting booleans??? Don't you know it's forbidden by Clean Code™?! :blobcatgiggle:

Anyway, named arguments are fantastic and Im beginning to ...
by palas
Mon Mar 09, 2026 6:23 am
Forum: Langdev
Topic: On Rusts expression-geddon
Replies: 1
Views: 95

On Rusts expression-geddon

Useful terminology
(this one is for yoshi-enthusiast):

! (pronounced as "never") is a special type, which can never be instantiated. It has an important property of being auto-convertable to any other type. This is useful for language primitives that affect control flow. For example:

//this ...
by palas
Tue Feb 17, 2026 3:41 pm
Forum: General
Topic: Welcome to the Carrot Games community!
Replies: 7
Views: 298

Re: Welcome to the Carrot Games community!

Hello!

To be honest I've always been excited by forum communities more than discord ones, due to the format of chats, especially if there are lots of members: every 5+ minutes old message gets buried forever.

So perhaps it's a good opportunity to finally participate in one :]