Commit graph

48 commits

Author SHA1 Message Date
KalmeMarq
1b08956d10
Mobile controls (#262)
* added readme pt-pt

* added url/querystring deps and fix chat pos/scale

url and querystring were missing in node_modules.
chat scale option wasn't implemented and chat input was on top instead of bottom.

* added bot version text field and guiScale for small screens

text field to choose bot version. gui scale changes on small screens (slider takes no effect then). Removed unused images.

* added mobile controls

* fixed bot and chat

* mobile controls only appear on mobile or if forced

* lint fix
2021-12-25 22:50:40 +01:00
Romain Beaumont
8cbc95b5ef
Default version in config (#261)
* Update play_screen.js

* Update config.json
2021-12-24 21:20:08 +01:00
KalmeMarq
d087ed2846
added bot version text field, guiScale for small screens and removed unused images (#260)
* added readme pt-pt

* added url/querystring deps and fix chat pos/scale

url and querystring were missing in node_modules.
chat scale option wasn't implemented and chat input was on top instead of bottom.

* added bot version text field and guiScale for small screens

text field to choose bot version. gui scale changes on small screens (slider takes no effect then). Removed unused images.

* Update index.js

Co-authored-by: Romain Beaumont <romain.rom1@gmail.com>
2021-12-24 21:02:11 +01:00
KalmeMarq
5fe0807a25
Added url/querystring to deps and fixed chat (#259)
* added readme pt-pt

* added url/querystring deps and fix chat pos/scale

url and querystring were missing in node_modules.
chat scale option wasn't implemented and chat input was on top instead of bottom.
2021-12-24 17:28:38 +01:00
KalmeMarq
ed011b07fd
UI reorganized and options (#257)
* added readme pt-pt

* ui reorganized, keybinds, foodbar, panorama, etc
2021-12-24 13:00:07 +01:00
Romain Beaumont
1033404f91 migrate to lit 2021-11-12 21:08:49 +00:00
Pandapip1
180e1243c4
Makes chat auto fade away (and fixes CI) (#236) 2021-11-05 13:00:28 -04:00
Alexander Ivanov
74ec5feae0
Add health bar (#223)
* Create healthbar.js

* Hardcore/Creative mode support

* Actually add healthbar
2021-10-26 10:23:28 +02:00
u9g
fabf85e97b
Only show properties divider if there are properties (#197) 2021-06-17 21:08:48 -04:00
u9g
46bbf782f1
add wait before blocks placed (#160)
* Create util.js

* Update cursor.js

* Update util.js

* Delete util.js

* Done :)

* change comment placement

* Replaced with bot. with this.

* run standard

* pass bot to cursor constructor

Co-authored-by: AwesomestCode <53128754+AwesomestCode@users.noreply.github.com>
2021-04-12 22:25:41 +02:00
PondWader
edec62a20f
Adding Game Menu (#179)
* Fixed Chat Glitch

Fixed an annoying glitch where when you click you are locked out of chat. Makes chat smoother to use

* Added Game Menu

Added a game menu for when player presses escape.
NOTE: Player must be out of mouse lock for this to register (so often requires double pressing of escape).

* Block open chat when in game menu

* Linted + removed alert

* Linted
2021-04-06 13:31:02 +02:00
Kalme
c54909390c
Make login menu more like minecraft (#166) 2021-04-02 00:09:07 +02:00
Karang
b488cc4d3c Use blending in break material 2021-03-24 20:50:36 +01:00
Karang
0506f5a70d
Fix dig/place logic (#148) 2021-03-24 02:23:02 +01:00
Karang
46d7c53012 Fix vr button for android 2021-03-22 01:24:52 +01:00
Karang
953835536e Fix lint 2021-03-22 00:26:01 +01:00
Karang
ebf0fa0766
properly test if vr supported (#135) 2021-03-22 00:21:48 +01:00
Karang
119fb046a6
Add basic vr (#134) 2021-03-21 23:13:32 +01:00
Romain Beaumont
3ef096458f
Fix discord link 2021-03-21 20:22:28 +01:00
dada513
4d4b32e8de
Added docker support, made config dynamic (#108)
* Made config.json dynamic

* added docker support

* Fixed dockerfile npm install error

* fixed line ends

* Revert "Made config.json dynamic"

This reverts commit 5cb413b9aa.

* config.json is now loaded dynamically

* Made dynamic config work on github page

* config is now dynamically copied

* removed sync-request dependency

Co-authored-by: d513 <ogoniasty513@gmail.com>
2021-03-21 17:14:14 +01:00
Karang
99b0585551 Add blured title panorama 2021-03-20 16:12:20 +01:00
Petr Melentev
f53ebe0e4f
added fading item name above the hotbar (#116) 2021-03-18 08:39:27 +01:00
u9g
5d3eeec6a0
less padding + closer to top for playerlist (#115) 2021-03-18 05:33:11 +01:00
Moondarker
eb08d3720b
Added block name and properties, also hp and food till #85 is done (#114) 2021-03-18 03:22:41 +01:00
Karang
e7d8fc0e64 Fix hotbar stacking when changing world 2021-03-18 02:38:35 +01:00
Romain Beaumont
becadf73ee make invite link go directly to the right room 2021-03-17 00:41:37 +00:00
Romain Beaumont
3c15f83fa1 add line to menu on how to help 2021-03-17 00:16:09 +00:00
Romain Beaumont
ef6096fac2 add line on what is prismarine web client 2021-03-16 23:33:25 +00:00
Romain Beaumont
7ad999d64e
use litelement properly for debugmenu (#110)
* use litelement properly for debugmenu

* add customEntries to debugMenu

* add bot on move listener to update when view is moved
2021-03-17 00:00:26 +01:00
Romain Beaumont
7300456fc9 improve debug menu a bit
don't update when hidden
2021-03-16 21:43:50 +00:00
Romain Beaumont
ceca3bfcfa enable chat in next tick to avoid t being entered 2021-03-16 20:55:28 +00:00
Moondarker
7c9b954d35
Added debug menu (#107)
* Added debug menu

* Replaced overkill string id generation with incremental integers
2021-03-16 20:41:54 +01:00
Moondarker
3a74d5a09f
(Hopefully) Making playerlist the LitElement way (#106)
* (Hopefully) Making playerlist the LitElement way

* Fixed a double-arrowed function call in playerlist
2021-03-16 09:45:39 +01:00
Moondarker
9a5c008530
Using stackable key events instead of document.onkey/*whatever*/ (#104) 2021-03-16 03:16:37 +01:00
Romain Beaumont
f08e362801 remove password for menu, add github link
fix #100 fix #101
2021-03-16 00:20:02 +00:00
Karang
04751a724d Improve hotbar css, add item numbers 2021-03-15 21:17:33 +01:00
u9g
9e0f2c9300
Update playerlist.js (#99)
* Update playerlist.js

* use arrow function to be non-this-binding

* lint
2021-03-15 18:28:40 +01:00
Moondarker
116b78f3e7
Player list added (#94)
* Player list added

* Using JavaScript Standard Style
2021-03-15 01:55:23 +01:00
Romain Beaumont
19a2da8fa8 put crosshair in webcomponent 2021-03-14 20:48:01 +00:00
Romain Beaumont
cc1a14ea4b
move chat to web component (#91) 2021-03-14 20:34:35 +01:00
Karang
267afce9db Use item atlas 2021-03-14 19:57:29 +01:00
Romain Beaumont
77fa0ee0cd
move hotbar to web component (#89) 2021-03-14 19:33:41 +01:00
Romain Beaumont
4efff81a6a
move loading screen to component (#86) 2021-03-14 18:24:09 +01:00
u9g
0195c1356d
Make a nicer menu (#82)
* Make a nicer menu

* allow background to be colored + set font

* remove redirect

* replace with login with something more meaningful

* Update menu.js

* Update config.json
2021-03-14 17:02:35 +01:00
Romain Beaumont
b9685e7953 fix menu 2021-03-14 02:04:51 +00:00
Romain Beaumont
f04b085183
replace prompt by menu (#75)
* replace prompt by menu

implemented with lit element
https://lit-element.polymer-project.org/

I think we should use more of lit element for
all html things

makes it easy to build modular things

* use require
2021-03-14 02:20:11 +01:00
Karang
776f1ab772 Fix moving in chat, fix breaking snapping view 2021-03-02 05:07:12 +01:00
Romain Beaumont
8249a48646 add ugly chat box from https://github.com/AwesomestCode/mineflayer-web-test/branches 2021-02-27 23:18:58 +00:00