@awayfl/awayfl-player 0.2.37 → 0.2.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -201
- package/README.md +36 -36
- package/awayfl.config.js +85 -85
- package/builtins/playerglobal.json +2752 -2752
- package/builtins/playerglobal_new.json +4169 -4169
- package/bundle/awayfl-player.umd.js +14 -131
- package/bundle/awayfl-player.umd.js.gz +0 -0
- package/bundle/awayfl-player.umd.js.map +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.js +9 -9
- package/dist/lib/AVM1Player.d.ts +4 -4
- package/dist/lib/AVM1Player.js +13 -13
- package/dist/lib/AVM2Player.d.ts +4 -4
- package/dist/lib/AVM2Player.js +14 -14
- package/dist/lib/AVMDebugInterface.d.ts +21 -21
- package/dist/lib/AVMDebugInterface.js +279 -279
- package/dist/lib/AVMPlayer.d.ts +6 -6
- package/dist/lib/AVMPlayer.js +27 -27
- package/dist/src/Main.d.ts +1 -1
- package/dist/src/Main.js +19 -19
- package/index.ts +9 -9
- package/lib/AVM1Player.ts +9 -9
- package/lib/AVM2Player.ts +12 -12
- package/lib/AVMDebugInterface.ts +345 -345
- package/lib/AVMPlayer.ts +29 -29
- package/package.json +97 -97
- package/rollup.config.js +30 -30
- package/scripts/copyVersionToIndex.js +33 -33
- package/scripts/initAwayDev_mac.sh +177 -177
- package/scripts/initAwayDev_mac_pnpm.sh +177 -177
- package/scripts/initAwayDev_win.bat +198 -198
- package/scripts/unlinkAwayDev_mac.sh +140 -140
- package/scripts/unlinkAwayDev_mac_pnpm.sh +140 -140
- package/scripts/unlinkAwayDev_win.bat +140 -140
- package/scripts/updateAwayDev_mac.sh +86 -90
- package/scripts/updateAwayDev_win.bat +69 -69
- package/scripts/updateAway_any.bat +73 -73
- package/tsconfig.json +12 -12
- package/webpack.config.js +496 -496
package/awayfl.config.js
CHANGED
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
const path = require('path');
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
// all props prefixed with "rt_" will be added to config that is inserted in html
|
|
7
|
-
|
|
8
|
-
//------------------------------------------------------
|
|
9
|
-
// global config - same for all swf-files:
|
|
10
|
-
//------------------------------------------------------
|
|
11
|
-
|
|
12
|
-
debugConfig: false, // log config in build process
|
|
13
|
-
rt_showFPS: false, // show fps display - always false in prod
|
|
14
|
-
cacheBuster: true, // add cachebuster to urls - always false in prod
|
|
15
|
-
allowURLSearchParams: true, // allow changing config via url-params - always false in prod
|
|
16
|
-
split: true, // create own folder for each file - only available in prod
|
|
17
|
-
|
|
18
|
-
entryName: "Main", // name of webpack-entry - must be set for each config (use package.main ?)
|
|
19
|
-
entryPath: "./src/Main.ts", // path to webpack-entry - must be set for each config (use package.main ?)
|
|
20
|
-
|
|
21
|
-
buildinsPath: path.join(__dirname, "builtins"), // path to buildins - must be set when amv2 will be used
|
|
22
|
-
indexTemplate: path.join(__dirname, "template", "index_template.html"), // path to game-html template - must be set
|
|
23
|
-
gameTemplate: path.join(__dirname, "template", "game_template.html"), // path to index-html template - must be set
|
|
24
|
-
loaderTemplate: path.join(__dirname, "template", "loader.js"), // path to loader.js - must be set
|
|
25
|
-
|
|
26
|
-
//-------------------------------------------------------------------------
|
|
27
|
-
// default config for this game - can be overwritten for every file-config:
|
|
28
|
-
//-------------------------------------------------------------------------
|
|
29
|
-
|
|
30
|
-
rt_debug: true, // disable JS blobind - always false in prod
|
|
31
|
-
rt_title: "Main", // title of game - should be overwritten for each file-config, but also available for index
|
|
32
|
-
rt_filename: "", // filename of game - no extension - must be set for each config
|
|
33
|
-
rt_splash: "todo.jpg", // path to splash-image - with extension
|
|
34
|
-
rt_start: null, // path to start-image - with extension - optional - if present, loader wait for user input to start the game
|
|
35
|
-
rt_width: 1024, // width of preloader screen (todo: grab this from splashimage ?)
|
|
36
|
-
rt_height: 768, // height of preloader screen (todo: grab this from splashimage ?)
|
|
37
|
-
rt_x: 0, // x offset of stage (either absolute px value, or string with percentage of window.innerWidth (0-100))
|
|
38
|
-
rt_y: 0, // y offset of stage (either absolute px value, or string with percentage of window.innerHeight (0-100))
|
|
39
|
-
rt_w: "100%", // width of stage (either absolute px value, or string with percentage of window.innerWidth (0-100))
|
|
40
|
-
rt_h: "100%", // height of stage (either absolute px value, or string with percentage of window.innerHeight (0-100))
|
|
41
|
-
|
|
42
|
-
rt_stageScaleMode:null, // allowed values: EXACT_FIT noBorder noScale showAll
|
|
43
|
-
rt_stageAlign:null, // allowed values: B BL BR L R T TL TR
|
|
44
|
-
|
|
45
|
-
rt_progressParserWeigth: 1, // weight of parser in reporter - can be ommited or set to 0 aswell
|
|
46
|
-
|
|
47
|
-
// properties for progress bar
|
|
48
|
-
rt_progress: {
|
|
49
|
-
direction: "lr", // lr, td
|
|
50
|
-
back: "#130d02", // #000
|
|
51
|
-
line: "#f29f01", // "#00ff00",
|
|
52
|
-
rect: [0.25, 0.77, 0.5, 0.01], // values are percentage of width / height
|
|
53
|
-
},
|
|
54
|
-
|
|
55
|
-
rt_box2dVersion: 'none', // box2d version: none, legacy, new, custom (external implementation)
|
|
56
|
-
// list of file-configs.
|
|
57
|
-
// each file-config is a object that must provide:
|
|
58
|
-
// - rt_title
|
|
59
|
-
// - rt_filename (no extension)
|
|
60
|
-
// it can overwrite other config props aswell
|
|
61
|
-
fileconfigs: [
|
|
62
|
-
{
|
|
63
|
-
rt_title: "Bacon_Ipsem",
|
|
64
|
-
rt_filename: "Bacon_Ipsem",
|
|
65
|
-
rt_stageScaleMode: "showAll",
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
rt_showFPS: true,
|
|
69
|
-
rt_title: "BasicAS3Tests_FP30",
|
|
70
|
-
rt_filename: "BasicAS3Tests_FP30",
|
|
71
|
-
rt_stageScaleMode: "showAll",
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
rt_title: "text_test",
|
|
75
|
-
rt_filename: "text_test",
|
|
76
|
-
rt_stageScaleMode: "showAll",
|
|
77
|
-
}
|
|
78
|
-
],
|
|
79
|
-
|
|
80
|
-
resources: ["template/fonts.swf"], // list of urls to preload (fonts) - relative to project folder
|
|
81
|
-
|
|
82
|
-
assets:[
|
|
83
|
-
|
|
84
|
-
],
|
|
85
|
-
};
|
|
1
|
+
const path = require('path');
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
// all props prefixed with "rt_" will be added to config that is inserted in html
|
|
7
|
+
|
|
8
|
+
//------------------------------------------------------
|
|
9
|
+
// global config - same for all swf-files:
|
|
10
|
+
//------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
debugConfig: false, // log config in build process
|
|
13
|
+
rt_showFPS: false, // show fps display - always false in prod
|
|
14
|
+
cacheBuster: true, // add cachebuster to urls - always false in prod
|
|
15
|
+
allowURLSearchParams: true, // allow changing config via url-params - always false in prod
|
|
16
|
+
split: true, // create own folder for each file - only available in prod
|
|
17
|
+
|
|
18
|
+
entryName: "Main", // name of webpack-entry - must be set for each config (use package.main ?)
|
|
19
|
+
entryPath: "./src/Main.ts", // path to webpack-entry - must be set for each config (use package.main ?)
|
|
20
|
+
|
|
21
|
+
buildinsPath: path.join(__dirname, "builtins"), // path to buildins - must be set when amv2 will be used
|
|
22
|
+
indexTemplate: path.join(__dirname, "template", "index_template.html"), // path to game-html template - must be set
|
|
23
|
+
gameTemplate: path.join(__dirname, "template", "game_template.html"), // path to index-html template - must be set
|
|
24
|
+
loaderTemplate: path.join(__dirname, "template", "loader.js"), // path to loader.js - must be set
|
|
25
|
+
|
|
26
|
+
//-------------------------------------------------------------------------
|
|
27
|
+
// default config for this game - can be overwritten for every file-config:
|
|
28
|
+
//-------------------------------------------------------------------------
|
|
29
|
+
|
|
30
|
+
rt_debug: true, // disable JS blobind - always false in prod
|
|
31
|
+
rt_title: "Main", // title of game - should be overwritten for each file-config, but also available for index
|
|
32
|
+
rt_filename: "", // filename of game - no extension - must be set for each config
|
|
33
|
+
rt_splash: "todo.jpg", // path to splash-image - with extension
|
|
34
|
+
rt_start: null, // path to start-image - with extension - optional - if present, loader wait for user input to start the game
|
|
35
|
+
rt_width: 1024, // width of preloader screen (todo: grab this from splashimage ?)
|
|
36
|
+
rt_height: 768, // height of preloader screen (todo: grab this from splashimage ?)
|
|
37
|
+
rt_x: 0, // x offset of stage (either absolute px value, or string with percentage of window.innerWidth (0-100))
|
|
38
|
+
rt_y: 0, // y offset of stage (either absolute px value, or string with percentage of window.innerHeight (0-100))
|
|
39
|
+
rt_w: "100%", // width of stage (either absolute px value, or string with percentage of window.innerWidth (0-100))
|
|
40
|
+
rt_h: "100%", // height of stage (either absolute px value, or string with percentage of window.innerHeight (0-100))
|
|
41
|
+
|
|
42
|
+
rt_stageScaleMode:null, // allowed values: EXACT_FIT noBorder noScale showAll
|
|
43
|
+
rt_stageAlign:null, // allowed values: B BL BR L R T TL TR
|
|
44
|
+
|
|
45
|
+
rt_progressParserWeigth: 1, // weight of parser in reporter - can be ommited or set to 0 aswell
|
|
46
|
+
|
|
47
|
+
// properties for progress bar
|
|
48
|
+
rt_progress: {
|
|
49
|
+
direction: "lr", // lr, td
|
|
50
|
+
back: "#130d02", // #000
|
|
51
|
+
line: "#f29f01", // "#00ff00",
|
|
52
|
+
rect: [0.25, 0.77, 0.5, 0.01], // values are percentage of width / height
|
|
53
|
+
},
|
|
54
|
+
|
|
55
|
+
rt_box2dVersion: 'none', // box2d version: none, legacy, new, custom (external implementation)
|
|
56
|
+
// list of file-configs.
|
|
57
|
+
// each file-config is a object that must provide:
|
|
58
|
+
// - rt_title
|
|
59
|
+
// - rt_filename (no extension)
|
|
60
|
+
// it can overwrite other config props aswell
|
|
61
|
+
fileconfigs: [
|
|
62
|
+
{
|
|
63
|
+
rt_title: "Bacon_Ipsem",
|
|
64
|
+
rt_filename: "Bacon_Ipsem",
|
|
65
|
+
rt_stageScaleMode: "showAll",
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
rt_showFPS: true,
|
|
69
|
+
rt_title: "BasicAS3Tests_FP30",
|
|
70
|
+
rt_filename: "BasicAS3Tests_FP30",
|
|
71
|
+
rt_stageScaleMode: "showAll",
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
rt_title: "text_test",
|
|
75
|
+
rt_filename: "text_test",
|
|
76
|
+
rt_stageScaleMode: "showAll",
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
|
|
80
|
+
resources: ["template/fonts.swf"], // list of urls to preload (fonts) - relative to project folder
|
|
81
|
+
|
|
82
|
+
assets:[
|
|
83
|
+
|
|
84
|
+
],
|
|
85
|
+
};
|