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
dbc3a6aa12
controller: gamecontext: implement simple collision handling
2018-11-04 20:22:47 +01:00
884a5b700c
Add simple math library for line segments
2018-11-04 20:05:12 +01:00
c86c56d44d
Minor code improvements
2018-11-04 20:04:48 +01:00
a4978eb751
Updated test level
2018-11-04 20:04:07 +01:00
7a14936af2
index.html: vertically center canvas
2018-11-04 20:03:33 +01:00
9f2e4e6996
Do not use default exports
2018-11-01 00:59:13 +01:00
22b06efe2c
controller: more GameContext cleanup, introduce ticks
2018-11-01 00:44:49 +01:00
1ae0884a73
controller: clean up GameContext a bit
2018-10-31 23:25:26 +01:00
5372d1b417
Move game logic to a new module
2018-10-31 23:02:59 +01:00
b08479af40
view: make entity anchor point configurable, default to center
2018-10-31 22:10:54 +01:00
1f9cd7a110
Switch from characters to numerical tile IDs
2018-10-31 21:55:41 +01:00
31c131289c
Add loader for simple (single-sprint) entities, use direction input
2018-10-31 21:12:22 +01:00
69be8d2ef8
view: rename tile module to sprite
2018-10-31 18:44:50 +01:00
84762894c8
Promisify XMLHttpRequest
2018-10-31 15:33:52 +01:00
68ff0cb4b1
Get rid of MapView and MapState
2018-10-31 15:10:40 +01:00
60f03e3c5e
view/tile: fix vertex count
2018-10-31 15:05:06 +01:00
da3e93a942
view: more refactoring
2018-10-31 14:40:20 +01:00
af04cbe359
view: refactor generic parts of MapView into a TileView
2018-10-31 14:24:38 +01:00
272e37a408
view: move tile size definition to MapLoader
...
We also remove the unneeded redrawPending flag.
2018-10-31 12:54:49 +01:00
6370b60189
view/renderer/Renderer: we don't need a depth buffer
2018-10-31 12:54:08 +01:00
1712352d1c
view: add simple input handlers
2018-10-31 10:52:57 +01:00