This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Keyboard> | |
<!-- | |
This is for the micro strategy game Kingdom: New Lands | |
Controls are based on built-in WASD controls: | |
Left and right to move at 3 speeds: | |
- step left/right by tapping A/D | |
- walk left/right by holding down A/D | |
- gallop by double-tap and holding down A/D |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from __future__ import absolute_import, division, print_function | |
import tensorflow as tf | |
from tensorflow.python.framework import ops | |
from tensorflow.python.ops import array_ops | |
from tensorflow.python.ops import sparse_ops | |
import numpy as np | |
import scipy.linalg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from keras import losses | |
from keras.models import Model, load_model | |
from keras.layers import Input, Dense | |
import keras.backend as K | |
from keras import optimizers | |
def build_dense_model_two_outputs(dim_in, dim_hidden, dim_out): | |
model_input = Input( | |
shape=(dim_in,), |