Skip to content

Commit

Permalink
feat(debug): Add debug information.
Browse files Browse the repository at this point in the history
- move CommonGameKeyListener.java to io.events package.
- add mode  debug display info on the screen wil debug level from  1 to 4.
  • Loading branch information
mcgivrer committed Jan 24, 2023
1 parent 7dcdb01 commit 974384e
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package fr.snapgames.demo.core.events;
package fr.snapgames.demo.core.io.events;


import fr.snapgames.demo.core.Game;
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/fr/snapgames/demo/gdemoapp/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
import fr.snapgames.demo.core.Utils;
import fr.snapgames.demo.core.configuration.Configuration;
import fr.snapgames.demo.core.entity.*;
import fr.snapgames.demo.core.events.CommonGameKeyListener;
import fr.snapgames.demo.core.gfx.Renderer;
import fr.snapgames.demo.core.gfx.Window;
import fr.snapgames.demo.core.io.InputHandler;
import fr.snapgames.demo.core.io.events.CommonGameKeyListener;
import fr.snapgames.demo.core.physic.Material;
import fr.snapgames.demo.core.physic.PhysicEngine;

Expand Down
26 changes: 25 additions & 1 deletion docs/chapter-08-display_debugging_layer.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,28 @@ public class Renderer {
}
}
}
```
```

This is now displaying the following information with debug mode level 2 to 5:

![Level 1](illustrations/figure-debug_display_level_1.png "Level 1")

![Level 2](illustrations/figure-debug_display_level_2.png "Level 2")

![Level 3](illustrations/figure-debug_display_level_3.png "Level 3")

![Level 4](illustrations/figure-debug_display_level_4.png "Level 4")

## Conclusion

According to our last development and changes, we are now able to display some valuable display debug information.

The corresponding code will be found on GitHub
project [Game101](https://github.com/SnapGames/game101/ "go and visit the GitHut project Gam101").

THs specific add wil lbe linked by tha
tag [create-debug-info](https://github.com/SnapGames/game101/release/tag/create-debug-info).

That's all Folk !

McG.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 974384e

Please sign in to comment.