Skip to content

Commit

Permalink
chore: update game templates
Browse files Browse the repository at this point in the history
  • Loading branch information
liana-p committed Aug 30, 2024
1 parent 8673486 commit b90a14f
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 7 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions packages/create-narrat/template-games/demo/src/config/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
gameTitle: Narrat Demo
saveFileName: Narrat Demo
dialogPanel:
allowHistoryToggling: true # This will add a button with the auto/skip button that allows the player to toggle viewing dialog history.
overlayMode: true
rightOffset: 100
bottomOffset: 50
Expand All @@ -10,6 +11,11 @@ dialogPanel:
textSpeed: 20
animateText: true
timeBetweenLines: 100
historyLength: 200 # The number of dialogue lines to keep in the history
hideDuringTransition: true # Setting this to true will make the dialog panel hide during screen transitions
showAfterScriptEnd: false # Setting this to true will make the dialog panel stay on even if the narrat script ends
graphics:
allowFullscreen: true
layout:
backgrounds:
width: 1280
Expand Down Expand Up @@ -38,3 +44,16 @@ hudStats:
saves:
mode: manual
slots: 10
runOnReload: 'test_label_reload'
autosaveDisabledOnLabels:
- test_no_autosave
allowManualSave: true
autosaveFeedback:
enabled: true
duration: 0.5
text: saving...
backgroundImage: 'img/ui/autosave_spinner_background.png'
foregroundImage: 'img/ui/autosave_spinner.png'
menuButtons:
new-game:
text: Start a new game
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ dialogPanel:
bottomOffset: 50
width: 475
height: 680
allowHistoryToggling: true # This will add a button with the auto/skip button that allows the player to toggle viewing dialog history.
historyLength: 200 # The number of dialogue lines to keep in the history
hideDuringTransition: true # Setting this to true will make the dialog panel hide during screen transitions
showAfterScriptEnd: false # Setting this to true will make the dialog panel stay on even if the narrat script ends
graphics:
allowFullscreen: true
layout:
backgrounds:
width: 1280
Expand All @@ -28,7 +34,19 @@ hudStats: {}
interactionTags:
default:
onlyInteractOutsideOfScripts: true
menuButtons: {}
saves:
mode: manual
slots: 10
runOnReload: 'test_label_reload'
autosaveDisabledOnLabels:
- test_no_autosave
allowManualSave: true
autosaveFeedback:
enabled: true
duration: 0.5
text: saving...
backgroundImage: 'img/ui/autosave_spinner_background.png'
foregroundImage: 'img/ui/autosave_spinner.png'
menuButtons:
new-game:
text: Start a new game
12 changes: 6 additions & 6 deletions packages/create-narrat/template/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "narrat-template",
"version": "3.9.2",
"version": "3.14.2",
"private": true,
"description": "Template for Narrat game engine",
"main": "electron-main.js",
Expand All @@ -12,8 +12,8 @@
"vue.js",
"snowpack"
],
"author": "Liana Pigeot <[email protected]>",
"license": "MIT",
"author": "",
"license": "",
"scripts": {
"start": "npm run dev",
"dev": "vite",
Expand All @@ -29,10 +29,10 @@
"dependencies": {
"electron-squirrel-startup": "^1.0.0",
"es6-promise": "^4.2.8",
"narrat": "^3.10.2",
"narrat": "^3.14.1",
"pinia": "^2.1.7",
"steamworks.js": "^0.2.0",
"vue": "^3.4.15"
"vue": "^3.4.21"
},
"devDependencies": {
"@electron-forge/cli": "^6.1.1",
Expand All @@ -49,7 +49,7 @@
"shx": "^0.3.4",
"typescript": "^5.1.6",
"vite": "^4.4.2",
"vite-plugin-narrat": "3.6.0"
"vite-plugin-narrat": "3.14.1"
},
"config": {
"forge": {
Expand Down

0 comments on commit b90a14f

Please sign in to comment.