ctmatthews

Indie game developer

a trans woman in the UK making 2D action games about ducks:

Ducky's Delivery Service (Steam/itch/Switch)

Chessplosion (Steam/itch)


i mostly post on my Blog / Newsletter / Patreon


i play fighting games! i won Evo in 2021.


pfp/header by NomnomNami


✉️ Contact (email/DM)
ctmatthews.com/contact
🖼️ pfp/header by NomnomNami
nomnomnami.com/

Anonymous User asked:

i was really struck by this image of your imgui setup -- https://staging.cohostcdn.org/attachment/1779f3c9-092d-4f37-8a14-950f6dcebe06/dds_engine_and_editor.jpg -- but i've been struggling to recreate something similar, is there an example or resources you'd point towards?

Thanks for asking! I use the docking branch of dear imgui, which lets you dock windows like in that image.

The dockspace example code (and accompanying comments) in imgui_demo.cpp does everything I need, if I remember correctly.

I just create the dockspace by calling ImGui::Begin and ImGui::DockSpace, then I call ImGui::BeginMenuBar and do everything that's in the menu at the very top of the screen (File, Edit, the Rewind timeline etc), then I call ImGui::EndMenuBar and ImGui::End. After that, I just make all of those other windows ("Game", "Visibility", "Achievements", "Progression" etc) by calling ImGui::Begin, then the window contents, then ImGui::End, just like normal.

The "Game" window uses ImGui::Image to display the contents of the main game framebuffer, along with some additional code to force its aspect ratio to 16:9 and to fudge my in-game mouse positions so I can click on things in the game.

I learned pretty much everything I know about dear imgui from the imgui_demo.cpp example code (which you can see in your game by calling ImGui::ShowDemoWindow) and from the "examples" folder that shows you how to hook it up to OpenGL, DirectX and so on. So I recommend checking those out too. But me know if there's anything I missed out!



ctmatthews
@ctmatthews

My duck action games are discounted on Steam, itch.io, and Nintendo Switch! So if you want to save some money on my chess piece bomb dropping game Chessplosion (with rollback netcode and the new online co-op gauntlet mode) or my propeller-powered duck delivery action game Ducky's Delivery Service, now is the time to do it. Enjoy!

♟️Save 50% on Chessplosion on Steam / itch♟️
💌 Save 20% on Ducky's Delivery Service on



ctmatthews
@ctmatthews

My duck action games are discounted on Steam, itch.io, and Nintendo Switch! So if you want to save some money on my chess piece bomb dropping game Chessplosion (with rollback netcode and the new online co-op gauntlet mode) or my propeller-powered duck delivery action game Ducky's Delivery Service, now is the time to do it. Enjoy!

♟️Save 50% on Chessplosion on Steam / itch♟️
💌 Save 20% on Ducky's Delivery Service on