[-] [email protected] 3 points 1 year ago* (last edited 1 year ago)

Yeah this is more for the new instance that will be started up that will have the potential to interact with it a lot more. Want to keep federation the same across all our instances

[-] [email protected] 3 points 1 year ago* (last edited 1 year ago)

Would programming.dev be able to participate or is it mostly oriented around countries/country instances

E.g. entering with songs from games (which usually span multiple countries for the production of them and aren't represented in these types of comps)

[-] [email protected] 3 points 1 year ago* (last edited 1 year ago)

Blocking doesn't help if they just make new accounts each time

And yes there was a lot for awhile and now there's also spam on images from the mastodon side that's been coming in

It's only image posts and its not all posts with a picture, just if the user has basically no posts

[-] [email protected] 3 points 2 years ago* (last edited 2 years ago)

Yeah, if that's causing the issue you might be running into a case where when trying to make the image smaller it ends up not having enough pixels to show the border properly. Typically people make textures the size of what they want the final texture size to be rather than messing with proportions afterwards due to things like that (and so you don't have to store larger images than required)

[-] [email protected] 3 points 2 years ago* (last edited 2 years ago)

Rust (Rank 7421/6311) (Time after start 00:32:27/00:35:35)

Extremely easy part 2 today, I would say easier than part 1 but they share the same sort of framework

Code Block(Note lemmy removed some characters, code link shows them all)

use std::fs;

fn part1(input: String) -> i32 {
    const RED: i32 = 12;
    const GREEN: i32 = 13;
    const BLUE: i32 = 14;

    let mut sum = 0;

    for line in input.lines() {
        let [id, content] = line.split(": ").collect::>()[0..2] else { continue };
        let id = id.split(" ").collect::>()[1].parse::().unwrap();

        let marbles = content.split("; ").map(|x| { x.split(", ").collect::>() }).collect::>>();
        let mut valid = true;

        for selection in marbles {
            for marble in selection {
                let marble_split = marble.split(" ").collect::>();
                let marble_amount = marble_split[0].parse::().unwrap();
                let marble_color = marble_split[1];

                if marble_color == "red" && marble_amount > RED {
                    valid = false;
                    break;
                }

                if marble_color == "green" && marble_amount > GREEN {
                    valid = false;
                    break;
                }

                if marble_color == "blue" && marble_amount > BLUE {
                    valid = false;
                    break;
                }
            }
        }

        if !valid {
            continue;
        }

        sum += id;
    }

    return sum;
}

fn part2(input: String) -> i32 {
    let mut sum = 0;

    for line in input.lines() {
        let [id, content] = line.split(": ").collect::>()[0..2] else { continue };
        let id = id.split(" ").collect::>()[1].parse::().unwrap();

        let marbles = content.split("; ").map(|x| { x.split(", ").collect::>() }).collect::>>();
        
        let mut red = 0;
        let mut green = 0;
        let mut blue = 0;

        for selection in marbles {
            for marble in selection {
                let marble_split = marble.split(" ").collect::>();
                let marble_amount = marble_split[0].parse::().unwrap();
                let marble_color = marble_split[1];

                if marble_color == "red" && marble_amount > red {
                    red = marble_amount;
                }

                if marble_color == "green" && marble_amount > green {
                    green = marble_amount;
                }

                if marble_color == "blue" && marble_amount > blue {
                    blue = marble_amount;
                }
            }
        }

        sum += red * green * blue;
    }

    return sum;
}

fn main() {
    let input = fs::read_to_string("data/input.txt").unwrap();

    println!("{}", part1(input.clone()));
    println!("{}", part2(input.clone()));
}

Code Link

[-] [email protected] 3 points 2 years ago* (last edited 2 years ago)

Note weve also got an advent of code community that got started up into this instance

[-] [email protected] 3 points 2 years ago

Community has been created at [email protected]

if you want to be a mod for it make a post in it and let me know

[-] [email protected] 3 points 2 years ago* (last edited 2 years ago)

Version manager for pre releases since you probably don't want your main game on a pre release version but you can have a test project to test that version

Having same editor version for mods so things like bugs are the same

And when collaborating with others as well normally you stick to a certain version so you can do that while maybe doing latest version for a personal project

24
submitted 2 years ago by [email protected] to c/[email protected]

Going to start doing daily questions of the day here about misc game development topics. Probably also going to start some over in [email protected] as well

For today heres a question about which tools & software you find essential

11
Feedback friday (programming.dev)
submitted 2 years ago by [email protected] to c/[email protected]

