|
5121f6d775
|
World: load levels by parsing a JSON level description.
|
2020-03-08 17:23:51 -04:00 |
|
|
28ef337691
|
make field readonly
|
2020-03-07 12:40:21 -05:00 |
|
|
0a37453dbd
|
switch to sourcing all tiles from Grassland
|
2020-03-06 19:01:48 -05:00 |
|
|
392495a61e
|
remove unneeded timeInState calc & redundant "string?" annotation
|
2020-03-06 14:20:17 -05:00 |
|
|
0f8d9c2814
|
FSM / Player / NPCs now get World as an argument to Update()
|
2020-03-06 12:28:58 -05:00 |
|
|
1b124f84df
|
FSM now takes a type parameter so that we can use FSM with other classes.
|
2020-03-06 12:16:33 -05:00 |
|
|
08091106ea
|
Terrain: use optional arguments for IsObstacle / IsHarmful
|
2020-03-06 12:02:41 -05:00 |
|
|
b2583677bf
|
Terrain now takes an IsHarmful param in constructor.
|
2020-03-06 11:44:43 -05:00 |
|
|
f756780660
|
NPCs should start in "run" state.
|
2020-03-06 11:44:19 -05:00 |
|
|
b574a5a702
|
change Sprite / Animation times to double (sec) instead of int (ms).
|
2020-03-05 21:12:11 -05:00 |
|
|
53083818c0
|
Add a TODO and fix a smol cleanup.
|
2020-03-05 17:39:30 -05:00 |
|
|
3c4e63ada0
|
Add basic FSM & use it from NPC.
|
2020-03-05 17:39:17 -05:00 |
|
|
53c6d8483f
|
include multiple NPCs, have them turn around based on platforms.
|
2020-03-05 16:17:57 -05:00 |
|
|
5b82f4d646
|
handle PingPong animations
|
2020-03-05 15:55:40 -05:00 |
|
|
0b8eb3e3f1
|
Player: start using Sprite data to calculate texture source / animations.
|
2020-03-05 15:28:34 -05:00 |
|
|
77f1d73097
|
remove convert_sprite_json (no longer needed)
|
2020-03-04 16:47:24 -05:00 |
|
|
654bb7fe97
|
load JSON files directly instead of embedding in XML.
|
2020-03-04 16:16:41 -05:00 |
|
|
4bcb0d9b95
|
fix SharedTests references to JSON library.
|
2020-03-04 15:16:13 -05:00 |
|
|
bc369fcbc4
|
add convert_sprite_json script
|
2020-03-03 17:35:57 -05:00 |
|
|
9672fabcfd
|
Add Sprite class & load sprite metadata from JSON.
|
2020-03-03 17:14:05 -05:00 |
|
|
4299a009b7
|
use auto property
|
2020-03-03 13:08:51 -05:00 |
|
|
d270efe643
|
move Player into World
|
2020-03-03 13:04:29 -05:00 |
|
|
602a8297e6
|
add .gitattributes
|
2020-03-03 13:03:48 -05:00 |
|
|
9633bcca35
|
lint.py: one more .. to find sneak_root
|
2020-03-02 21:21:42 -05:00 |
|
|
f801f95551
|
move to a root LICENSE.txt
|
2020-03-02 20:46:44 -05:00 |
|
|
e5c6811ef9
|
remove copybara (no longer needed)
|
2020-03-02 20:35:53 -05:00 |
|
|
9e33207850
|
add .gitignore
|
2020-03-02 20:27:04 -05:00 |
|
|
65fe870a9a
|
let Scene decide when to draw itself & when to play music
GitOrigin-RevId: 0eac6682b0bbe4d436707c44d9685c1e518b8295
|
2020-03-02 16:47:42 -05:00 |
|
|
29cf5eb0c9
|
add short music loop to demo stage
GitOrigin-RevId: 7ea3d773b12341eb3eb3aabd9000cc32014faac8
|
2020-03-02 15:33:56 -05:00 |
|
|
02b1dd4874
|
Add simple NPC.
GitOrigin-RevId: 47cd7abaf80d7ced14d0b4b92390c8c0edddae1c
|
2020-02-28 17:13:52 -05:00 |
|
|
d9e9fcf9a2
|
remove trailing whitespace
GitOrigin-RevId: 4ccd727a7921e8ef08296586283d84bdc6f31c99
|
2020-02-27 20:24:40 -05:00 |
|
|
de8ca4a374
|
Add sword-swing sound effects.
GitOrigin-RevId: 946a808c6f7e96297ec291f2b8e55ae062d5193b
|
2020-02-27 20:24:36 -05:00 |
|
|
f4581ecaf8
|
Player now takes damage from spikes.
GitOrigin-RevId: e9096316218f2590aac74ce1055a0829f71bdff8
|
2020-02-27 19:13:59 -05:00 |
|
|
a431ad094b
|
smush hearts together a smidge
GitOrigin-RevId: ebb0e78ff5f3c51d6ddc9765e38fb262bccee160
|
2020-02-27 16:50:19 -05:00 |
|
|
c189cfcc09
|
Add player health & a heart sprite.
GitOrigin-RevId: 3389f46044a3fbb48af8533370c0318982c9ad83
|
2020-02-27 16:28:48 -05:00 |
|
|
c213009134
|
Add Text.DrawOutlined() function & other text helpers.
GitOrigin-RevId: 47f9115767c9acac31edaed13ba0ac62732a27f1
|
2020-02-27 15:46:54 -05:00 |
|
|
830fc1ee9a
|
set font to be PointClamped
GitOrigin-RevId: 6f21d2f11df5ba30061ca2994988f5bbd5d38b1d
|
2020-02-27 11:54:37 -05:00 |
|
|
c2fa12db9b
|
Stop printing out jumpTime.
GitOrigin-RevId: dc062283389545c0dd55a3438cc192c2d449ef9a
|
2020-02-26 17:59:09 -05:00 |
|
|
f8fa66385d
|
Display "Paused" message when paused.
Add a new "Banner" style font for the pause message.
GitOrigin-RevId: 62f9537574351b961d7a2bd74f12e218f1047062
|
2020-02-26 17:44:36 -05:00 |
|
|
544b8d2464
|
lint: print # errors and return 1 if any errors found
GitOrigin-RevId: bab4a38d64540385b1a4dc509ba8ffc48feb9293
|
2020-02-25 20:43:47 -05:00 |
|
|
6b95a66859
|
lint: require const field names to be in ALL_CAPS
GitOrigin-RevId: 8b6c20e6d978f2756bdbf946ff860ce5cc48e3ce
|
2020-02-25 20:34:53 -05:00 |
|
|
5549f15029
|
rename numEdgeVertices -> NUM_EDGE_VERTICES
GitOrigin-RevId: c7a67e06ea330f1fd3de4abdbeb8021402b6f330
|
2020-02-25 20:34:49 -05:00 |
|
|
3a8defcf3f
|
Letterbox the scene if the aspect ratio is out-of-whack.
Fixes #23.
GitOrigin-RevId: 2da580115e44f2658e7f9b9d3d39a366d3a1bbfd
|
2020-02-25 20:24:19 -05:00 |
|
|
0a64d17db5
|
fix lint errors
GitOrigin-RevId: 5de396b25947e1de5bea55ecc32bacc59e5b336d
|
2020-02-25 19:19:10 -05:00 |
|
|
efccefa5b1
|
Add lint script.
Fixes #5.
Also fixes #4.
GitOrigin-RevId: eaeeaac96040726472a2b604dc0567b4f8ba69ab
|
2020-02-25 19:15:59 -05:00 |
|
|
3e8b438b0f
|
change copybara config to use new domain
GitOrigin-RevId: 78b38523a2887666e7e71bd5e616a7c02631e79d
|
2020-02-25 17:43:06 -05:00 |
|
|
bd78586a1d
|
rm newline
GitOrigin-RevId: c369e8bd9f847a038c544db1094ba1aabbcf388d
|
2020-02-25 10:30:57 -05:00 |
|
|
74b5e1ec2d
|
Debug rects: pull in top & left sides by a 1-pixel margin.
GitOrigin-RevId: 0f1f846e3f9251699917c43241efe73d6ba74849
|
2020-02-25 09:58:42 -05:00 |
|
|
a0ea63f96b
|
make Input readonly
GitOrigin-RevId: 1bb3c6bb6fad236b0b974a78b2d0c75474c9fa23
|
2020-02-25 09:35:59 -05:00 |
|
|
4e4c2cccb3
|
Input: process debugging commands first & exit early if any are pressed.
GitOrigin-RevId: c36acce59305a0f2086b88c6206f73e3860e0c51
|
2020-02-25 09:26:28 -05:00 |
|