@awayfl/awayfl-player 0.2.26 → 0.2.31

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.
@@ -0,0 +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: false, // 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
+ };