Interrupt / delverengine

Delver game engine and editor
zlib License
795 stars 78 forks source link

Project Configuration for VS Code on Windows/Linux #74

Open PythooonUser opened 3 years ago

PythooonUser commented 3 years ago

Summary

This is a quick summary of my current working setup of the Delver engine using VS Code on Windows.

Main caveats:

Steps

  1. Install the VS Code Java Extension Pack
  2. Download the JDK grafik
  3. Add the installation to PATH
  4. There are actually a bunch of files generated by the extension (add to .gitignore?) grafik
  5. Adjust the launch config for the debugger to use the correct working directory
    {
      "type": "java",
      "name": "Debug (Launch)-EditorStarter<DelvEdit>",
      "request": "launch",
      "mainClass": "com.interrupt.dungeoneer.EditorStarter",
      "projectName": "DelvEdit",
      "cwd": "${workspaceFolder}/Dungeoneer/assets" <--- THIS HERE
    }
  6. Press F5 and enjoy DelvEdit

Android

For developing on Android, install an appropriate SDK via Android Studio. Enable USB Debugging on your device and add the following launch config to VS Code.

{
      "type": "node-terminal",
      "name": "Android - DELVER",
      "request": "launch",
      "command": "gradle DungeoneerAndroid:installDebug DungeoneerAndroid:run"
}
NetherNarwhal commented 3 years ago

Thank you for putting this together. It definitely gave me a place to start. For Linux, this is kind of a hack but I did something similar: