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

Next #5

Closed
wants to merge 86 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
c5a4d32
Install jest and setup unit testing
kubrysh Feb 4, 2023
4369854
Add bot-related constants
kubrysh Feb 4, 2023
bef115e
Implement bot adding business logic
kubrysh Feb 4, 2023
10a6699
Create "add-bot" API endpoint
kubrysh Feb 4, 2023
79c475e
Add unit tests of recursivelyTryAddingBot() fn
kubrysh Feb 4, 2023
03b8979
Update addBot method
kubrysh Feb 6, 2023
a9f5154
Implement preventing adding two bots at same time
kubrysh Feb 6, 2023
bb81fdf
Implementing calling of bot api endpoint
kubrysh Feb 6, 2023
7d4c016
Implement bot spawning / killing server logic
kubrysh Feb 6, 2023
6cbc97b
Minor fixes
kubrysh Feb 7, 2023
e607733
Implement NFT skins for bots
kubrysh Feb 7, 2023
facbec9
Add logging for /api/add-bot/
kubrysh Feb 7, 2023
e289123
Implement bot addition request retry logic
kubrysh Feb 7, 2023
8d89067
Implement a single waitRoom data fetching logic
kubrysh Feb 7, 2023
7332d03
Fix axios retry for POST requests
kubrysh Feb 8, 2023
a92fdb1
Implement leaderboard sorting
kubrysh Feb 8, 2023
d692766
Minor fixes
kubrysh Feb 8, 2023
c79a91a
Fix hardcoded bot joining time value in comments
kubrysh Feb 10, 2023
6595647
Change Array to Set for faster lookup
kubrysh Feb 13, 2023
14071d3
Improve the clarity of comments in Mode.js
kubrysh Feb 13, 2023
e333d4f
Change bot addition time to 2 min
kubrysh Feb 13, 2023
466c871
Add 2 more bots
kubrysh Feb 13, 2023
4be4885
Fix new min bot join time value in error message
kubrysh Feb 13, 2023
596310d
useServer -> useSelectedServer
kubrysh Feb 14, 2023
aad45d6
Move wallet context to separate hook & files
kubrysh Feb 14, 2023
d58f267
Create ContractServersContext as a hook data store
kubrysh Feb 14, 2023
a0a5671
Install @mui/icons-material
kubrysh Feb 14, 2023
d18db70
Fix overflowing grid areas in <Dashboard />
kubrysh Feb 14, 2023
7fced7c
Implement <ServerSelector /> component & logic
kubrysh Feb 14, 2023
71756e1
Update contract address
kubrysh Feb 15, 2023
282c295
Reduce the playing area on the server by half
kubrysh Feb 15, 2023
c0c9937
[DevOps] Update staging and production workflows (#24)
kubrysh Feb 15, 2023
2d79072
Fix 500 error status code to 429
kubrysh Feb 15, 2023
8e9a10c
Fix local git repo being out of sync with origin
kubrysh Feb 15, 2023
a639760
Fix git command
kubrysh Feb 15, 2023
54697b8
Rename next() and previous() to descriptive names
kubrysh Feb 15, 2023
9dc233b
Create CHANGELOG.md
kubrysh Feb 20, 2023
e4a7215
Update README.md
stepandra Feb 24, 2023
bebad65
Updated contract address in README
stepandra Feb 24, 2023
c952255
Fix incorrect link text
stepandra Feb 24, 2023
497171a
Added illustration from BCD
stepandra Feb 24, 2023
2740b3a
Updated contract address with fix in README
stepandra Feb 24, 2023
f3c2c61
Update contract address
kubrysh Feb 27, 2023
c65329b
Update CHANGELOG.md
kubrysh Feb 27, 2023
d5801f4
Merge pull request #2 from stepandra/next--update-contract-address
kubrysh Feb 27, 2023
2772169
Update README.md
kubrysh Feb 27, 2023
3741760
Implement ability to join local dev game server
kubrysh Feb 27, 2023
08d5071
Implement non-linear bot addition logic
kubrysh Feb 24, 2023
f7a6305
Make bot addresses env vars available in browser
kubrysh Feb 24, 2023
ecfd2b8
Fix forgotten import
kubrysh Feb 24, 2023
7a83493
Fix game progress timer receiving not valid data
kubrysh Feb 27, 2023
a2c91fd
Update CHANGELOG.md
kubrysh Feb 28, 2023
e28a74f
Merge pull request #4 from stepandra/kubrysh-next--readme-update
stepandra Mar 1, 2023
a514508
Migrate from jQuery dependency
kubrysh Feb 19, 2023
cc98609
Remove unnecessary seedrandom dependency
kubrysh Feb 22, 2023
cc4eccf
Move planet shaders to separate files
kubrysh Feb 22, 2023
8944377
Refactor planet rendering functions &
kubrysh Feb 22, 2023
155e4c6
Refactor planet rendering in hooks & components
kubrysh Feb 22, 2023
beaad1f
Refactor renderPlanet into class with anim methods
kubrysh Feb 23, 2023
6c0c99d
Add the ability to specify fps in VirusAnimation
kubrysh Feb 23, 2023
46ab9b7
Remove explicit setting of w&h on planet canvas
kubrysh Feb 23, 2023
fd68101
Implement rendering of animated planets in game
kubrysh Feb 23, 2023
570f887
Remove ipfs dependency
kubrysh Feb 24, 2023
9412fa5
Implement foodMassEatingCoef server config value
kubrysh Feb 24, 2023
eb6933a
Implement config changes
kubrysh Feb 24, 2023
a3cd490
Optimize planet rendering
Andriiseer Feb 26, 2023
008116e
Reduce in-game planet render resolution
kubrysh Feb 26, 2023
3bb419b
render limit
Andriiseer Feb 27, 2023
ae051cc
Improve game-food rendering size
kubrysh Feb 28, 2023
1973e29
Implement zoom out limiting
kubrysh Mar 1, 2023
06d0320
Improve game server calculations
kubrysh Mar 1, 2023
1e6ade0
Disable jelly physics
kubrysh Mar 1, 2023
fbb433f
Implement background param in planet render
kubrysh Mar 1, 2023
a27e48d
Small fix
kubrysh Mar 1, 2023
362dbda
Change max zoom out from 0.6 to 0.35
kubrysh Mar 6, 2023
63ef282
Add exponential retry delay for bot add. requests
kubrysh Mar 6, 2023
403156c
Small improvements
kubrysh Mar 6, 2023
f165b2e
Implement rendering into single WebGl context
kubrysh Mar 7, 2023
235218f
Fix optimistic updates exceeding the limits
kubrysh Mar 8, 2023
7db40f3
Remove unused import
kubrysh Mar 8, 2023
41f5fb9
Update CHANGELOG.md
kubrysh Mar 8, 2023
630c1ef
Fix CHANGELOG.md layout
kubrysh Mar 8, 2023
d1abfcb
Removed claim_all entrypoint. Fixed remove_room. Cleared unused code
stepandra Mar 10, 2023
0f0fb7e
updated & added some packages
stepandra Mar 13, 2023
4bc4274
Added oracle public key as contract argument instead of constant
stepandra Mar 13, 2023
223b9cc
Updated env and tests, some fixes
stepandra Mar 13, 2023
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
Prev Previous commit
Next Next commit
Create ContractServersContext as a hook data store
  • Loading branch information
kubrysh committed Feb 20, 2023
commit d58f267946f9164a0bc882dd4615b5276475d31c
3 changes: 3 additions & 0 deletions orbitez/context/ContextProviders.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import React from 'react';
import SelectedServerProvider from './SelectedServerProvider';
import ContractServersProvider from './ContractServersProvider';
import WalletProvider from './WalletProvider';

const ContextProviders = ({ children }) => {
return (
<WalletProvider>
<SelectedServerProvider>
<ContractServersProvider>
{children}
</ContractServersProvider>
</SelectedServerProvider>
</WalletProvider>
);
Expand Down
9 changes: 9 additions & 0 deletions orbitez/context/ContractServersContext.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { createContext, useContext } from 'react';

const ContractServersContext = createContext({});

export default ContractServersContext;

export const useContractServersContext = () => {
return useContext(ContractServersContext);
};
15 changes: 15 additions & 0 deletions orbitez/context/ContractServersProvider.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import React from 'react';
import useContractServers from '@hooks/useContractServers';
import ContractServersContext from './ContractServersContext';

const ContractServersProvider = ({ children }) => {
const { ...contractServersArgs } = useContractServers();

return (
<ContractServersContext.Provider value={{ ...contractServersArgs }}>
{children}
</ContractServersContext.Provider>
);
};

export default ContractServersProvider;