Making an Advanced Shmup #67 - Trails Export - Pico-8 Hero

  Рет қаралды 696

Lazy Devs

Lazy Devs

Күн бұрын

Пікірлер: 2
@MrSleightofhand
@MrSleightofhand 9 ай бұрын
Ah, sorry about that! I mean, clearly you know how to make stuff actually work which is the important thing so it doesn't really matter in the grand scheme of things. But I like talking about this kind of thing and have some time on my hands so if you'll forgive me..... I don't know if this will help or just confuse things further but I think it's more useful to think of, for instance, -5 not at 0 - 5, but as -1*5. Because of order of operations the multiplication "binds" more tightly than addition/subtraction which is why the minus sticks to a specific value rather than applying to the expression as a whole. In that sense unary minus _is_ an operation and it _is_ actually distinct from subtraction. Think of a number line with positive numbers off to the right and negative numbers off to the left. Then subtraction is the _distance_ between two values, whereas negating a value reverses its _direction._ So if the number 5 is an arrow pointing five units to the right, then -5 is just that same arrow but flipped so that it now points to the left. Negate it again and we just flip its direction back to the right: -(-5) = 5. That's where my original comment came from. In the same sense that unary minus reverses the "direction" of a number, 'not' reverses the "direction" of a boolean from true to false or vice versa and it has the same operator "stickiness" as multiplication so it also applies to its specific argument rather than a whole expression. So "not A or B" is equivalent to "B or not A" because the 'not' sticks to the 'A'. But, in general, neither of those are equivalent to "not (A or B)" which applies the 'not' to the whole expression. As a side note: thinking of -5 as 0 - 5 isn't wrong and you can still get the idea of a direction by thinking of subtraction as drawing an arrow on the number line. For any subtraction "n - m" draw the arrow from m to n. So for 5 - 0 you draw an arrow from 0 to 5 which is an arrow pointing to the right. For 0 - 5 you'd do the opposite, draw the arrow from 5 to 0 which is an arrow to the left. And 0 - (-5) is an arrow from -5 to 0 which is again an arrow pointing right. So either way you still end up with the idea of negative values changing the direction but personally I find it more intuitive to think of multiplication by -1 as "flipping" the direction.
@LazyDevs
@LazyDevs 9 ай бұрын
No need to apologize. On the contrary, thank you for the clarification. This helps!
Cave Retrospective - Ch 7. DoDonPachi Dai-Ou-Jou
27:43
CatPat
Рет қаралды 9 М.
Ouch.. 🤕⚽️
00:25
Celine Dept
Рет қаралды 29 МЛН
龟兔赛跑:好可爱的小乌龟#short #angel #clown
01:00
Super Beauty team
Рет қаралды 91 МЛН
黑的奸计得逞 #古风
00:24
Black and white double fury
Рет қаралды 28 МЛН
бабл ти гель для душа // Eva mash
01:00
EVA mash
Рет қаралды 3,8 МЛН
Minecraft But if Doug says the Name of any Block He Explodes (ft. Pointcrow)
20:50
I built my own 16-Bit CPU in Excel
15:45
Inkbox
Рет қаралды 1,5 МЛН
6 Years of Game Dev In 11 Minutes [REUPLOAD]
11:22
Matt Stevens
Рет қаралды 1,7 М.
I Optimised My Game Engine Up To 12000 FPS
11:58
Vercidium
Рет қаралды 706 М.
I Used Godot For 100 Hours, Here’s What I Learned
35:09
LazyAlarm
Рет қаралды 1,2 МЛН
LEVEL UP Your Game Design Toolkit (Godot for Beginners)
23:30
Coco Code
Рет қаралды 177 М.
PICO-8 0.2.6 | RELEASE OVERVIEW
42:25
Lazy Devs
Рет қаралды 12 М.
I Solved The World's Hardest Maze (with Code)
9:54
Green Code
Рет қаралды 184 М.
Ouch.. 🤕⚽️
00:25
Celine Dept
Рет қаралды 29 МЛН