-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathengine.php
More file actions
30 lines (24 loc) · 857 Bytes
/
engine.php
File metadata and controls
30 lines (24 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
//Check to see if REPORT_ERRORS has been defined, if not, set it
//to false by default.
if (!defined(REPORT_ERRORS)) {
define('REPORT_ERRORS', false);
}
//Turn on error reporting if it has been set to true
if (REPORT_ERRORS == true) {
error_reporting(E_ALL);
ini_set('display_errors', true);
echo '<script>var REPORT_ERRORS = true;</script>';
}
//Load the engine.css file
echo '<link rel="stylesheet" href="/engine/engine.css">';
//Load the engine.js file
echo '<script src="/engine/engine.js"></script>';
/**
* Load all of the required scripts
*/
echo '<script src="/engine/screen/init.js"></script>';
echo '<script src="/engine/draw/sprite.js"></script>';
echo '<script src="/engine/objects/player.js"></script>';
echo '<script src="/engine/objects/object.js"></script>';
echo '<script src="/engine/draw/text.js"></script>';