-
Notifications
You must be signed in to change notification settings - Fork 0
2. Creating your first visual novel
To create your first visual novel with Project DVN simply follow this guide.
- (Optional) Download a D compiler such as DMD from here: https://dlang.org/download.html
- (Optional) Download dub (if not installed with the D compiler) here: https://github.com/dlang/dub/releases
- (Required) Download the empty visual novel project here: https://github.com/ProjectDVN/Empty/archive/refs/heads/main.zip
You may skip downloading the D compiler and dub if you don't wish to modify any code and only wish to script your visual novel.
In that case skip Building and running and go straight to https://github.com/ProjectDVN/dvn/wiki/Creating-your-first-visual-novel#1-change-titles
For Windows you can simply run the build.bat script which will automatically build the project for you.
For other platforms such as Linux/macOS please compile using ex. dub build -a=x86_64 on the correct folder.
You must modify dub.json to suit your platform, if you're not on Windows.
You may inspect build.bat and copy the behavior manually.
Note: This step is only required if you downloaded a d compiler, dub and wish to modify any code.
For events you can use in your code etc. please see: https://github.com/ProjectDVN/dvn?tab=readme-ov-file#events
- Open build/client/data/settings.json
- Change "title" and "loadTitle" to whatever you desire.
- Open build/client/data/backgrounds
- Change the two black images to images you desire.
loading.png is used for the loading screen
main.png is used for the main menu, settings menu and by default the act screen
- Open build/client/data/game/images
- Change logo.png to your desired image
- Open build/client/data/resources/main.json
- Change the size of the "Logo" entry to the size of your logo.
- Open build/client/data/game/backgrounds/bg.png
- Change it to your desired image
**Note: It's important the image has the size 1280x720 for it to work optimally.
- Open build/client/data/game/characters/Stickman.png
- Change it to your desired image
- Open build/client/data/game/characters.json
- Change the size of the Stickman entry to match your desired image size.
Note: If you change name of Stickman.png then you must also change the path in characters.json
- Open build/client/data/game/scripts/main.vns
- Change background to match your given background resource.
- Change char to match your given character resource.
- Change "Hello World!" to something else such as "Hello DVN!".
- Open build/client/DVN.exe
See: https://github.com/ProjectDVN/dvn/wiki/9.-Changing-Executable-Name-And-Icon
Your visual novel should now be running.
Don't forget to check out Creating Your First Visual Novel, if you're new here and seeking help.