Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚧 Remake with React #7

Closed
wants to merge 41 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
4f4169f
ROTATE_EventHandlersEventMap
satelllte Apr 17, 2024
9da52be
remove Bind fn
satelllte Apr 17, 2024
c4ae1d1
remove "var gameInstance"
satelllte Apr 17, 2024
9f52971
remove "gameInstance" completely
satelllte Apr 17, 2024
28dec1d
ROTATE_PauseMenu file
satelllte Apr 17, 2024
0fbff92
remove "ieUnmuted" logic
satelllte Apr 17, 2024
8cb8484
remove IE logic
satelllte Apr 17, 2024
8fa9063
warnNoSave: improved
satelllte Apr 17, 2024
1d1e025
remove unused imports
satelllte Apr 17, 2024
51e917a
ROTATE_Game.instance.currentScreen safe calls
satelllte Apr 17, 2024
38b7269
ROTATE_Awards file
satelllte Apr 17, 2024
166b0b7
ROTATE_Awards: improvements
satelllte Apr 17, 2024
2f28317
Transform: simplified
satelllte Jun 24, 2024
570857a
ROTATE_CanvasObject: more simplifications
satelllte Jun 24, 2024
aa987df
ROTATE_CanvasObject: cascadingCallback, getBounds
satelllte Jun 24, 2024
eda7979
ROTATE_CanvasObject: more improvements
satelllte Jun 24, 2024
4eeb93a
fix: type Block import
satelllte Jun 24, 2024
5637172
ROTATE_ScreenPrimaryGame.play type
satelllte Jun 24, 2024
a1e3ce1
metaEquals: better definition
satelllte Jun 24, 2024
317f478
remove "nosave" checks
satelllte Jun 24, 2024
0b40246
LocalStorage: consistent impl
satelllte Jun 24, 2024
0c76d61
Block.shouldRender: remove unnecessary args
satelllte Jun 24, 2024
a5ed387
more type improvements
satelllte Jun 24, 2024
934deff
empty ./src dir
satelllte Aug 10, 2024
05c0806
setup react
satelllte Aug 10, 2024
962e586
fix: CI
satelllte Aug 10, 2024
0a68a70
nvmrc
satelllte Aug 10, 2024
82f41b8
CI: grab node version from .nvmrc
satelllte Aug 10, 2024
378ce18
@rollup/rollup-linux-x64-gnu optional dep
satelllte Aug 10, 2024
18acc2b
CI: remove unnecessary "node version" step
satelllte Aug 10, 2024
e225c33
component: Loader
satelllte Aug 10, 2024
9cb2baf
CanvasRoot & Screen basics
satelllte Aug 10, 2024
6d37a1f
remove unused Loader component
satelllte Aug 10, 2024
afcb2f2
rename Screens
satelllte Aug 10, 2024
caca1ae
useImage: react to src change properly
satelllte Aug 10, 2024
83cc442
rename to Canvas, onPointerMove logic for button intersection detection
satelllte Aug 10, 2024
9547927
calcIsOverButton: better logic
satelllte Aug 10, 2024
49b570a
ScreenLaunchButton file
satelllte Aug 10, 2024
bdf8910
ScreenLaunchButton: more functions split
satelllte Aug 10, 2024
e15586c
ScreenDebug
satelllte Aug 10, 2024
a083bb0
Canvas/utils
satelllte Aug 10, 2024
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
18 changes: 8 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,13 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Bun
uses: oven-sh/setup-bun@v1
- name: Bun version
run: bun --version
- name: Node version
run: node --version
- name: Install Bun dependencies
run: bun install --frozen-lockfile
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Install dependencies
run: npm ci
- name: Test (formatting)
run: bun run test:format
run: npm run test:format
- name: Build
run: bun run build
run: npm run build
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
21
Binary file removed bun.lockb
Binary file not shown.
15 changes: 2 additions & 13 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,7 @@
<link rel="canonical" href="https://www.crazygames.com/game/rotate" />
</head>
<body style="margin: 0; background: #202020">
<img
id="loader"
src="img/loader.gif"
style="
position: absolute;
left: 50%;
top: 50%;
margin: -24px 0 0 -24px;
z-index: 100;
"
/>
<div id="game" style="display: none"></div>
<script type="module" src="./src/Rotate.ts"></script>
<div id="root"></div>
<script type="module" src="./src/index.tsx"></script>
</body>
</html>
Loading