Game Development for Human Beings
we’ll add them into the game. main.js will be the following, the other files are empty for now: 1 var SpaceHipster = SpaceHipster || {}; 2 3 SpaceHipster.game = new Phaser.Game(window.innerWidth, window directly with game and the states names, but I’d recommend using it just for best practice. 1 var SpaceHipster = SpaceHipster || {}; Means that if the object exists already, we’ll use it. Otherwise time to load everything else with a nice and charming preload screen. Content of Boot.js: 1 var SpaceHipster = SpaceHipster || {}; 2 3 SpaceHipster.Boot = function(){}; 4 5 //setting game configuration0 码力 | 472 页 | 8.46 MB | 10 月前3KiCad 7.0 Command-Line Interface
specified library into SVG files. Usage: kicad-cli fp export svg [-h] [--output VAR] [--layers VAR] [--theme VAR] [--footprint VAR] [--black-and-white] input Positional arguments: input Footprint library already in the current file format, no action is taken. Usage: kicad-cli fp upgrade [-h] [--output VAR] [--force] input 4 Positional arguments: input Footprint library to upgrade (.pretty). Optional board. Usage: kicad-cli pcb export drill [-h] [--output VAR] [--format VAR] [--drill-origin VAR] [-- excellon-zeros-format VAR] [--excellon-units VAR] [--excellon-mirror-y] [--excellon-min-header] [--e0 码力 | 20 页 | 262.67 KB | 1 年前3KiCad 8.0 Command-Line Interface
kicad-cli fp export svg [--help] [--output OUTPUT_FILE] [--layers LAYER_LIST] [--define- var KEY=VALUE] [--theme VAR] [--footprint FOOTPRINT_NAME] [--black-and-white] INPUT_DIR Positional arguments: INPUT_DIR Cu,B.Cu. If no layers are given, all layers are exported. -D= , --define-var = Add or override project variable definitions. Can be used multiple times board and generates a report. Usage: kicad-cli pcb drc [--help] [--output OUTPUT_FILE] [--define-var KEY=VALUE] [--format FORMAT] [--all-track-errors] [--schematic-parity] [--units UNITS] [--severity-all] 0 码力 | 27 页 | 373.33 KB | 1 年前3Unity for Human Beings
FirstPersonCamera : MonoBehaviour { public float turnSpeed = 50f; void MouseAiming() { var rot = new Vector3(0f, 0f, 0f); // rotates Camera Left if (Input.GetAxis("Mouse X") { var sensitivity = 0.01f; var movementAmount = 0.5f; var movementVector = new Vector3(0f, 0f, 0f); var hMove = Input.GetAxis("Horizontal"); var vMove = Input 22 23 24 private void DefaultTiles() { for (var y = 0; y < MapSize.y - 1; y++) { for (var x = 0; x < MapSize.x - 1; x++) { _map[x0 码力 | 239 页 | 27.39 MB | 10 月前3Google Python Style Guide
argument on the first line. Yes: # Aligned with opening delimiter foo = long_function_name(var_one, var_two, var_three, var_four) 17 # Aligned with opening delimiter in a dictionary foo = { long_dictionary_key: value2, ... } # 4-space hanging indent; nothing on first line foo = long_function_name( var_one, var_two, var_three, var_four) # 4-space hanging indent in a dictionary foo = { long_dictionary_key: long_dictionary_value forbidden foo = long_function_name(var_one, var_two, var_three, var_four) # 2-space hanging indent forbidden foo = long_function_name( var_one, var_two, var_three, var_four) # No hanging indent in a dictionary0 码力 | 30 页 | 94.81 KB | 1 年前3Google C++ Style Guide
if any values are not handled). If the default case should never execute, simply assert: switch (var) { case 0: { // 2 space indent ... // 4 space indent break; } case 1: { ... break; } default: { assert(false); readable. return (some_long_condition && another_condition); return (value); // You wouldn't write var = (value); return(result); // return is not a function! Variable and Array Initialization Your choice explicit MyClass(int var); ~MyClass() {} void SomeFunction(); 76 void SomeFunctionThatDoesNothing() { } void set_some_var(int var) { some_var_ = var; } int some_var() const { return some_var_; } private:0 码力 | 83 页 | 238.71 KB | 1 年前3The Weblate Manual 3.3
the same tree as Weblate sources, however you might prefer to move these to better location such as /var/lib/weblate. Weblate tries to create these directories automatically, but it will fail when it does ExecStartPre=/bin/mkdir -p /var/run/celery ExecStartPre=/bin/chown -R weblate /var/run/celery/ ExecStartPre=/bin/mkdir -p /var/log/celery ExecStartPre=/bin/chown -R weblate /var/log/celery/ ExecStart=/bin/sh when using the prefork pool to avoid race conditions. CELERYD_PID_FILE="/var/run/celery/weblate-%n.pid" CELERYD_LOG_FILE="/var/log/celery/weblate-%n%I.log" CELERYD_LOG_LEVEL="INFO" CELERY_WORKER_RUNNING="1"0 码力 | 403 页 | 1.75 MB | 1 年前3The Weblate Manual 3.2.2
the same tree as Weblate sources, however you might prefer to move these to better location such as /var/lib/weblate. Weblate tries to create these directories automatically, but it will fail when it does ExecStartPre=/bin/mkdir -p /var/run/celery ExecStartPre=/bin/chown -R weblate /var/run/celery/ ExecStartPre=/bin/mkdir -p /var/log/celery ExecStartPre=/bin/chown -R weblate /var/log/celery/ ExecStart=/bin/sh when using the prefork pool to avoid race conditions. CELERYD_PID_FILE="/var/run/celery/weblate-%n.pid" CELERYD_LOG_FILE="/var/log/celery/weblate-%n%I.log" CELERYD_LOG_LEVEL="INFO" CELERY_WORKER_RUNNING="1"0 码力 | 310 页 | 2.43 MB | 1 年前3The Weblate Manual 3.4
tree as the Weblate sources, however you might prefer to move these to a better location such as: /var/lib/weblate. Weblate tries to create these directories automatically, but it will fail when it does host as Weblate, you might # want to use unix sockets instead: # 'LOCATION': 'unix:///var/run/redis/redis.sock?db=0', 'OPTIONS': { 'CLIENT_CLASS': 'django_redis.client.DefaultClient' backend setup, see above 'BACKEND': 'django_redis.cache.RedisCache', 'LOCATION': 'unix:///var/run/redis/redis.sock?db=0', 'OPTIONS': { 'CLIENT_CLASS': 'django_redis.client.DefaultClient'0 码力 | 415 页 | 1.73 MB | 1 年前3The Weblate Manual 3.3
the same tree as Weblate sources, however you might prefer to move these to better location such as /var/lib/weblate. Weblate tries to create these directories automatically, but it will fail when it does ExecStartPre=/bin/mkdir -p /var/run/celery ExecStartPre=/bin/chown -R weblate /var/run/celery/ ExecStartPre=/bin/mkdir -p /var/log/celery ExecStartPre=/bin/chown -R weblate /var/log/celery/ ExecStart=/bin/sh when using the prefork pool to avoid race conditions. CELERYD_PID_FILE="/var/run/celery/weblate-%n.pid" CELERYD_LOG_FILE="/var/log/celery/weblate-%n%I.log" CELERYD_LOG_LEVEL="INFO" CELERY_WORKER_RUNNING="1"0 码力 | 312 页 | 2.56 MB | 1 年前3
共 398 条
- 1
- 2
- 3
- 4
- 5
- 6
- 40