Commit graph

72 commits

Author SHA1 Message Date
KalmeMarq
5b6fcee7f6
connect using url params (#285)
* connect using url params

* lint
2022-03-08 15:46:50 +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
ed011b07fd
UI reorganized and options (#257)
* added readme pt-pt

* ui reorganized, keybinds, foodbar, panorama, etc
2021-12-24 13:00:07 +01:00
PondWader
ead3527d2a
Fix bug of being able to access slots outside of the 1-9 range (#238) 2021-11-07 14:45:08 +01: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
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
AwesomestCode
fc6e2a6739
fix unnecessary ellipses (#177) 2021-04-04 16:43:43 +02:00
ShrimpyStuff
e0a8481954
Make user stop moving when the player isn't on the tab (#173) 2021-04-03 15:03:02 -04:00
Kalme
c54909390c
Make login menu more like minecraft (#166) 2021-04-02 00:09:07 +02:00
Karang
7dcffada09
Important math stuff (#168) 2021-04-01 12:24:26 +02:00
ShrimpyStuff
d7e12c40c4
Kick/End/Err messages on loading screen (#157) 2021-03-28 22:34:58 +02:00
Karang
0506f5a70d
Fix dig/place logic (#148) 2021-03-24 02:23:02 +01:00
Romain Beaumont
1c1a66c57a
Fix infinite loop on click with button 1 (#147) 2021-03-23 23:26:21 +01:00
Romain Beaumont
c590215525
implement keep digging/placing feature (#137) 2021-03-22 02:13:58 +01:00
Romain Beaumont
386a1f8b59
add back touchend without preventDefault 2021-03-22 01:28:26 +01:00
Karang
46d7c53012 Fix vr button for android 2021-03-22 01:24:52 +01:00
Karang
119fb046a6
Add basic vr (#134) 2021-03-21 23:13:32 +01:00
AwesomestCode
cec8f176f1
Break animation (#124)
* add base functions

* Add block breaking animation

* Fix async bug and auto-detect version
2021-03-21 16:04:22 +01:00
Romain Beaumont
c40b00ab5c add service worker for PWA 2021-03-21 01:54:10 +00:00
Romain Beaumont
941ef765b1 prevent scrolling on mobile 2021-03-21 00:57:54 +00:00
Romain Beaumont
7ec6a25474 prevent default on touch
make it impossible to scroll on mobile
2021-03-21 00:38:10 +00:00
Romain Beaumont
247f7d4eec implement touch to move for mobile 2021-03-21 00:32:46 +00:00
Karang
99b0585551 Add blured title panorama 2021-03-20 16:12:20 +01:00
Petr Melentev
52df0ee8cf
adjustable mouse sensitivity added (#118) 2021-03-19 11:01:37 +01:00
Karang
6a8d77bbab Expose renderer and add title.jpg 2021-03-18 08:29:12 +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
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
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
u9g
bf18172805
make func for repeating code (#102)
* make func for repeating code

* Update index.js
2021-03-15 16:20:42 +01:00
Moondarker
116b78f3e7
Player list added (#94)
* Player list added

* Using JavaScript Standard Style
2021-03-15 01:55:23 +01:00
AwesomestCode
b39dc5b980
Add cursor (#93)
* Add cursor

Co-authored-by: Karang <karang.1977472@users.noreply.github.com>

* add canDig check

* Hide when not valid block

Co-authored-by: Karang <karang.1977472@users.noreply.github.com>
2021-03-15 01:20:58 +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
Romain Beaumont
f0294abf9e
fix digit button for hotbar 2021-03-14 19:49:49 +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
0d0cda3e17
check hand for item before dropping (#83)
prevents spam promise rejection in console when pressing q with empty hand
2021-03-14 12:23:24 +01: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
u9g
b7ed63623a
Remove debug messages (#72) 2021-03-14 00:11:37 +01:00
Karang
09807e9ee6 Improve place block and add hotbar wheel selection 2021-03-13 13:51:13 +01:00
Karang
f2c1e4fa2a Fix invisible entities 2021-03-13 04:35:11 +01:00
Romain Beaumont
a49404238c increase all timeouts 2021-03-13 01:51:45 +00:00
Romain Beaumont
0a861190a0 fixed lint 2021-03-13 01:40:56 +00:00
Romain Beaumont
bfec4ad351
increase default timeout to 2min 2021-03-13 02:35:07 +01:00
Romain Beaumont
59c4c490a3
add printing of end reason 2021-03-13 02:27:03 +01:00
Romain Beaumont
11a0e50d02 fix vec3 import 2021-03-13 01:19:07 +00:00
Romain Beaumont
ea6d5256e0 expose more things 2021-03-13 00:14:17 +00:00
Romain Beaumont
a836496e31
Expose bot variable 2021-03-13 00:35:16 +01:00