Commit graph

41 commits

Author SHA1 Message Date
cc2079050b Simplify session's get function 2018-12-30 23:37:53 +01:00
52a6d8fc91 Fix bug leaking modules into global space, fix unseen missing dependencies due to said bug 2018-12-30 23:33:44 +01:00
559b180a14 Check that a button mapping is defined before accessing it 2018-12-29 14:45:47 +01:00
c05296fda4 Don't wait for new game to be sent before defining the character 2018-12-29 14:32:23 +01:00
75417035f6 Add a cache module 2018-12-29 14:15:23 +01:00
cb1a20546f Fix bug preventing session from returning objects equivalent to «false» in a JS test 2018-12-29 09:14:33 +01:00
0973655f7e Stop sending message with character's feature and save it into localStorage instead 2018-12-18 21:21:55 +01:00
a418ccedac Prepare Session module to generalize its various properties and stop duplicating getters and savers 2018-12-18 21:15:45 +01:00
bed89a5daa Implement the rest of character generation 2018-12-17 12:31:03 +01:00
0756418722 Style options menu and fix leak in buttons' mapping 2018-12-15 22:33:49 +01:00
99003475c8 Move JS code into a separate subdir to make space for the images + start generalizing menu functions a little 2018-12-15 09:24:47 +01:00
59556d8515 Reorganize game initialization a bit, providing default answer for skin and gender and generating the character by sending the query to the server 2018-12-14 23:42:37 +01:00
163350d009 Starting a new game should close the start menu 2018-12-14 23:37:07 +01:00
3d59f0dbff Allow to compose the fact that a menu entry closes it with normal actions instead of making it a special type of entry 2018-12-14 23:36:15 +01:00
b9d8dba0a3 Fix memory leak on buttons mapping in textScreen() 2018-12-14 23:34:13 +01:00
bdf11a96ca Harden async's parallel against one function returning multiple times 2018-12-14 23:31:09 +01:00
99d3a34790 Change default unisex character name 2018-12-10 23:06:18 +01:00
3ab4762d2f Generalize bind to sequences of arbitrary length and add an apply method to get the result of an application into the async monad 2018-12-09 23:07:13 +01:00
6038d3bdbc Fix bugs in buttons settings menu 2018-12-04 08:27:32 +01:00
9bd0f127ff Implement name prompt and go on to skin selection 2018-12-02 19:50:23 +01:00
aa6fe74a6b Implement the messaging module for good using the async monad for message reception 2018-12-02 19:49:57 +01:00
0ec7c4d1ee Make the update function in session module an async construct that waits until the state of the game has been updated 2018-12-02 19:48:59 +01:00
938c4d9aaa Make async return the last value of a sequence 2018-12-02 19:44:56 +01:00
e7efd4b524 Add a parallel operator in the async monad 2018-12-02 00:19:52 +01:00
6cf9614518 Allow menus to start at a pre-selected position and use it on text speed selection 2018-12-01 17:17:18 +01:00
2ff44fcebe What was that commented code even doing here ? 2018-11-30 14:52:28 +01:00
f72f2084a8 Implement settings menu 2018-11-30 14:51:42 +01:00
d5909e1b36 Implement text prompt and use it to offer an open choice for the name 2018-11-29 22:22:25 +01:00
fff6ac34a1 Homogenize indentation (dom and messaging were using spaces) to tabs 2018-11-29 22:09:09 +01:00
242b97e745 Fix bug preventing the previous buttons mapping to be restored 2018-11-29 21:59:18 +01:00
78aa3f6281 Handle text speeds and store it along with keyboard layout 2018-11-23 17:03:09 +01:00
54ff5b0875 Add margin on framed elements to get a feel closer to the original game 2018-11-23 14:25:18 +01:00
c89074b508 Use a fatter arrow and change positioning for menus to guarantee it can't impact the entries 2018-11-23 14:24:53 +01:00
6a154e094d Implement text to be split in enough screens it takes to display it all 2018-11-22 23:11:36 +01:00
524735329f Fix bug in start cinematic causing B button to disfunction 2018-11-22 23:10:56 +01:00
fecad7171c Fix bug introduced in 2eecc2 defaulting markAsRead to false whether name suggests it should be true 2018-11-22 23:09:43 +01:00
865f7ce83e Take animation, text and menus to a separate UI module 2018-11-20 15:56:28 +01:00
2eecc2c7fb Implement little arrows for menus and dialogs 2018-11-20 09:48:17 +01:00
af342c72d5 Implementing a bunch of monads and buttons and stuff and starting to theme it a bit 2018-11-18 23:08:36 +01:00
ff0070d90d Starting to grow modules 2018-11-17 19:07:58 +01:00
85cf8da5df Initialized the client with an empty page 2018-11-17 17:21:20 +01:00