Commit graph

23 commits

Author SHA1 Message Date
Abdulmujeeb Raji a1f6d8fe7f feat(frontend): get login token from server
As of right now, we don't actually do anything with the token. But at
least we're actually able to get it. 😅

Caveats in implementation:
- UI now needs a pointer to player
- .env is now required for server auth (mentioned in README.md)
2023-08-04 14:55:53 +01:00
Muhammad Nauman Raza 29aa823a0f feat(frontend): login interface boilerplate 2023-07-31 13:57:50 +01:00
Muhammad Nauman Raza dba75dde1b feat(frontend): FiraCode as a default font as well as more fonts 2023-07-27 20:42:48 +01:00
Muhammad Nauman Raza f9294eb780 hotfix(frontend): chat window overlapping everything
The chat window is now a simple container within the left bar
2023-07-27 13:43:03 +01:00
Muhammad Nauman Raza c2d608e0e0 chore(frontend): move chat window to left bar (still draggable) 2023-07-27 13:21:43 +01:00
Muhammad Nauman Raza a8e3d0b291 refactor(frontend): everything
The player.go and ui.go files have been separated into their own
separate packages.
Additionally, all go.mod files have been modified to point to local
directories.

This change should not only clean up the frontend codebase, but also
make it easier to send/recieve data from the backend (at least
regarding the player)
2023-07-27 12:57:11 +01:00
Abdulmujeeb Raji 950fe47f52 Merge branch 'main' of https://github.com/devraza/ambition 2023-07-26 21:25:44 +01:00
Muhammad Nauman Raza 5e15a03c58 feat(ui): basic chat window initialised 2023-07-24 13:45:52 +01:00
Muhammad Nauman Raza 36589b9cda chore: remove accidentally added executable 2023-07-24 13:45:13 +01:00
Muhammad Nauman Raza ccbd906c6f chore(ui): add placeholder content for remaining tabs 2023-07-23 21:48:49 +01:00
Muhammad Nauman Raza 3cb0cc61d0 feat(ui): profile content within tabbar (within leftbar) 2023-07-23 21:37:24 +01:00
Muhammad Nauman Raza 769e90fa88 chore: font/face code improvement 2023-07-23 17:07:39 +01:00
Muhammad Nauman Raza 65c57d1d3e hotfix: bad code 2023-07-23 15:28:06 +01:00
Muhammad Nauman Raza 888bcb0404 feat(ui): tabbar within leftbar 2023-07-23 15:27:31 +01:00
Muhammad Nauman Raza 21f0e8a429 hotfix: move assets folder 2023-07-23 13:52:03 +01:00
Abdulmujeeb Raji 99471afc4a feat(frontend): basic player structure
Player has health, level, exp (which is gained constantly while online)
and ambition (which affects the rate of exp gain). More stats will be
added later. This is mostly just a test implementation. Will clean up
later.
2023-07-23 09:25:31 +01:00
Abdulmujeeb Raji 2ecb20ff3a refactor(fronten): user interface
- Moved user interface code to seperate file
- Added a simple wrapper over ebitenui.UI to allow storage of colors
and such

Hopefully this makes it possible for colors to be changed by users in
the future
2023-07-23 09:24:52 +01:00
Abdulmujeeb Raji 9157bfe8a1 feat(frontend): Basic Player Init
Player has health, level, exp (which is gained constantly while online)
and ambition (which affects the rate of exp gain). More stats will be
added later. This is mostly just a test implementation. Will clean up
later.
2023-07-23 09:20:48 +01:00
Abdulmujeeb Raji 8b0bcef568 frontend: UI refactoring
- moved ui code to seperate file
- added a simple wrapper over ebitenui.UI to allow storage of colors
and such

Hopefully this makes it possible for colors to be changed by users in
the future
2023-07-23 07:57:28 +01:00
Muhammad Nauman Raza d525bc8fff chore(docs): comments 2023-07-23 00:36:55 +01:00
Muhammad Nauman Raza 044f2022e7 feat: hazakura colorscheme + basic interface 2023-07-23 00:34:44 +01:00
Muhammad Nauman Raza 0b3803c8ad feat: random window titles 2023-07-22 23:40:06 +01:00
Muhammad Nauman Raza 84580e8a78 chore: split frontend/backend into separate folders 2023-07-22 22:19:15 +01:00