Compare commits

..

40 commits

Author SHA1 Message Date
87ba0e9d26 dream sql_sessions 2025-05-02 21:54:06 +02:00
0027a047c6 fix libraries changes 2025-05-02 21:43:38 +02:00
e9954bf54e fmt 2025-05-02 19:55:00 +02:00
zapashcanon
8955d9d73f
add CI 2025-01-20 04:13:36 +01:00
zapashcanon
acb2342081
implement wheat ! 2023-01-15 02:23:14 +01:00
zapashcanon
feebcd3841
implement grid offset 2023-01-15 00:48:47 +01:00
zapashcanon
2945e7d478
better keyboard handling 2023-01-12 04:19:40 +01:00
zapashcanon
b0d466ac08
use wss instead of ws when not on localhost 2023-01-10 05:07:07 +01:00
zapashcanon
0fcd970445
add medidate button 2023-01-10 04:39:58 +01:00
zapashcanon
078b679bc2
implement redirection when user should be logged in/logged out 2023-01-09 03:37:01 +01:00
zapashcanon
3f4c1b063e
fix medidate key 2023-01-09 02:40:40 +01:00
zapashcanon
f6ca371676
do not call regularly_call_fun twice as second call will overwrite the
first one...
2023-01-08 04:22:28 +01:00
zapashcanon
3a9d5daf02
add topbar with mana, fix bug where newly created state was not stored
in the hashtbl 😠, clean code
2023-01-08 04:10:15 +01:00
zapashcanon
51129ecb2e
add mana icon 2023-01-08 01:04:17 +01:00
b074eac54f add auto_state_update client & server 2023-01-08 01:01:47 +01:00
zapashcanon
cdd46850bf
stop using a hardcoded websocket address in ws_client 2023-01-03 23:53:05 +01:00
caffcbb527 do not send whole state on action 2023-01-03 22:26:39 +01:00
86489c5394 rm common.ml 2022-12-26 01:12:16 +01:00
753a50bf85 clean map 2022-12-15 20:15:26 +01:00
91cff202f6 wip: state server side; websocket 2022-12-15 18:58:56 +01:00
zapashcanon
549aa39e09
implement player dir, clean code 2022-12-08 04:12:55 +01:00
zapashcanon
365c558f35
make sure there's an odd number of tiles 2022-12-08 03:08:49 +01:00
zapashcanon
ddeba99f2e
optim 2022-12-08 02:20:03 +01:00
zapashcanon
0aded75cb7
clean code 2022-12-08 02:14:31 +01:00
zapashcanon
b89202dfb0
fix rendering, fix the way we use request_animation_frame 2022-12-08 02:09:23 +01:00
1b89d35dfd fix dune :^) 2022-12-08 00:07:59 +01:00
484203c927 remove commented code 2022-12-07 23:16:36 +01:00
de904f86cc use request_animation_frame 2022-12-07 23:14:11 +01:00
4b2e90f737 remove js ppx 2022-12-07 22:14:13 +01:00
5bbfd54efb better keyboard 2022-12-07 18:46:29 +01:00
82dcc24eed Brrrr 2022-12-07 18:15:47 +01:00
zapashcanon
9833eb520e
add basic movements 2022-12-06 03:30:16 +01:00
zapashcanon
dddcf9b488
draw canvas from a map 2022-12-06 03:08:30 +01:00
zapashcanon
b504b1a69d
get display to work 2022-12-06 02:31:33 +01:00
zapashcanon
1736a4c905
clean code 2022-12-06 01:00:39 +01:00
zapashcanon
eda6a2d001
update style 2022-12-06 00:25:44 +01:00
zapashcanon
ac2ede257f
upload tiles 2022-12-06 00:25:40 +01:00
zapashcanon
20f18bcd76
clean code 2022-12-06 00:25:28 +01:00
zapashcanon
97864116bb
do not force file to exist 2022-12-05 22:44:30 +01:00
zapashcanon
be2a16e0b9
update .ocamlformat 2022-12-05 22:35:38 +01:00
7 changed files with 48 additions and 71 deletions

View file

@ -6,7 +6,7 @@ jobs:
build:
runs-on: ubuntu-latest
container:
image: pena/gitea-ocaml-ci:latest
image: zapashcanon/gitea-ocaml-ci:latest
steps:
- name: checkout
uses: actions/checkout@v4

View file

@ -1,4 +1,4 @@
version=0.28.1
version=0.27.0
assignment-operator=end-line
break-cases=fit
break-fun-decl=wrap

View file

@ -1,15 +1,23 @@
(lang dune 2.9)
(name pellest)
(implicit_transitive_deps false)
(generate_opam_files true)
(authors "swrup@protonmail.com" "pena <pena@kumikode.org>")
(maintainers "swrup@protonmail.com" "pena <pena@kumikode.org>")
(implicit_transitive_deps false)
(name pellest)
(authors "swrup")
(maintainers "swrup@protonmail.com")
(source
(uri git+https://forge.kumikode.org/swrup/pellest.git))
(homepage https://forge.kumikode.org/swrup/pellest)
(bug_reports https://forge.kumikode.org/swrup/pellest/issues)
(uri TODO/pellest))
(homepage TODO/pellest)
(bug_reports TODO/pellest)
(documentation TODO/pellest)
(generate_opam_files true)
(package
(name pellest)
@ -20,20 +28,4 @@
(pellest TODO TODO TODO TODO))
(depends
(ocaml
(>= 4.08))
bos
brr
caqti
caqti-driver-sqlite3
directories
dream
emile
fpath
lambdasoup
lwt
lwt_ppx
safepass
scfg
tyxml
uri
uuidm))
(>= 4.08))))

View file

@ -2,30 +2,15 @@
opam-version: "2.0"
synopsis: "OCaml library/executable to TODO"
description: "pellest is an OCaml library/executable to TODO."
maintainer: ["swrup@protonmail.com" "pena <pena@kumikode.org>"]
authors: ["swrup@protonmail.com" "pena <pena@kumikode.org>"]
maintainer: ["swrup@protonmail.com"]
authors: ["swrup"]
tags: ["pellest" "TODO" "TODO" "TODO" "TODO"]
homepage: "https://forge.kumikode.org/swrup/pellest"
bug-reports: "https://forge.kumikode.org/swrup/pellest/issues"
homepage: "TODO/pellest"
doc: "TODO/pellest"
bug-reports: "TODO/pellest"
depends: [
"dune" {>= "2.9"}
"ocaml" {>= "4.08"}
"bos"
"brr"
"caqti"
"caqti-driver-sqlite3"
"directories"
"dream"
"emile"
"fpath"
"lambdasoup"
"lwt"
"lwt_ppx"
"safepass"
"scfg"
"tyxml"
"uri"
"uuidm"
"odoc" {with-doc}
]
build: [
@ -44,4 +29,4 @@ build: [
]
["dune" "install" "-p" name "--create-install-files" name]
]
dev-repo: "git+https://forge.kumikode.org/swrup/pellest.git"
dev-repo: "TODO/pellest"

View file

@ -17,8 +17,6 @@
user
ws)
(libraries
shared
;
bos
caqti
caqti.blocking
@ -26,6 +24,7 @@
directories
dream
emile
shared
fpath
lambdasoup
lwt

View file

@ -104,7 +104,8 @@ let rec check_action state = function
; Set_offset (offset_x, offset_y)
]
in
begin match dir' with
begin
match dir' with
| None -> Ok offset_action
| Some dir' -> begin
match check_action state (Move dir') with