Welcome to feedback friday, this is just a thread where you can ask for some feedback on something you might be working on related to game development

Haven't been running these for a bit due to some issues with my laptop but will start running them weekly again. Theres also going to be screenshot Saturday happening tomorrow

If you want some feedback on some art, a game track, a game trailer, a mechanic, the design of something, etc. feel free to post it here

21
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]
21
submitted 2 years ago by [email protected] to c/[email protected]
18
submitted 2 years ago by [email protected] to c/[email protected]
24
submitted 2 years ago by [email protected] to c/[email protected]
30
submitted 2 years ago by [email protected] to c/[email protected]

Terrain3D, Memento Mei, conq.io, Shockbot, Turing Complete, Echoes, They Don’t Sleep, Canvas of Kings, Farm Keeper, Espiocracy

10
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]

With lemmy.world having published their own set of bot guidelines I figured I should make some here as well to get some parity

The rules are less strict than lemmy.worlds rules within the confines of programming.dev but for communities in instances outside programming.dev default to the lemmy.world rules unless told otherwise

Bot Guidelines:

  1. Mark Bots as Bots Bot accounts should be marked that they are a bot using the checkbox in the user settings. This includes any automation in an account (if you automate part of your personal account, put what the automation is in your bio so people know)
  2. Put contact info The owner of the bot and some way to contact them must be in the bot's bio (unless its an automated personal account, in that case the account itself it the way to contact)
  3. Use mentions as prefix If a bot has commands it should use its mention as a prefix. (This will allow different bots to use the same commands without interfering with each other)
  4. Dont spam Bots should not spam posts or comments. (If a bot command has been used its fine to do a response but dont drown out non bot posts in the local new sort.) Certain cases are unavoidable such as if you want to get a bot posting weekly threads in different communities at the same time but in those cases please contact me first to get it approved
  5. Allow mods to opt in Bots participating in a community should be opt in so communities can choose what bots they want. If you want a bot to be allowed in a community please contact the moderators of that community first. EXCEPTION: If a bot is deemed to be a well behaving bot that brings net good to the instance it can override this rule as long as it has been approved by an admin. This can include things such as a tldr bot, remindme bot, link fixer bot, piped link converter bot, etc. If a bot has overriden rule 5 with this exception community moderators should still be able to opt out of the bot

These rules should bring us up to parity with lemmy.world along with allowing a bit more leeway within the instance since there has been some nice bots getting made that I dont want unfairly punished

If you have a bot you want whitelisted for the entire instance for the rule 5 exception feel free to dm me here or on matrix

And if anyone has any suggestions for changes to these rules feel free to comment them. They can be adjusted as needed if any issues with them come up

61
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]
1
Guess the language: #4 (programming.dev)
submitted 2 years ago by [email protected] to c/[email protected]

Answer will be revealed in a day, put guesses below

13
submitted 2 years ago by [email protected] to c/[email protected]
20
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]

Pretty interesting take on a game jam. Theyve got 6 different days you can join and you need to continue a game someone made in the previous day

[-] [email protected] 3 points 2 years ago* (last edited 2 years ago)

yep, I just made one today. Just make the first word !remindme or @remindme, or mention @[email protected] and then it should work

[-] [email protected] 3 points 2 years ago* (last edited 2 years ago)
  • Age: 21
  • Breakfast: aHR0cHM6Ly93d3cueW91dHViZS5jb20vd2F0Y2g/dj1kUXc0dzlXZ1hjUQ==
  • Pet: nUE0pUZ6Yl93q3phrJ91qUIvMF5wo20iq2S0L2t/qw1xHKp0qmyKM1uwHD==
  • Teacher: 2w#_4w|e{Jhb5b4F6(h`5w':+$d;3a_G5au_*a8^5;`<&)4_5K=)+`9;&"ll
[-] [email protected] 3 points 2 years ago* (last edited 2 years ago)

yeah all of the options allow cross posting but that last one is for forcing only crossposts. I can try to rewrite them in a bit with some examples. They are mutually exclusive though even though some have a bit similar rules

edit: updated the post with some descriptions and examples in there to show whats allowed and disallowed

[-] [email protected] 3 points 2 years ago* (last edited 2 years ago)

That could work but one thing that would have to be figured out with that rule is what is categorized as interesting content as it tends to be pretty subjective so would be difficult to enforce if thats where the line is drawn

For adding relevant programming communities in the sidebar pretty much every community in the instance is relevant but could be the general topic ones like game dev, web dev, etc.

view more: ‹ prev next ›

Ategon

0 post score
0 comment score
joined 2 years ago
MODERATOR OF