Skip to content

Commit

Permalink
πŸ’žπŸ˜΅β€πŸ’« ↝ [SSP-40]: PH Gen 1 working in-test
Browse files Browse the repository at this point in the history
  • Loading branch information
Gizmotronn committed Dec 23, 2024
1 parent b6a322c commit 7cca998
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 17 deletions.
2 changes: 2 additions & 0 deletions app/tests/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import React, { useState } from "react";
import StarnetLayout from "@/components/Layout/Starnet";
import DailyMinorPlanetMissions from "@/components/Structures/Missions/Astronomers/DailyMinorPlanet/DailyMinorPlanet";
import TotalPoints from "@/components/Structures/Missions/Stardust/Total";
import PlanetGenerator from "@/components/Data/Generator/Astronomers/PlanetHunters/PlanetGenerator";
// import { TopographicMap } from "@/components/topographic-map";

export default function TestPage() {
Expand All @@ -12,6 +13,7 @@ export default function TestPage() {
<>
<DailyMinorPlanetMissions />
<TotalPoints />
<PlanetGenerator />
{/* <Greenhouse /> */}
{/* <MiningComponent /> */}
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Slider } from "@/components/ui/slider"
import { Label } from "@/components/ui/label"
import { Button } from "@/components/ui/button"
import { Card, CardContent } from "@/components/ui/card"
import type { PlanetStats } from "../utils/planet-physics"
import type { PlanetStats } from "@/utils/planet-physics"

interface PlanetControlsProps {
stats: PlanetStats
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useState } from 'react'
import { Button } from "@/components/ui/button"
import { Textarea } from "@/components/ui/textarea"
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"
import type { PlanetStats } from '../utils/planet-physics'
import type { PlanetStats } from '@/utils/planet-physics'

interface PlanetImportExportProps {
stats: PlanetStats
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Sun, Thermometer, Droplets } from 'lucide-react'
import { Planet } from '../types/greenhouse'
import { Planet } from '@/types/greenhouse'

interface PlanetInfoProps {
planet: Planet;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,26 +1,21 @@
'use client'

import { Canvas, useThree } from '@react-three/fiber'
import { Canvas } from '@react-three/fiber'
import { OrbitControls, Stars } from '@react-three/drei'
import { PlanetMesh } from './planet-mesh'
import type { PlanetStats } from '../utils/planet-physics'
import type { PlanetStats } from '@/utils/planet-physics'

interface PlanetSceneProps {
stats: PlanetStats
}

function Scene({ stats }: { stats: PlanetStats }) {
const { camera } = useThree()
return <PlanetMesh stats={stats} camera={camera} />
}
};

export function PlanetScene({ stats }: PlanetSceneProps) {
return (
<div className="w-full h-[500px] bg-black rounded-lg overflow-hidden">
<Canvas camera={{ position: [0, 0, 8], fov: 45 }}>
<ambientLight intensity={0.5} />
<pointLight position={[10, 10, 10]} intensity={1} />
<Scene stats={stats} />
<PlanetMesh stats={stats} />
<Stars radius={300} depth={50} count={5000} factor={4} />
<OrbitControls
enableZoom={false}
Expand All @@ -30,6 +25,5 @@ export function PlanetScene({ stats }: PlanetSceneProps) {
/>
</Canvas>
</div>
)
}

);
};

This file was deleted.

0 comments on commit 7cca998

Please sign in to comment.