5 Commits

Author SHA1 Message Date
ProtoSharkk
26f8a323d3 Merge pull request #11 from ProtoSharkk/dash
Dashing into enemies creates a shockwave that pushes them away
2024-10-28 17:47:09 -07:00
7b15dbb593 Dashing into enemies creates a shockwave that pushes them away
You don't take damage from this
2024-10-27 21:27:38 -07:00
ProtoSharkk
bd1090aabe Merge pull request #10 from ProtoSharkk/variants
Gun thrower ratbots
2024-10-27 19:19:14 -07:00
Iazubi
1e878b2b67 Update README.md 2024-10-27 02:05:58 -07:00
Iazubi
8f970dfbc2 Update README.md 2024-10-27 02:01:45 -07:00
2 changed files with 64 additions and 19 deletions

View File

@@ -94,9 +94,21 @@ public class Teo : MonoBehaviour
).normalized * dashDistance); ).normalized * dashDistance);
// Wait 0.2 seconds before ending the dash // Wait 0.2 seconds before ending the dash
yield return new WaitForSeconds(0.2F); yield return new WaitForSeconds(0.2F);
// Re enable collision and linearDamping after dash complete // Re enable collision and linearDamping after dash
dashing = false; dashing = false;
collider.enabled = true;
controller.linearDamping = 15; controller.linearDamping = 15;
// Push enemies away at end of dash
foreach (Collider2D hit in Physics2D.OverlapCircleAll(
transform.position, 3
)) {
if (hit.tag != "Ratbot") continue;
hit.GetComponent<Rigidbody2D>().AddRelativeForce(
(hit.transform.position - transform.position)
.normalized * dashDistance
);
}
// Don't take damage at end of dash
yield return new WaitForSeconds(0.2F);
collider.enabled = true;
} }
} }

View File

@@ -1,5 +1,43 @@
# RatStabber # RatStabber
![TeoSword_clear](https://github.com/user-attachments/assets/5cc699a3-c4a2-47c5-9d7f-10f8546ad48f)
### Fight off the ratbots and save the rat cities as the hunky man Teo himself! (and all the goofy ai generated images of him and everyone else)
## LORE:
After successfully defeating the Paulbots, the rat took components of the Paulbots and improved the design to create the rat bots. He could finally get revenge on Paul for the destruction of his kind. However, the Paul Bots managed to regain consciousness inside of the new and improved Rat Bots, making the Ratbots turn against the rat, taking his weapons and his last hopes of defeating Paul. You (Teo) have arrived to protect the rat and help him figure out a way to stop the now evil rat bots and discover the dark, hidden secrets while ending this war once and for all.
## And that's the game... I guess...
### Alright, Here's the Basic Vision: ### Alright, Here's the Basic Vision:
- The Player (Teo) moves around an infinite field with the camera following the player - The Player (Teo) moves around an infinite field with the camera following the player
@@ -39,7 +77,7 @@
- [x] Wave spawns enemies - [x] Wave spawns enemies
- [x] Detect when wave ends - [x] Detect when wave ends
- [x] Activate new waves after powerup has been chosen by player - [x] Activate new waves after powerup has been chosen by player
- [ ] Dash ability - [x] Dash ability
### Enemy: ### Enemy:
- [x] All Enemies have simple pathfinding towards the player - [x] All Enemies have simple pathfinding towards the player
@@ -60,34 +98,29 @@
### In-Game UI: ### In-Game UI:
- [x] Player health on bottom left - [x] Player health on bottom left
- [ ] Round / Wave on bottom left (?) - [x] Round / Wave on bottom left (?)
- [ ] Maybe show enemy remaining count? (We can make a hard mode that removes UI except health) - [ ] Maybe show enemy remaining count? (We can make a hard mode that removes UI except health)
- [ ] Upon round end, pop-up menu for selecting powerup - [ ] Upon round end, pop-up menu for selecting powerup
- [x] Damage - [x] Damage
- [ ] Attack distance - [x] Attack distance
- [ ] Attack range - [x] Attack range
- [ ] Attack cooldown - [x] Attack cooldown
- [x] Health - [x] Health
- [x] Speed - [x] Speed
- [ ] Dash cooldown - [x] Dash cooldown
- [ ] Dash distance - [x] Dash distance
- [ ] (Only an idea for now) Have a status bar at the bottom right to show your current stats - [ ] (Only an idea for now) Have a status bar at the bottom right to show your current stats
### UI / AUDIO: ### UI / AUDIO:
- [ ] Menu Screen - [x] Menu Screen
- [ ] Pause Screen - [ ] Pause Screen
- [ ] Option for returning to main menu / resume - [ ] Option for returning to main menu / resume
- [ ] Menu Music - [x] Menu Music
- [ ] Level Music - [x] Level Music
- [ ] A section where the player can view unlocked lore by completing more of the game - [x] A section where the player can view unlocked lore by completing more of the game
- [ ] LORE GETS UNLOCKED EVERY 10 ROUNDS BEATEN + BOSS BEATEN
## LORE:
After successfully defeating the Paul bots, the rat improved upon the design to create the rat bots. He could finally get revenge on Paul for the destruction of his kind. However, the Paul Bots managed to regain consciousness inside of the new and improved Rat Bots, in-turn making the Ratbots turn against the rat, taking his weapons and his last hopes of defeating Paul as well. You (Teo) have arrived to protect the rat and help him figure out a way to stop the now evil rat bots and put an end to this war once and for all.