@Nifflas@mastodon.gamedev.place
@Nifflas@mastodon.gamedev.place avatar

Nifflas

@Nifflas@mastodon.gamedev.place

Algorithmic music composer and game developer. My last game is called Ynglet, a game about swimming in the sky like a space dolphin jellyfish!

This profile is from a federated server and may be incomplete. Browse more on the original instance.

Nifflas, to random
@Nifflas@mastodon.gamedev.place avatar

Function naming problems!

So, you know floor/ceiling/round

But, what do I name one that given the input 3.25 has a 75% chance of rounding it to 3 and 25% chance of rounding it to 4?

I realize it's going to be an incredibly useful function for adaptive music.

But... what do I call it?

Nifflas,
@Nifflas@mastodon.gamedev.place avatar

Basically, the decimal part determines the weight of the chance it'll be rounded up or down

Nifflas,
@Nifflas@mastodon.gamedev.place avatar

@frozenfire92 That... makes so much sense :)

Nifflas,
@Nifflas@mastodon.gamedev.place avatar

@xeophin Ooh nice! :) Thank you!

Nifflas,
@Nifflas@mastodon.gamedev.place avatar

@Craigp I like it, very catchy! It's like "lerp" which is one of my favorite things to say and type when I make games.

Nifflas,
@Nifflas@mastodon.gamedev.place avatar

@deKay omnomnomnom

I have no cheese in my naming, but all my custom file formats uses the Hotdog library (sort of library? I guess it's a library, I don't know the strict definition), which means the word Hotdog appears a LOT in my code.

Nifflas,
@Nifflas@mastodon.gamedev.place avatar
Nifflas,
@Nifflas@mastodon.gamedev.place avatar

@deKay Haha :) This one is a key velocity, as in, how hard you play the note on the musical instrument.

Nifflas,
@Nifflas@mastodon.gamedev.place avatar

@runevision @xeophin Yeah, I think the choice for the name of the function is extremely obvious now :)

I'm going for

int StochasticRound(float value)

Nifflas, to random
@Nifflas@mastodon.gamedev.place avatar

Making a 1-button game. Won't have time for rebindable controls because this is a small game, but I can assign any number of buttons to act as the button. Going for Space Bar, Z and X. Should I add more? Which ones?

I want to avoid buttons that trigger stuff like Windows Sticky Keys tho.

Nifflas,
@Nifflas@mastodon.gamedev.place avatar

@Overbern yeah, definitely! adding buttons like , . and some arrow buttons too!

Nifflas,
@Nifflas@mastodon.gamedev.place avatar

@WAHa_06x36 I guess I could do that, but I may want to stay away for anything system related.

Nifflas,
@Nifflas@mastodon.gamedev.place avatar

@araly Oh yeah, I wonder which enum value is ; in Unity

Nifflas,
@Nifflas@mastodon.gamedev.place avatar

@thomastospace I'll do that! I'll also cover keys that are bottom range on azerty/qwertz keyboards

Also I'll put in the arrows, numpad 0, and numpad enter

Nifflas,
@Nifflas@mastodon.gamedev.place avatar

@Sophie It's an option, yeah!

djlink, (edited ) to random
@djlink@mastodon.gamedev.place avatar

Only one can exist!

Nifflas,
@Nifflas@mastodon.gamedev.place avatar

@djlink No! All four of them must exist.

Nifflas,
@Nifflas@mastodon.gamedev.place avatar

@djlink Today I make the rules and I'm allowing all of them to exist!

(FF7 remake is done for tho, let's keep the original only)

Nifflas,
@Nifflas@mastodon.gamedev.place avatar
Nifflas,
@Nifflas@mastodon.gamedev.place avatar
Nifflas, to random
@Nifflas@mastodon.gamedev.place avatar

I said it on bsky too, but OBS, what a nice piece of software. Tried it for the first time for some screen recording today.

I like when I open something and the UI just makes sense (I wouldn't make this point unless I felt this is such a rare occurrence)

Nifflas,
@Nifflas@mastodon.gamedev.place avatar

@spv Haha, it took me long to realize it's for screen recording too!

Nifflas,
@Nifflas@mastodon.gamedev.place avatar

@spv Oh no, I did use it for the first time today. The reason being, I didn't know it was great for just screen recording too! I always associated it with streaming.

I'd probably have used it loooooong before now if I realized this!

Nifflas,
@Nifflas@mastodon.gamedev.place avatar

@duckonaut Oh yeah, might definitely be room for improvements! It was just a very nice first impression for me and I'm generally very negative toward contemporary UI.

FredrikHathen, to gamedev
@FredrikHathen@mastodon.gamedev.place avatar

Happy Monday, y'all. How are we doing? Any new releases I should be aware of? What is working on? Send me your links and screenshots! (And hey, if you are working on an and you don't have a person on sound/music yet - talk to me!)

Nifflas,
@Nifflas@mastodon.gamedev.place avatar

@FredrikHathen I'm making a weeeird game! Not ready to send screen shots yet. Want to playtest it tho? It'd take about 30 minutes, screen share + discord would be a good option!

djlink, (edited ) to random
@djlink@mastodon.gamedev.place avatar

Only one can exist!

Nifflas,
@Nifflas@mastodon.gamedev.place avatar

@djlink That's the easiest one so far! The Thing!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • anitta
  • mdbf
  • magazineikmin
  • InstantRegret
  • hgfsjryuu7
  • Durango
  • Youngstown
  • slotface
  • everett
  • thenastyranch
  • rosin
  • kavyap
  • khanakhh
  • PowerRangers
  • Leos
  • DreamBathrooms
  • vwfavf
  • ethstaker
  • tacticalgear
  • cubers
  • ngwrru68w68
  • modclub
  • cisconetworking
  • osvaldo12
  • GTA5RPClips
  • normalnudes
  • tester
  • provamag3
  • All magazines