Commit graph

13 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 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 3cb0cc61d0 feat(ui): profile content within tabbar (within leftbar) 2023-07-23 21:37:24 +01:00
Muhammad Nauman Raza 888bcb0404 feat(ui): tabbar within leftbar 2023-07-23 15:27:31 +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
Renamed from main.go (Browse further)