parent
ac5ace85c7
commit
622a0bc615
@ -1,38 +1 @@
|
||||
.App {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.App-logo {
|
||||
height: 40vmin;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
.App-logo {
|
||||
animation: App-logo-spin infinite 20s linear;
|
||||
}
|
||||
}
|
||||
|
||||
.App-header {
|
||||
background-color: #282c34;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: calc(10px + 2vmin);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.App-link {
|
||||
color: #61dafb;
|
||||
}
|
||||
|
||||
@keyframes App-logo-spin {
|
||||
from {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
/* Add styles here */
|
@ -1,25 +1,32 @@
|
||||
import logo from './logo.svg';
|
||||
import './App.css';
|
||||
import React from "react";
|
||||
|
||||
import { Canvas } from '@react-three/fiber'
|
||||
import { OrbitControls, Environment } from '@react-three/drei'
|
||||
|
||||
import space from './space.hdr'
|
||||
|
||||
// Import styles
|
||||
import './App.css'
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<div className="App">
|
||||
<header className="App-header">
|
||||
<img src={logo} className="App-logo" alt="logo" />
|
||||
<p>
|
||||
Edit <code>src/App.js</code> and save to reload.
|
||||
</p>
|
||||
<a
|
||||
className="App-link"
|
||||
href="https://reactjs.org"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
Learn React
|
||||
</a>
|
||||
</header>
|
||||
</div>
|
||||
<>
|
||||
<Canvas camera={{
|
||||
fov: 50,
|
||||
position: [-10, -5, -15],
|
||||
rotation: [Math.PI, 0, 0] }}>
|
||||
|
||||
<OrbitControls maxDistance={40} enableDampling />
|
||||
|
||||
<ambientLight/>
|
||||
<pointLight
|
||||
position={[-150, 300, -300]}
|
||||
intensity={0.9}
|
||||
/>
|
||||
<Environment background={true} files={space} />
|
||||
</Canvas>
|
||||
</>
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
export default App;
|
||||
export default React.memo(App);
|
||||
|
@ -0,0 +1 @@
|
||||
// Create the CubeMesh component
|
@ -0,0 +1 @@
|
||||
// Create the GameInfo component
|
@ -0,0 +1 @@
|
||||
// Create the GridBox component
|
@ -0,0 +1 @@
|
||||
// Create the GridLine component
|
@ -0,0 +1 @@
|
||||
// Create the SphereMesh component
|
@ -0,0 +1 @@
|
||||
// Create the WinnerLine component
|
After Width: | Height: | Size: 634 KiB |
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue