onelson,
@onelson@mastodon.social avatar

So... my game dev project has been all one single main.rs all this time, and now I'm splitting things up. I've gone from 1 to 7 rust sources all of a sudden and I wonder if this is dumb or good. Impossible to say.

onelson,
@onelson@mastodon.social avatar

I'm also about to face impossible taxonomy questions like, "player input handling for movement should be in which module?"

  • player.rs
  • input.rs
  • movement.rs

fuck

onelson,
@onelson@mastodon.social avatar

There are no philosophical quandaries when everything is in one source file beyond "aahhhhh why can't I ever stop scrolling up and down???"

mcc,
@mcc@mastodon.social avatar

@onelson I actually because rust allows inner functions and types keep writing complex programs confined within a single main(). Just using that one function as a namespace

onelson,
@onelson@mastodon.social avatar

@mcc just like in Event Horizon. Got it.

onelson,
@onelson@mastodon.social avatar

I like that bevy lets you organize your shit in terms of "plugins" where "plugins" are really just a pile of things you don't want anyone to see. "plugins" are full of secrets.

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