alucard87pl / reactgate Goto Github PK
View Code? Open in Web Editor NEWReact-based Stargate simulation toy
License: MIT License
React-based Stargate simulation toy
License: MIT License
So I found this: https://github.com/gitname/react-gh-pages
In there it's possible to have the project hosted on github.io Pages, but it does that in a fresh repo.
Need to figure out how to link the EXISTING codebase so that it's shown on alucard87pl.github.io/reactgate without renaming/recreating the current repo.
a simple button logic fix, will be done shortly
It is currently possible to dial all six symbol combinations (exluding using the Earth glyph, as that is the PoO) which gives 38 * 37 * 36 * 35 * 34 * 33 = 1987690320
, nearly TWO BILLION. If manual Gate positioning and glyph locking was a thing, in the current version of the sim, it would give 38^7=114415582592
more than fifty-five times more.
Properly implemented dialing modes:
does not need to be updated with everything else it's static after mounting
how to do?
key={label + "-g" + value.indexOf(e)} //need to figure how this can be non-duplicating
key has to be unique, otherwise:
Warning: Encountered two children with the same key, `397d5cd90d26-g4`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted โ the behavior is unsupported and could change in a future version.
in div (at AddressList.js:44)
in div (at AddressList.js:40)
in button (created by Button)
in Button (at AddressList.js:39)
in div (at AddressList.js:36)
in div (created by Alert)
in Transition (created by Fade)
in Fade (created by Alert)
in Alert (at AddressList.js:31)
in AddressList (at MainContainer.js:171)
in div (created by Col)
in Col (at MainContainer.js:170)
in div (created by Row)
in Row (created by Bootstrap(Row))
in Bootstrap(Row) (at MainContainer.js:169)
in div (created by Container)
in Container (at MainContainer.js:156)
in MainContainer (at App.js:5)
in App (at src/index.js:7)
Need to figure out how to create a unique numbering scheme for each glyph image in each address, something along the lines of label-gX
where X
is consecutive from 1 to 6
Currently all the glyphs are contained in /public/vfx
and referenced in code via
import glyphs from './glyphs';
glyphs.js
is a file storing an array of JSON
objects:
export const glyphs = [
{ id: 1, src: "./vfx/glyphs/glyph1.png", description: "Earth" },
{ id: 2, src: "./vfx/glyphs/glyph2.png", description: "Crater" },
...
{ id: 39, src: "./vfx/glyphs/glyph39.png", description: "Leo" },
];
export default glyphs;
For reasons beyond my comprehension, these files can't be held in /src
because then import
ing doesn't work quite as well.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.