[-] russmatney@programming.dev 3 points 2 years ago

Thank you, I'm glad you like it! I like pixel art b/c it's so constrained, so it helps me relax and just fit whatever i can in the space. Hope you like the game!

[-] russmatney@programming.dev 2 points 3 years ago

Fair! Naming is hard, but maybe that’s no excuse for not defining a thing

[-] russmatney@programming.dev 3 points 3 years ago

Just to share a perspective from erlang/elixir: pattern matching to filter for only happy-path inputs and the principle of “letting it fail” (when the inputs don’t match the expected shape) works really well in some paradigms (in this case, the actor model + OTP, erlang’s 9 9s of uptime, etc). In that kind of architecture you can really only care about the happy path, because the rest is malformed and can be thrown away without issue.

[-] russmatney@programming.dev 2 points 3 years ago

Yesssss tldr is awesome!

[-] russmatney@programming.dev 2 points 3 years ago

The simple and probably better answer is that you can just vim ~/.zsh_history and search for/delete the lines directly.

Buuuuut! I wrote zsh command for doing exactly that a few years ago (in my dotfiles, but i've pasted it below as well):

################################################################################
# Delete from history via fzf
################################################################################

# https://superuser.com/questions/1316668/zsh-bash-delete-specific-lines-from-history
function delete-command () {
  # Prevent the specified history line from being saved.
  local HISTORY_IGNORE="${(b)$(fc -ln $1 $1)}"

  # Write out the history to file, excluding lines that match `$HISTORY_IGNORE`.
  fc -W

  # Dispose of the current history and read the new history from file.
  fc -p "$HISTFILE" "$HISTSIZE" "$SAVEHIST"

  # TA-DA!
  print "Deleted '$HISTORY_IGNORE' from history."
}

function pick_from_history () {
  history | fzf --tac --tiebreak=index | perl -ne 'm/^\s*([0-9]+)/ and print "$1"'
}

function delete_from_history () {
  delete-command "$(pick_from_history)"
}

It uses fzf to filter and select a command to delete. It's cool but might be slow b/c you're doing it one at a time. It also may depend on your zsh config (i think the history command i'm using there comes from ohmyzsh, but i'm not too sure).

[-] russmatney@programming.dev 2 points 3 years ago

After further inspection, Atuin looks sweet! Looks like they encrypt your history and offer finer-grained search (like dates and things). Great rec, thanks for sharing!

[-] russmatney@programming.dev 2 points 3 years ago

I'm a week late on this..... but just wanted to comment in support of this style! I think it's worth having a strong pattern of code re-use across projects - your tools should get better as you get better game dev!

I've built games for several game jams in the last ~8 months in the same project: https://github.com/russmatney/dino

The goal is to lower the overhead of trying out new ideas, and make it easy to put reusable library code into libraries (addons), and game-specific code in the games themselves. It's a fertile ground for letting games and addons develop and grow organically - as more games are implemented, the addons get another consumer to test the apis they offer. Maybe one day an addon will be ready to be pulled into it's own project, if it would make it easier for other folks to use it.

(Tho, my addons have grown fairly cross-dependent, so now I'm starting to think of all of Dino as more of a personal framework... we'll see where it goes...)

It's typically alot to ask others to come into your own project and work with it (at any level, really), but if you are productive in there, you must be doing something right, so just keep going!

[-] russmatney@programming.dev 2 points 3 years ago

Maybe you could dig into a few open-source clients to see how they work with it?

E.g. someone shared a basic lemmy viewer in godot the other day: https://github.com/sevonj/gdlm - it’s rough but probably not too much to read through. Was posted in /c/godot: https://programming.dev/post/48482

[-] russmatney@programming.dev 2 points 3 years ago

I'm curious about this even outside of a mlem perspective - do beehaw posts accumulate downvotes but just not display them, or are they accumulated and shown to downvote-enabled instances, or are they just thrown away?

[-] russmatney@programming.dev 2 points 3 years ago

I should dig deeper into beat em up references in general - let me know if you know of any gems!

Outside of Streets of rage, some that I've played and enjoyed:

  • TMNT (so much nostalgia for Hyperstone Heist, but the new Shredder's Revenge is fun too)
  • River City Girls
  • Streets of Red

Some different ones that I've played a bit, but need to dig into more:

  • Slaps and Beans
  • The Friends of Ringo Ishikawa

I've heard Fight 'n Rage is good too, but haven't actually played it yet

There are quite a few classic bundles out there too if you just want to dive into some of the old ones

[-] russmatney@programming.dev 2 points 3 years ago

excellent, ty for sharing - will check these out

[-] russmatney@programming.dev 2 points 3 years ago

Sounds great, let’s dooooo it!

view more: ‹ prev next ›

russmatney

0 post score
0 comment score
joined 3 years ago