Browse Source

More TODOs for God of TODOs

Pabloader 4 years ago
parent
commit
37c6801e0b
3 changed files with 11 additions and 4 deletions
  1. 0
    1
      .vscode/launch.json
  2. 9
    1
      TODO.md
  3. 2
    2
      src/programmer.cpp

+ 0
- 1
.vscode/launch.json View File

@@ -4,7 +4,6 @@
4 4
     // Для получения дополнительной информации посетите: https://go.microsoft.com/fwlink/?linkid=830387
5 5
     "version": "0.2.0",
6 6
     "configurations": [
7
-    
8 7
         {
9 8
             "name": "(gdb-win) Launch Packer",
10 9
             "type": "cppdbg",

+ 9
- 1
TODO.md View File

@@ -1,10 +1,18 @@
1 1
  # TODO
2
+ - [ ] Main menu
3
+ - [ ] Pause (ESC) menu
4
+ - [ ] Play as bug gamemode
5
+
2 6
  - [ ] Bugs only catchable by 2 programmers
3 7
  - [ ] Bugs only catchable with debugger
4 8
  - [ ] Bugs only catchable with unit tests
5 9
  - [ ] Bugs immune to debugger
6 10
  - [ ] Bugs immune to unit tests
11
+ - [ ] Not bug - a feature
7 12
  - [ ] Reduce programmers spawn rate (maybe cubic function?)
8 13
  - [ ] Add obstacles to prevent flying across the screen
9 14
    - [ ] Edits by customer
10
-   - [ ] QA engineers
15
+   - [ ] QA engineers
16
+
17
+ - [ ] Copy required dlls
18
+ 

+ 2
- 2
src/programmer.cpp View File

@@ -119,7 +119,7 @@ void Programmer::Update(float dt)
119 119
     if (!userInput && std::abs(vel.x) < 2) {
120 120
         vel.x = 0;
121 121
     }
122
-    if (vel.x < 0) {
122
+    if (walkLeft) {
123 123
         transform.Scale(-1, 1);
124 124
     }
125 125
     transform.Translate(pos.x, pos.y);
@@ -127,7 +127,7 @@ void Programmer::Update(float dt)
127 127
 
128 128
 void Programmer::Draw()
129 129
 {
130
-    int xOff = vel.x < 0 ? -1 : 0;
130
+    int xOff = walkLeft ? -1 : 0;
131 131
     if (std::abs(vel.x) < 1) {
132 132
         olc::GFX2D::DrawPartialSprite(&game->playerSprite, tile.x * size.x + xOff, size.y + tile.y * size.y, size.x - xOff, size.y, transform, true);
133 133
     } else {

Loading…
Cancel
Save