Jameson Thatcher
@sireel.bsky.social
320 followers 1.5K following 690 posts
Unemployed professional gamedev, dad of two. Vegetarian, jazz fan, MTG player. I like thinking about a positive eco friendly future, and learning about technology of the past
Posts Media Videos Starter Packs
Pinned
Lunch Rush is out now: sireel.itch.io/lunch-rush

Make burgers, as fast as you can!

Free to play, in your browser. PC, and mobile browsers are both supported
Lunch Rush by SirEel
Make burgers, as fast as you can
sireel.itch.io
And in the actual code it's commented with links etc. I'm fairly good at making my own code maintainable, at least by my future self!
The is_same is not actually needed, but the dummy template parameter is - I think because without it SFINAE won't trigger as the function can be instantiated with the class as all parameters are known?

As I said, my template knowledge is a little rusty. I'm sure this can be clearer, but not at 1am
for anyone normal:

This means the class has a default constructor, only if the 'loader' member has a default constructor.

This is an asset library class, which is intended to be derived from. The child class might have to pass a loader (which handles loading the type from a file or memory stream)
Someone should take away my ability to write template code in C++

Although given how much effort this took to write, perhaps they already did

(thanks to this blog post for how to approach this : akrzemi1.wordpress.com/2015/03/02/a... the author Andrzej Krzemieński doesn't seem to be on here)
Screenshot of some c++ code which says the following (with apologies to screen reader users):

	template<typename U,
		std::enable_if_t<std::is_same_v<U, std::decay_t<L>> && std::is_default_constructible_v<L>, int> = 0
	>
	AssetLibrary() : loader() {}
Days since I posted a typo and it got liked by someone notable: 0
But that's the last of my sins, I wrote video games in c++ then compile them to WebASM so people don't get put off by having to download an executable
I too am guilty of having a json parser for something that deserves a binary one
My old boss used to complain specifically against pointless normalisation of vectors, saying if programmers didn't suck at maths it'd only be done when necessary would save masses of electricity in inverse square root calls
Alexa is a little better for this, though it definitely fails to understand my partner a lot more than it does me.

I do think there's room for a lot of interesting stuff in voice control, but there's a long way to go on the basics for sure!
My goal is for it all to feel like making a game with close to raw SDL, but with things like async asset loading over the Web just handled

And some of the rough edges of SDL filed down to the shape I prefer. Shit I'm sick of rewriting, essentially!
In this case the vector is for the loading screen. Asset handles are strongly typed which means sorting mixed types isn't (easily) possible

The maintainable solution would be dynamic typing, or dividing the responsibilities better.

I'm just trying to get stuff just good enough, fast though!
This thought is brought to you by me genuinely considering solving a problem using a vector of pointers to asset handles.

I'm probably going to just do it. Can't be slower than any other engine, can it?
Also why is it always asset loading that wastes my time like this? Why do I always believe it can be solved simply in a performant way when I know this is a lie?

(and why do I always try to solve it with just one more template?)
Dammit, I meant to "just tidy up a couple of things" in the framework I've been making to make my games, but now it feels like I'm writing a game engine again
Mine still has its original battery and somehow it still works!

(my copy of gold needs a new one though)
Rest up, hope recovery is as uncomplicated as possible!
It always gets me that Brock in S1 of pokemon is constantly referred to as an old man.

He is fifteen
I swear I could hear it even with it muted 😭
Yes! I always loved when rpgs let you adjust the look too, I used to play secret of mana with an overly ornate frame for all the ui boxes because it made me think the game was even fancier
Reposted by Jameson Thatcher
PEAS!

#animation #cgi #peas #teatingvideohere #3d #vegetables
Reposted by Jameson Thatcher
Things that cost nothing - but is a HUGE help for any and all indie devs:

Wishlisting - it gives games data to show publishers there is interest.

Leave a Review - ESPECIALLY if you liked the game. Reviews on steam lead to the algo serving you up to others.

Reposting - it's an attention economy.
The extra effort is valuable on a society level, but it's only sustainable at an individual level if you actually enjoy the results for themselves
People complaining about their proponents are far noisier and more annoying than they are themselves
I gave both a go, but I enjoy cheese/video games too much and despite the latest advancements, the support isn't quite there