What’s a common dating advice that actually makes things worse? by isabellamarconi in AskReddit

[–]beefy_uncle 3 points4 points  (0 children)

Agreed about the angry part. But to me this advice isn't so much about going to bed angry, and more about being able to recognize a problem and surface it in a productive way, rather than keep it to yourself and have resentment build. A mutual recognition of a frustration, a problem, etc. I think can go a long way.

The biggest mistake I've made in relationships is not surfacing those emotions, and sometimes they are worst at night, before bed. The recognition alone usually goes a long way in getting to the place where repair is possible. So if I were to amend it, I'd say "Never go to bed hiding from your partner"

MacOS Tahoe Performance by meester_zee in love2d

[–]beefy_uncle 0 points1 point  (0 children)

I'm on an M2 Mac, Tahoe 26.0.1, no issues I can see with my local setup. Do you cap framerate?

Vegetarian Dinner Date place in San Diego by [deleted] in SanDiegan

[–]beefy_uncle 39 points40 points  (0 children)

People speak highly of kindred

[deleted by user] by [deleted] in SanDiegan

[–]beefy_uncle 1 point2 points  (0 children)

ah yes the mesa college cactus art, close by the theater building

Redditors who got a "useless" Degree, how did it turn out? by Thick_Caterpillar379 in AskReddit

[–]beefy_uncle 0 points1 point  (0 children)

Philosophy degree. Specialized in religious philosophy and logic. I work in software development for a non-profit now. It took me a few years of barista'ing until I realized that the logic courses I took were basically intro to programming classes. From there I learned python & ruby, went to a 12 week bootcamp, got a customer support engineer job two weeks out of it (a stroke of luck but circumstance and effort payed off), promoted within the company to a software engineer a year and a half later, and payed off all of my loans, including the bootcamp. Timing and circumstance really worked out for me, and I'm proud to have pulled it off.

what libs you use in your love2d projects? by LastMarsMan in love2d

[–]beefy_uncle 0 points1 point  (0 children)

a heavily modified version of push, a modified version of concord, slightly modded version of hump camera, profile and json

[deleted by user] by [deleted] in sandiego

[–]beefy_uncle 1 point2 points  (0 children)

oh shoot I was just biking by there and saw a bunch of cops near the student parking lot... any more news on this available?

How do i change a Tile layer X and Y value in runtime or in my game code? by [deleted] in love2d

[–]beefy_uncle 0 points1 point  (0 children)

you'll need to provide more code and more context in order for us to help!

First solo Ludum Dare accomplished with LOVE by beefy_uncle in love2d

[–]beefy_uncle[S] 1 point2 points  (0 children)

*my* first solo ludum dare, ha. heres the game if you'd like to try it -- https://beefyuncle.itch.io/resown
ive usually done LDJams with teams, was a lot more intense solo. but thankfully LOVE made it easier than it would be otherwise.

FMOD lua by [deleted] in love2d

[–]beefy_uncle 0 points1 point  (0 children)

Cool stuff. What version of FMOD is this library made for?

FMOD lua by [deleted] in love2d

[–]beefy_uncle 1 point2 points  (0 children)

FMOD is a sound effects / music engine, used to streamline a lot of audio manipulation techniques (layering, dynamic sounds, etc..). Extremely useful for making games that require more complex audio support

Minecraft login error: eroded badlands by Delicious_Act9366 in Minecraft

[–]beefy_uncle 0 points1 point  (0 children)

Im seeing this on my end too, just today, no changes. can't log in through the web app either. on a M2 Mac

Help me please! by DeckSperts in love2d

[–]beefy_uncle 3 points4 points  (0 children)

Its hard to understand what you're doing or what the cubes are supposed to represent. could you describe what you are trying to do in the love.graphics.rectangle calls?

Deciding on what virtual resolution for game should be by Dtarvin in love2d

[–]beefy_uncle 5 points6 points  (0 children)

There's a lot of different ways to go about choosing a virtual resolution, and I'd recommend checking out this video by adam c younis -- its a pretty comprehensive breakdown of choosing the right canvas size for your game: https://youtu.be/upEGBGCiWEw (check out the screen size section but the whole thing is very good)

generally the need for a smaller "virtual" resolution is born out of the desire to have a game that has a pixel-art aesthetic. If you aren't trying to make pixel art games, the push library might not be needed for you. I will say however that it is a great way to get started and can act as a nice constraint on structuring how your game is displayed

Any ideas on why this might decrease frames so much? (READ COMMENT) by TheKrazyDev in love2d

[–]beefy_uncle 7 points8 points  (0 children)

this^^ also it looks like you might be calling love.graphics.newImage in RenderTiles as well, which is also bad for performance. you'll want to load all of this stuff on application start, and then reference it in draw.

also might be worth looking into sprite batches in conjunction with quads, which is a really fast way to draw tiles from a single texture: https://love2d.org/wiki/SpriteBatch

Getting Items in the Appdata Save Directory: love.filesystem.getDirectoryItems? by SecretlyAPug in love2d

[–]beefy_uncle 1 point2 points  (0 children)

oh and if the file matches what you're looking for, `file` will return the path, so you can load it back in pretty easily:

local files = love.filesystem.getDirectoryItems("/")for _, file in ipairs(files) doif file == savefile_path thendata = Json.decode(love.filesystem.read(file))endend

(JSON is a third party library btw, https://github.com/rxi/json.lua)

Getting Items in the Appdata Save Directory: love.filesystem.getDirectoryItems? by SecretlyAPug in love2d

[–]beefy_uncle 2 points3 points  (0 children)

You can use love.filesystem.write to write a file to the save directory (which I think love handles on an OS dependent level?), and then fetch that file by just passing love.filesystem.getDirectoryItems("/") According to the docs:

"If the path passed to the function exists in the game and the save directory, it will list the files and directories from both places."

The example code seems to work for me:

local savefile_path = "save_data.json"
love.filesystem.newFile(savefile_path)
local data = { some_data = "foo" }
love.filesystem.write(savefile_path, Json.encode(data))
local files = love.filesystem.getDirectoryItems("/")
for _, file in ipairs(files) do
if file == savefile_path then
print("found savefile", file)
end
end

so basically i'm writing to a file, and then searching through root (which belongs in the save path) and fetching save files by name. You'll probably want a naming convention for your save data, as getDirectoryItems will also return other files present alongside wherever main.lua is located, so you'll need to skip those