OneLoneCoder / Javidx9

The official distribution of Javidx9's YouTube videos and projects
http://www.youtube.com/javidx9
Other
2.16k stars 1.29k forks source link

PathFinding_AStar and VK codes #25

Open giampierosalvi opened 5 years ago

giampierosalvi commented 5 years ago

Hi, great job with the examples. I will definitely suggest your videos to my students.

In order to make the OneLoneCoder_PathFinding_AStar.cpp compile on linux, besides changing the include directive to include olcConsoleGameEngineSDL.h instead of olcConsoleGameEngine.h, I also had to change VK_SHIFT and VK_CONTROL to VK_LSHIFT and VK_LCONTROL. This because the first two are not defined in olcConsoleGameEngineSDL.h, and there does not seem to exist scancodes in SDL that can be mapped directly to them.

I know this is restrictive because the user can only press the left keys, but would you consider the change to make the code more portable?

Thank you

OneLoneCoder commented 5 years ago

Hmm good catch, I'll leave this one open for when the next round of updates are done. Thanks!