TUTORIAL: switch to the AGS project

This commit is contained in:
Fyodor Antokhin committed 2023-03-05 02:38:25 +03:00
1 parent a698db1a05
commit 3a8d1747da
10 files changed
-191

No files matched your search

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

-135
View File
@@ -1,135 +0,0 @@
var selection = NULL;
var gameScreen = "screen_main";
var gameMode = "mode_basic";
var button_questionMarkAnim = anim('resources/questionmark.duc', 0);
var button_rectangleHighlightAnim = anim('resources/rectanglehighlight.duc', 0);
var cursor_scummvmAnim = anim('resources/democursor.duc', 0);
var cursor_questionMarkAnim = anim('resources/questionmark_small.duc', 0);
sub init () {
alignStatus (0);
setStatusColour(100, 100, 100);
setFont ('resources/demofont.duc', "ÉABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\"'/?!.,;:()*%& -~`@", 12);
#no perspective scale
setScale (0, 0);
onFocusChange (focusChange);
onLeftMouse (leftMouse);
onRightMouse (rightMouse);
callEvent (init_reset, basicEvents);
}
sub focusChange(whichChange) {
selection = whichChange;
}
sub rightMouse() {
callEvent (init_reset, basicEvents);
if (gameMode == "mode_tutorial") {
gameMode = "mode_basic";
removeAllCharacters();
enableTutorialButton();
setCursor (cursor_scummvmAnim);
}
}
sub leftMouse() {
#User is in the tutorial game mode
if (selection) {
if (gameMode == "mode_tutorial") {
if (! callEvent (selection, tutorialEvents)) ;
}
#User is not in the tutorial mode
if (gameMode == "mode_basic") {
if (! callEvent (selection, basicEvents)) ;
}
}
}
objectType info("") {
}
objectType init_reset("") {
}
objectType hotspot_tutorialMode("Tutorial Mode") {
event info {
statusText ("Switch to get detailed information");
}
}
objectType hotspot_start("Button Start") {
event info {
statusText ("Start selected game");
}
}
objectType hotspot_load("Button Load") {
event info {
statusText ("Load saved game for selected game");
}
}
objectType hotspot_addGame("Button Add Game") {
event info {
statusText ("add games to the list");
}
}
sub enableTutorialButton() {
addCharacter (hotspot_tutorialMode, 50, 65, button_questionMarkAnim);
}
sub showHighlights() {
if (gameScreen == "screen_main") {
addCharacter (visual_mark, 509, 188, button_rectangleHighlightAnim);
addCharacter (visual_mark, 509, 113, button_rectangleHighlightAnim);
addCharacter (visual_mark, 509, 141, button_rectangleHighlightAnim);
}
if (gameScreen == "screen_addgame") {
addCharacter (visual_mark, 31, 394, button_rectangleHighlightAnim);
addCharacter (visual_mark, 379, 394, button_rectangleHighlightAnim);
addCharacter (visual_mark, 267, 394, button_rectangleHighlightAnim);
}
}
objectType basicEvents("") {
event hotspot_addGame {
gameScreen = "screen_addgame";
cleanScreen();
addOverlay('images/addgame.png',0,0);
#Back to main menu
addScreenRegion (init_reset, 266, 394, 376, 418, 0, 0, NORTH);
enableTutorialButton();
}
event init_reset {
gameScreen = "screen_main";
cleanScreen ();
addOverlay ('images/main.png', 0, 0);
setCursor (cursor_scummvmAnim);
addScreenRegion (hotspot_addGame, 508, 191, 618, 213, 0, 0, NORTH);
addScreenRegion (hotspot_start, 508, 113, 618, 135, 0, 0, NORTH);
addScreenRegion (hotspot_load, 508, 141, 618, 163, 0, 0, NORTH);
enableTutorialButton();
}
event hotspot_tutorialMode {
gameMode = "mode_tutorial";
setCursor (cursor_questionMarkAnim);
removeCharacter (hotspot_tutorialMode);
showHighlights();
}
}
objectType tutorialEvents("") {
}
objectType visual_mark("") {
}
sub cleanScreen() {
blankScreen();
removeAllCharacters();
removeAllScreenRegions();
}
Binary file not shown.
-28
View File
@@ -1,28 +0,0 @@
[SETTINGS]
windowname=ScummVM Tutorial
finalfile=scummvm-tutorial
language=English
datafolder=save
quitmessage=Are you sure you want to quit?
customicon=
customlogo=
mouse=2
fullscreen=Y
makesilent=N
showlogo=Y
showloading=Y
invisible=N
ditherimages=Y
width=640
height=480
speed=20
chrRender_def_enabled=Y
chrRender_def_softX=4
chrRender_def_softY=4
chrRender_max_enabled=Y
chrRender_max_readIni=Y
chrRender_max_softX=100
chrRender_max_softY=100
[FILES]
script.slu
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

-28
View File
@@ -1,28 +0,0 @@
[SETTINGS]
windowname=New SLUDGE Game
finalfile=Gamedata
language=English
datafolder=save
quitmessage=Are you sure you want to quit?
customicon=
customlogo=
mouse=2
fullscreen=Y
makesilent=N
showlogo=Y
showloading=Y
invisible=N
ditherimages=Y
width=640
height=480
speed=20
chrRender_def_enabled=Y
chrRender_def_softX=4
chrRender_def_softY=4
chrRender_max_enabled=Y
chrRender_max_readIni=Y
chrRender_max_softX=100
chrRender_max_softY=100
[FILES]
script.slu