deepnight / gameBase

Base structure for my games, using Heaps framework and Haxe language.
https://deepnight.net
MIT License
614 stars 152 forks source link

Console shortcut #101

Closed putois-blagueur closed 1 year ago

putois-blagueur commented 1 year ago

Hey deepnight,

First of all, thank you for this template. My issue is more like a question, hopefully this is an appropriate channel ? Or maybe there is another, discord or something similar ? Anyway, I'm trying to understand how the console works. In the comment in App.hxml it states that the console should open by pressing '²' but I don't have this key on my keyboard, so I wanted to change the binding, but I can't find it. The closest thing I could find is ctrl+shift+F which seems to open the debug flags window, is is the same thing ? From reading the code it seems the console should do more than juste offering those flags.

Thanks !

dooderino commented 1 year ago

In my experience, it was the '/' key that opened the console. Does that work for you?

On Fri, Sep 15, 2023 at 6:55 AM putois-blagueur @.***> wrote:

Hey deepnight,

First of all, thank you for this template. My issue is more like a question, hopefully this is an appropriate channel ? Or maybe there is another, discord or something similar ? Any, I'm trying to understand how the console works. In the comment in App.hxml it states that the console should open by pressing '²' but I don't have this key on my keyboard, so I wanted to change the binding, but I can't find it. The closest thing I could find is ctrl+shift+F which seems to open the debug flags window, is is the same thing ? From reading the code it seems the console should do more than juste offering those flags.

Thanks !

— Reply to this email directly, view it on GitHub https://github.com/deepnight/gameBase/issues/101, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAYYRX3U6D32OVKPT5XQQYTX2RM6JANCNFSM6AAAAAA4Z3MH2M . You are receiving this because you are subscribed to this thread.Message ID: @.***>

putois-blagueur commented 1 year ago

It does indeed, thank you. Although I'm still confused on the way it works: I see no explicit binding to '/' in the code. Is that a heaps.io builtin ?

deepnight commented 1 year ago

It does open the console (somehow), because "/" is the first character for all console commands. It's implemented somewhere in the h2d.Console 🤷

dooderino commented 1 year ago

Yes, I see it in h2d/Console.hx on line 93ish.

On Fri, Sep 15, 2023 at 9:00 AM Sébastien Bénard @.***> wrote:

It does open the console (somehow), because "/" is the first character for all console commands. It's implemented somewhere in the h2d.Console 🤷

— Reply to this email directly, view it on GitHub https://github.com/deepnight/gameBase/issues/101#issuecomment-1721513631, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAYYRXY7F5RVLTHNPL2O7T3X2R3SNANCNFSM6AAAAAA4Z3MH2M . You are receiving this because you commented.Message ID: @.***>