It's cool to see all of the different clips from moments where I couldn't be on your dev streams. Can't wait for more of these in the future 👌 (Especially that I now have school and work, so I can't hop on your streams anymore 😔)
If you're wondering how that happened with your code just resetting (you probably forgot to save), just wait until your entire project gets bricked by UUID errors. I had to pull a back up and rebuild the entire project. It almost happened again the other day, when I upgraded from 4.1 to 4.1.1, but the errors were few and I fixed the materials that had the error by resetting the texture. Now I upgraded to 4.1.2 and it's smooth sailing. I make backups more frequently now, because I don't trust the software to not go totallly borq lol
C# generally tries to stop you from doing silly things. For example casting a bool to an int won't do what you want because a true value is going to be a series of 1s that would result in a value of -1 (Or possibly false is -1, I forget how it works). So multiplying by isRunning would make you go backwards. Typically what you want is the Conditional (ternary) operator ? : so you could do (isRunning ? 1 : 0) or something like that
Meanwhile C++ just converts true to 1 and false to 0 (implicitely even). Exactly what a sane person would expect this convertion to do. I would understand C# requiring it to be explicit, because an implicit convertion could be an unintentional bug, but imo explicit (int)bool should work right out the gate.
Hey what is the soundtrack at 4:35? Sounds sick! On the single-line-code part: Reading only the first few pages of the book "Clean Code" kicked alot of those bad habbits from me, i was definitely guilty of that myself
I blame Java for absurdly long lines: StupidlyLongPackageName.StupidlyLongPackageClass.StupidlyLongFactoryName.StupidlyLongMethodName("Stuipdly long parameter string", 0,0,"bazfoobar");
Putting all your code on one line is the 'carrying all your grocery bags into the house at once' of programming.
Look, it's been a while, didn't know how to finish!
Yeah this is pretty much game development.
It's cool to see all of the different clips from moments where I couldn't be on your dev streams.
Can't wait for more of these in the future 👌 (Especially that I now have school and work, so I can't hop on your streams anymore 😔)
If you're wondering how that happened with your code just resetting (you probably forgot to save), just wait until your entire project gets bricked by UUID errors. I had to pull a back up and rebuild the entire project. It almost happened again the other day, when I upgraded from 4.1 to 4.1.1, but the errors were few and I fixed the materials that had the error by resetting the texture. Now I upgraded to 4.1.2 and it's smooth sailing. I make backups more frequently now, because I don't trust the software to not go totallly borq lol
So why don't you use source control?
Awesome stuff, Jace!
Yay New vid Happy to See it
C# generally tries to stop you from doing silly things. For example casting a bool to an int won't do what you want because a true value is going to be a series of 1s that would result in a value of -1 (Or possibly false is -1, I forget how it works). So multiplying by isRunning would make you go backwards.
Typically what you want is the Conditional (ternary) operator ? :
so you could do (isRunning ? 1 : 0) or something like that
Meanwhile C++ just converts true to 1 and false to 0 (implicitely even). Exactly what a sane person would expect this convertion to do. I would understand C# requiring it to be explicit, because an implicit convertion could be an unintentional bug, but imo explicit (int)bool should work right out the gate.
Some of the stuff Jace says could be taken out of context but that's their problem
how to cast a bool to a number in c#: int number = myBoolVariable ? 1 : 0;
casting is the one thing that annoyed the hell outta me in C# in general. Felt like a downstep from C++ where everything was just implicit
Forget whatever the core game mechanic used to be, it should now be chat random walk races.
Loved this video! I wish I could catch more of your streams but I usually go back and try to catch up :) I love seeing your progress!
Hey what is the soundtrack at 4:35? Sounds sick!
On the single-line-code part: Reading only the first few pages of the book "Clean Code" kicked alot of those bad habbits from me, i was definitely guilty of that myself
Step-by-step guide to a step-by-step game, with your instructor Chat.
So much Joy in it ^^
I blame Java for absurdly long lines:
StupidlyLongPackageName.StupidlyLongPackageClass.StupidlyLongFactoryName.StupidlyLongMethodName("Stuipdly long parameter string", 0,0,"bazfoobar");