ソースを参照

More TODOs for God of TODOs

Pabloader 4年前
コミット
37c6801e0b
3個のファイルの変更11行の追加4行の削除
  1. 0
    1
      .vscode/launch.json
  2. 9
    1
      TODO.md
  3. 2
    2
      src/programmer.cpp

+ 0
- 1
.vscode/launch.json ファイルの表示

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

+ 9
- 1
TODO.md ファイルの表示

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

+ 2
- 2
src/programmer.cpp ファイルの表示

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

読み込み中…
キャンセル
保存