Improving the Editor | Coding a 2D Game Engine in Java #47

Channel:
Subscribers:
59,400
Published on ● Video Link: https://www.youtube.com/watch?v=L5J99TxmrnY



THE EDITOR
Game:
THE EDITOR (2023)
Duration: 37:07
3,675 views
104


Join the Discord: https://discord.gg/4tHeAkxNg7

In this episode I go over the first steps in improving the editor workflow. This is mainly about implementing a multi-select box, where you can drag and select multiple objects to move and edit. However, I also go over some important utility functions like converting world coordinates to screen coordinates, and screen coordinates to world coordinates. I also abstract the key combos and mouse control logic all into one place, that way it's much easier to find and implement new logic for those controls.

Code Diff: https://github.com/codingminecraft/MarioYoutube/compare/marioDev
Code : https://github.com/codingminecraft/MarioYoutube/tree/c21f1316be46cc8334008c35c45ea2a23588893c

0:00 Intro
2:01 Abstracting Key Combos
3:00 Quick Disclaimer
3:14 Back to Business
5:42 Key Combos for Multi-Select
7:49 Adding Multi-Select to Properties Window
10:49 Debugging
11:45 Adding Read Pixels to Picking Texture
13:54 Mouse Listener Fixes
16:21 Screen To World/World To Screen
23:03 Abstracting Mouse Picking
25:42 Drawing Multi-Select Box
29:09 Debugging
31:08 Back to Business
36:01 In the Next Episode

---------------------------------------------------------------------
Website: https://ambrosiogabe.github.io/
Github: https://github.com/ambrosiogabe

Here are some books I recommend if you want to learn about game engine development more thoroughly. I do not profit off any of these sales, these are just some books that have helped me out :)

My Recommended Game Engine Books:
Game Engine Architecture: https://www.gameenginebook.com/
Game Physics Cookbook (Read this before the next physics book): https://www.amazon.com/Game-Physics-Cookbook-Gabor-Szauer/dp/1787123669
Game Physics (Ian Millington): https://www.amazon.com/Game-Physics-Engine-Development-Commercial-Grade/dp/0123819768
Game Programming Patterns (Free): https://gameprogrammingpatterns.com/

My Recommended Beginning Game Programming Books:
JavaScript Game Design: https://www.apress.com/gp/book/9781430247166

My Recommended Java Books:
Data Structures/Algorithms: https://www.amazon.com/Data-Structures-Algorithms-Java-6th-ebook/dp/B00JDRQF8C
LWJGL (Free, but I haven't read this thoroughly): https://lwjglgamedev.gitbooks.io/3d-game-development-with-lwjgl/content/







Tags:
gameswithgabe
games with gabe
lwjgl3
multi select
how to code a multi select box
coding an editor
world coordinates
screen coordinates
converting world to screen coordinates
converting screen to world coordinates
coding a 2d game engine
scene tree
game scene in java
opengl fonts
game engine
how to make a level editor
how to code a game engine
imgui
lwjgl
java
mario



Other Statistics

THE EDITOR Statistics For GamesWithGabe

There are 3,675 views in 1 video for THE EDITOR. His channel published less than an hour of THE EDITOR content, making up less than 0.95% of the total overall content on GamesWithGabe's YouTube channel.