From 110f95ae6f8a35bfc3a877c30317b1eb82dba5e5 Mon Sep 17 00:00:00 2001 From: = <=> Date: Mon, 8 Jul 2024 10:37:30 +0900 Subject: [PATCH] vault backup: 2024-07-08 10:37:30 --- 00 - MoC/010-Programming Language.md | 2 +- {C => 04 - Permanent Notes}/C++.md | 0 04 - Permanent Notes/Classes in C++.md | 2 +- 04 - Permanent Notes/Memory Allocation in C and C++.md | 2 +- 04 - Permanent Notes/One-Way Platforms.md | 2 +- .../Passing by value VS Passing by reference.md | 2 +- 04 - Permanent Notes/Pointers in C and C++.md | 2 +- 04 - Permanent Notes/Strings in C and C++.md | 2 +- 04 - Permanent Notes/Structs in C and C++.md | 2 +- 04 - Permanent Notes/Useful Nodes in Event Graph.md | 7 ------- 04 - Permanent Notes/argc and argv in C and C++.md | 2 +- Computer Algorithms.md | 0 12 files changed, 9 insertions(+), 16 deletions(-) rename {C => 04 - Permanent Notes}/C++.md (100%) create mode 100644 Computer Algorithms.md diff --git a/00 - MoC/010-Programming Language.md b/00 - MoC/010-Programming Language.md index 19a3bc8..2981881 100644 --- a/00 - MoC/010-Programming Language.md +++ b/00 - MoC/010-Programming Language.md @@ -6,7 +6,7 @@ tags: ## List of Programming Languages - [[011-Rust]] -- [[C/C++]] +- [[C++]] - [[JavaScript]] ## Non Turing-Complete/Markup Languages diff --git a/C/C++.md b/04 - Permanent Notes/C++.md similarity index 100% rename from C/C++.md rename to 04 - Permanent Notes/C++.md diff --git a/04 - Permanent Notes/Classes in C++.md b/04 - Permanent Notes/Classes in C++.md index a9959de..8505436 100644 --- a/04 - Permanent Notes/Classes in C++.md +++ b/04 - Permanent Notes/Classes in C++.md @@ -68,5 +68,5 @@ Reimu had a good life Note that the latest object created is freed first because as we've talked before, computer stores memory using [[Stack|stacks]], and stacks are LIFO. Also Note that destructors are called automatically when the object goes out of scope. --- -Categories: [[C/C++]] +Categories: [[C++]] References: diff --git a/04 - Permanent Notes/Memory Allocation in C and C++.md b/04 - Permanent Notes/Memory Allocation in C and C++.md index 8904b3d..f410495 100644 --- a/04 - Permanent Notes/Memory Allocation in C and C++.md +++ b/04 - Permanent Notes/Memory Allocation in C and C++.md @@ -49,6 +49,6 @@ valgrind ./program ``` --- -Categories: [[C/C++]], [[Memory Management]], [[CS50 - Introduction]] +Categories: [[C++]], [[Memory Management]], [[CS50 - Introduction]] References: Created: 2024-06-13 diff --git a/04 - Permanent Notes/One-Way Platforms.md b/04 - Permanent Notes/One-Way Platforms.md index 893f44f..2eabe4e 100644 --- a/04 - Permanent Notes/One-Way Platforms.md +++ b/04 - Permanent Notes/One-Way Platforms.md @@ -55,7 +55,7 @@ void TraceForPlatform(self) { //what objects to search for [OneWayCollision], ignoreSelf = True - ) && playerMovement.vector.z < 0 //falling) { + ) && playerMovement.velocity.z < 0 //falling) { setCollisionResponseToChannel( CapsuleComponent, OneWayCollision, diff --git a/04 - Permanent Notes/Passing by value VS Passing by reference.md b/04 - Permanent Notes/Passing by value VS Passing by reference.md index 8d4cd98..7bf5ab0 100644 --- a/04 - Permanent Notes/Passing by value VS Passing by reference.md +++ b/04 - Permanent Notes/Passing by value VS Passing by reference.md @@ -50,6 +50,6 @@ void swap(int* x, int* y) { See how the function takes a _REFERENCE_ to the values? this is called _passing by reference_. If we want to change the values stored in that memory, we need to pass them by reference, and mutate the value within the function via dereferencing. --- -Categories: [[C/C++]], [[CS50 - Introduction]] +Categories: [[C++]], [[CS50 - Introduction]] References: Created: 2024-06-13 diff --git a/04 - Permanent Notes/Pointers in C and C++.md b/04 - Permanent Notes/Pointers in C and C++.md index a245a52..af5f0e8 100644 --- a/04 - Permanent Notes/Pointers in C and C++.md +++ b/04 - Permanent Notes/Pointers in C and C++.md @@ -35,6 +35,6 @@ int main(void) { --- -Categories: [[C/C++]], [[CS50 - Introduction]] +Categories: [[C++]], [[CS50 - Introduction]] References: Created: 2024-06-13 diff --git a/04 - Permanent Notes/Strings in C and C++.md b/04 - Permanent Notes/Strings in C and C++.md index b09f263..9b6a9a4 100644 --- a/04 - Permanent Notes/Strings in C and C++.md +++ b/04 - Permanent Notes/Strings in C and C++.md @@ -23,6 +23,6 @@ While yes you CAN access this, it's best to always access only the characters we --- -Categories: [[C/C++]], [[Data Types]], [[CS50 - Introduction]] +Categories: [[C++]], [[Data Types]], [[CS50 - Introduction]] References: Created: 2024-06-13 diff --git a/04 - Permanent Notes/Structs in C and C++.md b/04 - Permanent Notes/Structs in C and C++.md index eea7b94..624b8a6 100644 --- a/04 - Permanent Notes/Structs in C and C++.md +++ b/04 - Permanent Notes/Structs in C and C++.md @@ -21,6 +21,6 @@ struct { ``` --- -Categories: [[C/C++]], [[CS50 - Introduction]] +Categories: [[C++]], [[CS50 - Introduction]] References: Created: 2024-06-13 diff --git a/04 - Permanent Notes/Useful Nodes in Event Graph.md b/04 - Permanent Notes/Useful Nodes in Event Graph.md index 7ae50a7..747fbc2 100644 --- a/04 - Permanent Notes/Useful Nodes in Event Graph.md +++ b/04 - Permanent Notes/Useful Nodes in Event Graph.md @@ -18,7 +18,6 @@ If we have a switch/branch that connects to the same function, instead of copy p ## Flip Flop Will alternate between two inputs. Inputs can be events as well. - ## Clamp Sets the min/max possible value of a variable @@ -43,9 +42,7 @@ to do this in event graph, we need some sort of way to grab the current sprite a ![[Pasted image 20240623171120.png]] ## Timeline - ^084440 - Timeline node allows values to be keyframed over time. There are three outputs: - Update - Finished @@ -70,9 +67,7 @@ Here we passed a function `Set Sprite`, where we switch to a new sprite. This is Oh right, if the timeline is for some action that's going to be repeated over and over, _MAKE SURE THAT IT'S CONNECTED TO PLAY FROM START_, or else it'll automatically save the last state it was in and immediately start from there rather than the beginning. ## Lerp - ^a8fe06 - Lerp stands for "Linear Interpolation". We input A, B and Alpha, which serves as a parameter that acts as the mediator. To reuse the image I made before: ![[Pasted image 20240621221359.png|450]] Here, the `t` serves the same purpose as alpha in lerp. @@ -113,9 +108,7 @@ In the main event graph, we can just use `delay` for creating delays. For functi To activate an event after a set delay, we have to get a `create event` node from the `Event` out from `Set timer by event`, and call our event there. The `time` is where you input your desired delay time. This can be used for enemy AI controls or [[Resetting the Game]] ## Add Call to Parent Function - ^1b4fef - This will be used for all child instances where we want to do some extra, child-exclusive logic not present in parent's function. ![[Pasted image 20240707000521.png]] diff --git a/04 - Permanent Notes/argc and argv in C and C++.md b/04 - Permanent Notes/argc and argv in C and C++.md index 7a300b5..30ad5d4 100644 --- a/04 - Permanent Notes/argc and argv in C and C++.md +++ b/04 - Permanent Notes/argc and argv in C and C++.md @@ -39,6 +39,6 @@ int main(int argc, char* argv[]) { --- -Categories: [[C/C++]] , [[CS50 - Introduction]] +Categories: [[C++]] , [[CS50 - Introduction]] References: Created: 2024-06-13 diff --git a/Computer Algorithms.md b/Computer Algorithms.md new file mode 100644 index 0000000..e69de29