448d8c52a4
renderer: shaders: nicer error message syntax
2020-02-25 22:42:39 +01:00
bfdecdbd3c
renderer: add HMR
2020-02-23 11:10:56 +01:00
9eed5c04ff
Switch from electron-webpack to electron-forge
2020-02-22 18:08:23 +01:00
d35a68caf3
Update deps
2020-02-22 17:49:38 +01:00
764cd8344d
Fix lint issues
2019-12-24 20:28:51 +01:00
2f77cf7b74
Switch to eslint+prettier
2019-12-24 20:02:24 +01:00
53c1852757
Update dependencies
2019-12-24 14:25:03 +01:00
3c51a1994f
Move renderer into "runtime" subdirectory
2019-12-24 13:53:16 +01:00
33926af829
util: add fetch error handling
2018-12-08 14:43:23 +01:00
84caf3ba5b
Switch from XMLHttpRequest to fetch API
2018-12-08 14:41:03 +01:00
69b494f844
Dynamically size canvas
2018-12-08 13:19:30 +01:00
b3950330e3
Create Electron app
2018-12-08 12:39:18 +01:00
439dcf3917
Update deps
2018-12-07 22:55:36 +01:00
c106e1ede1
Update deps
2018-11-29 22:50:12 +01:00
5f9e8636e3
GameContext: remove animated test entity
2018-11-22 21:45:17 +01:00
2c6cd362c3
Allow using animated entities as map tiles
...
A more optimized implementation for animated tiles is planned.
2018-11-21 21:44:11 +01:00
4443ca2058
Move immutable parts of EntityContext into a new EntityView class
2018-11-21 19:50:59 +01:00
38e90fc2e3
GameContext: async render loop
2018-11-17 13:51:38 +01:00
49699eeb45
MapView: add class for layer rendering
2018-11-17 13:38:09 +01:00
0db19bd119
Add MapView class with common render() method
2018-11-17 12:38:14 +01:00
e52d57b396
yarn.lock: update
2018-11-14 23:08:35 +01:00
31299e7913
resources: more test level elements
2018-11-11 20:32:11 +01:00
ec0e51231f
Prepare support for adding extra elements to map layers
2018-11-11 20:31:22 +01:00
e77b54f01b
resources: add walls to test level
2018-11-11 15:49:42 +01:00
236151ba9c
view: do not split multi-frame sprites into multiple textures
2018-11-11 13:58:22 +01:00
4eb954e759
view: remove support for non-power-of-2 sprites again
...
Sprites with unusual dimensions must be padded with transparency. By only
supporting power-of-two sprites, the anchor point can always be specified
accurately.
2018-11-11 13:30:15 +01:00
b83b596b0f
Add support for simple periodic sprite animations
2018-11-11 01:46:08 +01:00
426b2c37ff
controller: gamecontext: count actual game time
2018-11-11 00:40:46 +01:00
3c83dade65
controller: gamecontext: increase collistion radius to outer line
2018-11-11 00:26:31 +01:00
c9000b7c38
view: add support for non-square, non-power-of-2 sprites
2018-11-10 20:24:25 +01:00
fa3dad090c
yarn.lock: upgrade
2018-11-09 15:42:49 +01:00
266d627597
Use Record type where applicable
2018-11-09 15:12:26 +01:00
d5ba388698
view: inputhandler: release all keys when focus is lost
2018-11-09 13:37:43 +01:00
453a9391cc
Allow interacting with entities
2018-11-09 13:27:49 +01:00
e0eddb8741
Implement circle collidables
2018-11-08 22:26:11 +01:00
5eae6f29a8
Implement more flexible handling of entities and collidables
2018-11-08 22:25:53 +01:00
40339947d1
math: rename Movement.{p1,p2} to {src,dest}
2018-11-08 21:39:05 +01:00
c87d044687
webpack: switch devtool to eval-source-map, use in development mode only
2018-11-07 00:19:10 +01:00
35c49f8666
yarn.lock: update dependencies
2018-11-07 00:07:40 +01:00
b30a4a28a6
controller/gamecontext: even nicer updateStep()
2018-11-06 20:19:41 +01:00
a3962f36aa
controller/gamecontext: refactor collision code
2018-11-05 23:39:55 +01:00
f086908e08
controller/gamecontext: ignore weird projection points rather than stopping movement altogether
2018-11-05 22:41:38 +01:00
ae7674181e
math/line: explicitly allow movement away from line segments
2018-11-05 22:41:05 +01:00
3469b37b1b
math/line: use center point for behind-wall check
...
Fixes collision in case of rounding errors.
2018-11-05 22:19:07 +01:00
fd59aaa55c
More generic collision handling
2018-11-05 19:59:39 +01:00
9be9f8e739
Read collision barriers from map file
2018-11-05 01:28:35 +01:00
5593bf2d36
data: remove obsolete collision matrix
2018-11-05 01:09:01 +01:00
aee504be88
Add collision radius
2018-11-05 00:51:30 +01:00
6a02ea105a
Fix rounding issues in collision handling
2018-11-04 22:42:25 +01:00
34d7b2197b
Replace player sprite with circle
2018-11-04 22:01:25 +01:00