TUTORIAL: translation showcase AGS

This commit is contained in:
Fyodor committed 2023-03-03 19:20:16 +03:00
1 parent e2883885fa
commit 4cd2452bad
26 files changed
+3225

No files matched your search

Binary file not shown.
Binary file not shown.
Binary file not shown.
+20
View File
@@ -0,0 +1,20 @@
[sound]
digiid=-1
midiid=-1
digiwin=1096302880
midiwin=-1
digiindx=0
midiindx=0
digiwinindx=0
midiwinindx=0
[misc]
gamecolordepth=16
defaultres=4
screenres=1
letterbox=1
defaultgfxdriver=DX5
gfxdriver=DX5
windowed=1
refresh=0
gfxfilter=None
[language]
Binary file not shown.
Binary file not shown.
+1459
View File
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+5
View File
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="windows-1251"?>
<!--DO NOT EDIT THIS FILE. It is automatically generated by the AGS Editor, changing it manually could break your game-->
<AGSEditorUserData Version="3.0.2.1">
<Component Name="SourceControl" />
</AGSEditorUserData>
+69
View File
@@ -0,0 +1,69 @@
// main global script file
#sectionstart game_start // DO NOT EDIT OR REMOVE THIS LINE
function game_start() // called when the game starts, before the first room is loaded
{
mouse.Mode = 1;
}
#sectionend game_start // DO NOT EDIT OR REMOVE THIS LINE
#sectionstart repeatedly_execute // DO NOT EDIT OR REMOVE THIS LINE
function repeatedly_execute()
{
// put anything you want to happen every game cycle here
}
#sectionend repeatedly_execute // DO NOT EDIT OR REMOVE THIS LINE
#sectionstart on_key_press // DO NOT EDIT OR REMOVE THIS LINE
function on_key_press(int keycode) // called when a key is pressed. keycode holds the key's ASCII code
{
if (IsGamePaused()==1) keycode=0; // game paused, so don't react to keypresses
if (keycode==17) QuitGame(1); // Ctrl-Q
if (keycode==363) SaveGameDialog(); // F5
if (keycode==365) RestoreGameDialog(); // F7
if (keycode==367) RestartGame(); // F9
if (keycode==434) SaveScreenShot("scrnshot.pcx"); // F12
if (keycode==19) Debug(0,0); // Ctrl-S, give all inventory
if (keycode==22) Debug(1,0); // Ctrl-V, version
if (keycode==1) Debug(2,0); // Ctrl-A, show walkable areas
if (keycode==24) Debug(3,0); // Ctrl-X, teleport to room
}
#sectionend on_key_press // DO NOT EDIT OR REMOVE THIS LINE
#sectionstart on_mouse_click // DO NOT EDIT OR REMOVE THIS LINE
function on_mouse_click(MouseButton button) // called when a mouse button is clicked. button is either LEFT or RIGHT
{
if (IsGamePaused() == 1) // Game is paused, so do nothing (ie. don't allow mouse click)
{
}
else if (button == eMouseLeft)
{
ProcessClick(mouse.x,mouse.y, mouse.Mode);
}
else // right-click, so cycle cursor
{
mouse.Mode = 1;
}
}
#sectionend on_mouse_click // DO NOT EDIT OR REMOVE THIS LINE
#sectionstart interface_click // DO NOT EDIT OR REMOVE THIS LINE
function interface_click(int interface, int button)
{
// OBSOLETE, NOT USED IN AGS 2.7 AND LATER VERSIONS
}
#sectionend interface_click // DO NOT EDIT OR REMOVE THIS LINE
function main_addGame_click(GUI *theGui, MouseButton button)
{
cCharacter.ChangeRoom(2, 0, 0);
}
function add_cancel_click(GUI *theGui, MouseButton button)
{
cCharacter.ChangeRoom(1, 0, 0);
}
+4
View File
@@ -0,0 +1,4 @@
// Main header script - this will be included into every script in
// the game (local and global). Do not place functions here; rather,
// place import definitions and #define names here to be used by all
// scripts.
+163
View File
@@ -0,0 +1,163 @@
// AGS TRANSLATION SOURCE FILE
// Format is alternating lines with original game text and replacement
// text. If you don't want to translate a line, just leave the following
// line blank. Lines starting with '//' are comments - DO NOT translate
// them. Special characters such as [ and %%s symbolise things within the
// game, so should be left in an appropriate place in the message.
//
// ** Translation settings are below
// ** Leave them as "DEFAULT" to use the game settings
// The normal font to use - DEFAULT or font number
//#NormalFont=DEFAULT
// The speech font to use - DEFAULT or font number
//#SpeechFont=DEFAULT
// Text direction - DEFAULT, LEFT or RIGHT
//#TextDirection=DEFAULT
//
// ** REMEMBER, WRITE YOUR TRANSLATION IN THE EMPTY LINES, DO
// ** NOT CHANGE THE EXISTING TEXT.
scrnshot.pcx
Add Game...
Добавить игру...
CHARACTER
Cancel
Отмена
Add Game...
CHARACTER
Sorry, not now.
Restore
Select a game to restore:
Save
Type a name to save as:
Replace
The save directory is full. You must replace an existing game:
Replace:
With:
Quit
Play
Are you sure you want to quit?
You are carrying nothing.
Talking to yourself is a sign of madness!
You rub your hands up and down your clothes.
Damn, I'm looking good!
No hotspot
Hotspot 2
Hotspot 3
Hotspot 4
Hotspot 5
Hotspot 6
Hotspot 7
Hotspot 8
Hotspot 9
Hotspot 10
Hotspot 11
Hotspot 12
Hotspot 13
Hotspot 14
Hotspot 15
Hotspot 16
Hotspot 17
Hotspot 18
Hotspot 19
Hotspot 20
Hotspot 21
Hotspot 22
Hotspot 23
Hotspot 24
Hotspot 25
Hotspot 26
Hotspot 27
Hotspot 28
Hotspot 29
Hotspot 30
Hotspot 31
Hotspot 32
Hotspot 33
Hotspot 34
Hotspot 35
Hotspot 36
Hotspot 37
Hotspot 38
Hotspot 39
Hotspot 40
Hotspot 41
Hotspot 42
Hotspot 43
Hotspot 44
Hotspot 45
Hotspot 46
Hotspot 47
Hotspot 48
Hotspot 49
Hotspot 1
+21
View File
@@ -0,0 +1,21 @@
[sound]
digiid=-1
midiid=-1
digiwin=1096302880
midiwin=-1
digiindx=0
midiindx=0
digiwinindx=0
midiwinindx=0
[misc]
gamecolordepth=16
defaultres=4
screenres=1
letterbox=1
defaultgfxdriver=DX5
gfxdriver=DX5
windowed=1
refresh=0
gfxfilter=None
[language]
translation=Russian
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+11
View File
@@ -1 +1,12 @@
// room script file
function room_Leave()
{
main_addGame.Visible = false;
}
function room_AfterFadeIn()
{
main_addGame.Visible = true;
}
Binary file not shown.
+10
View File
@@ -0,0 +1,10 @@
// room script file
function room_Leave()
{
add_cancel.Visible = false;
}
function room_AfterFadeIn()
{
add_cancel.Visible = true;
}
Binary file not shown.
+1
View File
@@ -0,0 +1 @@
// AGS auto-numbered speech lines output. This file was automatically generated.
Binary file not shown.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 0 B

After

Width:  |  Height:  |  Size: 2.2 KiB

+3
View File
@@ -0,0 +1,3 @@
You're using the Empty Game template!
This template has no default graphics or items at all - it's totally empty. If this is your first experience with AGS, try using the Default Game template instead, as it already has enough default sprites imported to get you started.