Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
107 commits
Select commit Hold shift + click to select a range
8443095
create game runner
evanpelle Jan 2, 2025
dab427d
put methods onto terraintile
evanpelle Jan 2, 2025
f988d55
update views
evanpelle Jan 3, 2025
8616e9b
game runs in seperate thread
evanpelle Jan 3, 2025
3e85173
use GameView in renderers
evanpelle Jan 3, 2025
2441abd
game kind of working with GameView
evanpelle Jan 3, 2025
1bbb5c9
packing tiles for more efficient transfer
evanpelle Jan 3, 2025
74716cd
don't render territory on drag to make it smoother
evanpelle Jan 3, 2025
beb00fd
only refresh territory layer every 50ms
evanpelle Jan 3, 2025
12e535a
remove borderOnlyChange
evanpelle Jan 4, 2025
37522b6
have GameRunner calculate Name location
evanpelle Jan 4, 2025
d5e6667
render player info
evanpelle Jan 4, 2025
29ad62c
leaderboard works with view
evanpelle Jan 6, 2025
b260aa0
control panel works
evanpelle Jan 6, 2025
8a320f1
build worker messaging system
evanpelle Jan 6, 2025
39c8f94
attack working
evanpelle Jan 7, 2025
9a95fbe
get attacks working, adjust name placement scaling factor
evanpelle Jan 7, 2025
7673cf0
multithreading: radial menu works
evanpelle Jan 8, 2025
fa02c7d
update tile render amount per tick
evanpelle Jan 8, 2025
7d04d25
thread_split: get units working
evanpelle Jan 8, 2025
10a1f1a
thread_split: enable spawn highlight
evanpelle Jan 8, 2025
3dbe278
thread_split: build units working
evanpelle Jan 8, 2025
162b6dc
in progress
evanpelle Jan 9, 2025
459fc50
builds
evanpelle Jan 9, 2025
8c947a9
use updates for serializing game updates
evanpelle Jan 9, 2025
8e442fe
use html for rendering text
evanpelle Jan 10, 2025
5fca2f2
minor perf improvments
evanpelle Jan 10, 2025
818fbbd
tile perf improvements
evanpelle Jan 10, 2025
e467ab8
name doesn't wrap, can go to player on leaderboard
evanpelle Jan 11, 2025
e395619
update unitlayer to use new api
evanpelle Jan 11, 2025
3da6008
thread split: get units working
evanpelle Jan 12, 2025
e76837c
thread-split events display
evanpelle Jan 13, 2025
fed18e4
thread-split: create PlayerProfile transfer flow
evanpelle Jan 13, 2025
05564b7
make terrain tile load lazily save memory
evanpelle Jan 13, 2025
bf52754
simplify tile rendering
evanpelle Jan 13, 2025
f0d9477
use terrain tile for search
evanpelle Jan 14, 2025
3eef0b7
create GameMap for storing tiles efficiently
evanpelle Jan 14, 2025
0d764eb
update gamemap, rename gamemap enum => gamemaptype
evanpelle Jan 14, 2025
2a2f624
have terrainmaploader return GameMap
evanpelle Jan 14, 2025
b22532d
use TileRef instead of TerrainTile for astar
evanpelle Jan 14, 2025
2068e42
use GameMap for storage in worker thread
evanpelle Jan 14, 2025
a17ae48
use TileRef instead of tile
evanpelle Jan 15, 2025
c42cc2a
have Game delegate to GameMap for cleaner API
evanpelle Jan 17, 2025
f0f5bae
thread_split: convert all tile to tileref
evanpelle Jan 18, 2025
b91d9d4
fix bugs from using tilerefs
evanpelle Jan 19, 2025
70a5b88
make calculate clusters more efficient
evanpelle Jan 21, 2025
e4f0d76
made name rendering more efficient
evanpelle Jan 21, 2025
8fea4d7
make place name for efficient during spawn
evanpelle Jan 21, 2025
42490e2
use renderTroops & renderNumber for playerinfo overlay
evanpelle Jan 21, 2025
ba654fd
thread_split: render crown on first place
evanpelle Jan 21, 2025
ab183e4
show alliance icon
evanpelle Jan 22, 2025
62a0642
thead_split: add is traitor, fix icon scaling issue
evanpelle Jan 22, 2025
05da562
thread_split: implement target player icon
evanpelle Jan 22, 2025
23b0b66
thread_split: add AllianceRequest to events display
evanpelle Jan 22, 2025
970845e
thread_split: send outgoing emoji messages
evanpelle Jan 22, 2025
452f9e6
thread_split: support emoji display
evanpelle Jan 22, 2025
06fd66a
thread_split: improve icon rendering on names
evanpelle Jan 22, 2025
ad06b14
thread_split: have structure layer draw updated structures
evanpelle Jan 23, 2025
f7a0619
reduce cluster check to every 20 ticks
evanpelle Jan 23, 2025
6784002
bugfix: gray out radial emoji option after sending emoji to all players
evanpelle Jan 23, 2025
d69a701
render structures more efficiently
evanpelle Jan 23, 2025
96ab7e7
bugfix: don't render inactive structures
evanpelle Jan 23, 2025
4034d11
split Player/Unit from its Views for better separation
evanpelle Jan 23, 2025
7d15c0c
combine Player & MutablePlayer interfaces
evanpelle Jan 23, 2025
de1dbff
combine Game & MutableGame
evanpelle Jan 23, 2025
75fe718
Combine Unit & MutableUnit
evanpelle Jan 23, 2025
8f8bf5c
Combine AllianceRequest & MutableAllianceRequest
evanpelle Jan 23, 2025
ae02056
combine ExecutionView & Execution
evanpelle Jan 23, 2025
375326e
fix unit not function error
evanpelle Jan 24, 2025
4bbb63f
move Game updates to GameUpdate.ts
evanpelle Jan 24, 2025
d009ef9
use error update to show error modal
evanpelle Jan 24, 2025
7a2f421
update win condtion: 80% non fallout tiles
evanpelle Jan 24, 2025
7325cfc
leaderboard shows percentage non-fallout tiles owned
evanpelle Jan 24, 2025
5f5f8dd
move methods from GameRunner to PlayerImpl
evanpelle Jan 24, 2025
87c4585
remove mode is not player warning
evanpelle Jan 24, 2025
ffb0b7c
add player death & quotes when win or lose
evanpelle Jan 24, 2025
047d7ef
remove defense post from build menu
evanpelle Jan 24, 2025
9b2a84c
separate optionsmenu from playerinfo menu
evanpelle Jan 24, 2025
f571f80
make control panel slighlty wider
evanpelle Jan 24, 2025
e010a53
add game tick timer
evanpelle Jan 25, 2025
d053a82
better styling for options menu
evanpelle Jan 25, 2025
a5a2f46
have client send winner to server
evanpelle Jan 25, 2025
dbe3bdd
update front page background
evanpelle Jan 25, 2025
95aa222
improve front page
evanpelle Jan 26, 2025
3aeff1d
improve front page
evanpelle Jan 26, 2025
348a4a6
add tailwind
evanpelle Jan 27, 2025
633e93f
use tailwind for frontpage
evanpelle Jan 27, 2025
031a452
improve front page
evanpelle Jan 28, 2025
3d58ef1
improve front page UI
evanpelle Jan 28, 2025
f8cc4ba
style front page, default to prod config
evanpelle Jan 28, 2025
2af3c2a
fix rebase errors
evanpelle Jan 28, 2025
545fc3c
fix center button attack
evanpelle Jan 28, 2025
c2226da
make optionsMenu mobile friendly
evanpelle Jan 28, 2025
6fbb422
have player info use tailwind
evanpelle Jan 28, 2025
e87139e
update controlpanel to use lit
evanpelle Jan 28, 2025
d989e7b
better openfront logo
evanpelle Jan 29, 2025
a103d72
don't throw archive error
evanpelle Jan 29, 2025
ebe50b3
make control panel mobile friendly
evanpelle Jan 29, 2025
f2d7c34
make control panel and events display mobile freindly
evanpelle Jan 30, 2025
0d75765
make events more compact
evanpelle Jan 30, 2025
5a1295a
create topbar for mobile
evanpelle Jan 30, 2025
4266bd8
mobile UI: show playerInfo when radial menu activated
evanpelle Jan 30, 2025
ca313fd
have playerinfo stay under optionsmenu
evanpelle Jan 30, 2025
f284603
make options menu scale better
evanpelle Jan 31, 2025
cd121a5
fix z-index issues
evanpelle Jan 31, 2025
4ee3732
format codebase with prettier
evanpelle Jan 31, 2025
c1d9090
improve name rendering: prevent blurring on small devices
evanpelle Feb 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
735 changes: 727 additions & 8 deletions package-lock.json

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
"start:server-dev": "GAME_ENV=dev node --loader ts-node/esm --experimental-specifier-resolution=node src/server/Server.ts",
"dev": "GAME_ENV=dev concurrently \"npm run start:client\" \"npm run start:server-dev\"",
"tunnel": "npm run build-prod && npm run start:server",
"test": "jest",
"tailwind": "tailwindcss build -i ./src/client/tailwind.css -o public/tailwind.css"
"test": "jest"
},
"devDependencies": {
"@babel/core": "^7.25.2",
Expand All @@ -25,6 +24,7 @@
"@types/sinon": "^17.0.3",
"@types/uuid": "^10.0.0",
"@types/ws": "^8.5.11",
"autoprefixer": "^10.4.20",
"babel-jest": "^29.7.0",
"binary-base64-loader": "^1.0.0",
"chai": "^5.1.1",
Expand All @@ -37,10 +37,13 @@
"jest": "^29.7.0",
"mocha": "^10.7.0",
"mrmime": "^2.0.0",
"postcss": "^8.5.1",
"postcss-loader": "^8.1.1",
"raw-loader": "^4.0.2",
"sinon": "^18.0.0",
"sinon-chai": "^4.0.0",
"style-loader": "^4.0.0",
"tailwindcss": "^3.4.17",
"ts-jest": "^29.2.4",
"ts-loader": "^9.5.1",
"ts-mocha": "^10.0.0",
Expand Down Expand Up @@ -95,4 +98,4 @@
"zod": "^3.23.8"
},
"type": "module"
}
}
6 changes: 6 additions & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
}
}
1 change: 1 addition & 0 deletions resources/images/DiscordIcon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/images/EuropeBackground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
93 changes: 93 additions & 0 deletions resources/images/OpenFrontLogo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 45 additions & 0 deletions resources/images/QuestionMarkIcon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading