Skip to content

Commit

Permalink
vault backup: 2024-07-08 10:37:30
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Jul 8, 2024
1 parent a3e7d64 commit 110f95a
Show file tree
Hide file tree
Showing 12 changed files with 9 additions and 16 deletions.
2 changes: 1 addition & 1 deletion 00 - MoC/010-Programming Language.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ tags:

## List of Programming Languages
- [[011-Rust]]
- [[C/C++]]
- [[C++]]
- [[JavaScript]]

## Non Turing-Complete/Markup Languages
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion 04 - Permanent Notes/Classes in C++.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
2 changes: 1 addition & 1 deletion 04 - Permanent Notes/Memory Allocation in C and C++.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ valgrind ./program
```

---
Categories: [[C/C++]], [[Memory Management]], [[CS50 - Introduction]]
Categories: [[C++]], [[Memory Management]], [[CS50 - Introduction]]
References:
Created: 2024-06-13
2 changes: 1 addition & 1 deletion 04 - Permanent Notes/One-Way Platforms.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion 04 - Permanent Notes/Pointers in C and C++.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ int main(void) {


---
Categories: [[C/C++]], [[CS50 - Introduction]]
Categories: [[C++]], [[CS50 - Introduction]]
References:
Created: 2024-06-13
2 changes: 1 addition & 1 deletion 04 - Permanent Notes/Strings in C and C++.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion 04 - Permanent Notes/Structs in C and C++.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ struct {
```

---
Categories: [[C/C++]], [[CS50 - Introduction]]
Categories: [[C++]], [[CS50 - Introduction]]
References:
Created: 2024-06-13
7 changes: 0 additions & 7 deletions 04 - Permanent Notes/Useful Nodes in Event Graph.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand All @@ -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.
Expand Down Expand Up @@ -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]]
Expand Down
2 changes: 1 addition & 1 deletion 04 - Permanent Notes/argc and argv in C and C++.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ int main(int argc, char* argv[]) {
---
Categories: [[C/C++]] , [[CS50 - Introduction]]
Categories: [[C++]] , [[CS50 - Introduction]]
References:
Created: 2024-06-13
Empty file added Computer Algorithms.md
Empty file.

0 comments on commit 110f95a

Please sign in to comment.