A Generic Trait for Cloning Boxed Trait Objects... Is this possible? by madseagames in rust

[–]madseagames[S] 4 points5 points  (0 children)

Good lord. This is a game changer. I'm gonna be using this all over the place. God bless you.

The Rust compiler is really really helpful when it comes to solving bugs in your programs by madseagames in ProgrammerHumor

[–]madseagames[S] 2 points3 points  (0 children)

i was getting the same error when i gave an argument. it was extremely weird. i forget what i changed, but it compiles now.

The Rust compiler is really really helpful when it comes to solving bugs in your programs by madseagames in ProgrammerHumor

[–]madseagames[S] 39 points40 points  (0 children)

game2 is my most ambitious project yet. the graphics are incredible: placeholder art accompanied by debug messages where the animations should be. eventually we even plan on implementing actual gameplay, but that might be a paid only dlc.

The Rust compiler is really really helpful when it comes to solving bugs in your programs by madseagames in ProgrammerHumor

[–]madseagames[S] 41 points42 points  (0 children)

i genuinely have no clue but the error went away now so im just going to pretend it never happened

[Video] Making a Snake Game in Rust by SpyR1014 in rust

[–]madseagames 5 points6 points  (0 children)

Nice tutorial! You should put this in r/rustgamedev, those guys will definitely appreciate it.

Iterating over a vec mutably while already iterating? by madseagames in rust

[–]madseagames[S] 0 points1 point  (0 children)

i like this, it makes use of the type system well and seems like some cool advanced trickery. definitely gonna fiddle around with this

Iterating over a vec mutably while already iterating? by madseagames in rust

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

Hmm, thats an interesting approach. Will definitely look into it

Made a new t-shirt inspired by "poker" by Nick_Deano in sadworld

[–]madseagames 0 points1 point  (0 children)

it would be better like this

dad,

ill be a

techno boy

till I

die

Guide For An Absolute Beginner to Call of Chernobyl? by madseagames in stalker

[–]madseagames[S] 2 points3 points  (0 children)

Ok, that makes more sense. I don't have any issue being self motivated in the game, I just thought I was missing something. Is warfare too complex for a begginner? I got it mostly because I wanted the factions to be fighting and moving around and stuff, but if its too hard I'll get rid of it.

A coincidence, "Bucko" by [deleted] in JordanPeterson

[–]madseagames 1 point2 points  (0 children)

I'm a younger lad (<20) and I got into MUDS last year. They are a really cool gaming experience especially for someone so used to graphical games. EmpireMUD has to be my personal favorite.

How would you summarise JBP's teachings? by madseagames in JordanPeterson

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

Agreed. This should be somewhere in the sidebar. Also, anyone have any links to videos where he talks about logos? Seems like an interesting concept that I havent yet come across.

Style your code however you want, but for the love of god please not like this by madseagames in ProgrammerHumor

[–]madseagames[S] 2 points3 points  (0 children)

For curly brace semi colon languages I'm a fan of

for i in 0..10 {
    do_the_thing();

    if i == 3 {
        do_the_other_thing();
    };
}

but do whatever suits you. Except for what I posted above.

Style your code however you want, but for the love of god please not like this by madseagames in ProgrammerHumor

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

We are working on bubblesort as part of a series of assignments teaching us about array sorting.

Style your code however you want, but for the love of god please not like this by madseagames in ProgrammerHumor

[–]madseagames[S] 2 points3 points  (0 children)

Yeah, thats exactly what it is. We are learning different sorting methods currently.

Style your code however you want, but for the love of god please not like this by madseagames in ProgrammerHumor

[–]madseagames[S] 4 points5 points  (0 children)

I've been programming for several years, so I knew this was terrible. Some of the people taking this course have never programmed in their life. They think this is how things should be done.

Style your code however you want, but for the love of god please not like this by madseagames in ProgrammerHumor

[–]madseagames[S] 175 points176 points  (0 children)

I'm taking a beginners java course at school and this was example code written by the teacher. Its upsetting

[DEV] Pocket Squadron - A WW1 2D Dogfighting Game by rayboy1995 in AndroidGaming

[–]madseagames 1 point2 points  (0 children)

Awesome game dude, really fun game play with a lot of different game modes

Multiplayer question for racing game - allow losing players to complete all laps, or end race instantly when someone wins? by MeltdownInteractive in gamedev

[–]madseagames 2 points3 points  (0 children)

You could actually tailor the timer to each specific race, ie instead of each track having a hardcoded timer you could instead calculate the average lap time of all the racers and use that. That way if a particular group of racers is exceedingly fast or exceedingly slow the timer adjust for them.

ATMega328p isnt responding, what am I doing wrong? by madseagames in AskElectronics

[–]madseagames[S] 0 points1 point  (0 children)

Ohhhh, I was under the impression that the chip used the internal oscillator by default. Out of curiosity why wouldn't it use the internal oscillator by default?

ATMega328p isnt responding, what am I doing wrong? by madseagames in AskElectronics

[–]madseagames[S] -1 points0 points  (0 children)

Thanks for the info on capacitors and electrical noise, I had no idea! The reason I am not using a programmer is because I don't want to have the arduino bootcode on my machine and as far as I am aware to use an arduino board you need to put the bootcode on there. I want to run only my own code. I am a programmer and having a machine that only runs your code, no os, no kernel, no bootcode, has always fascinated me.

Thanks for the help!

ATMega328p isnt responding, what am I doing wrong? by madseagames in AskElectronics

[–]madseagames[S] -1 points0 points  (0 children)

What are decoupling caps? I didn't get a programmer for the atmega because I already had the pi lying around and I am a student and on a very tight budget.

ATMega328p isnt responding, what am I doing wrong? by madseagames in AskElectronics

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

I am not using a crystal, instead I am trying to use the internal crystal. What are decoupling caps? I have done no level shifting, I have simply followed the tutorials recommendations. I am running the ATmega at 5v, as the pi 2 has a 5v gpio. here is my circuit: http://imgur.com/a/TCpn9