{"id":29123608,"url":"https://github.com/graffiti75/simcity","last_synced_at":"2026-04-13T17:33:00.237Z","repository":{"id":292582309,"uuid":"981323708","full_name":"graffiti75/SimCity","owner":"graffiti75","description":"A 3D model of Sim City game created using Three JS","archived":false,"fork":false,"pushed_at":"2025-06-03T00:44:45.000Z","size":607,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-29T19:08:51.829Z","etag":null,"topics":["3d","3d-graphics","node","simcity","three-js","threejs","visual-studio","vscode"],"latest_commit_sha":null,"homepage":"https://graffiti75.github.io/SimCity/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/graffiti75.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-10T21:01:34.000Z","updated_at":"2025-06-03T00:44:26.000Z","dependencies_parsed_at":"2025-05-10T22:21:01.601Z","dependency_job_id":"0ac846b3-3dde-48a1-b237-8c9bbcb78fbd","html_url":"https://github.com/graffiti75/SimCity","commit_stats":null,"previous_names":["graffiti75/simcity"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/graffiti75/SimCity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graffiti75%2FSimCity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graffiti75%2FSimCity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graffiti75%2FSimCity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graffiti75%2FSimCity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/graffiti75","download_url":"https://codeload.github.com/graffiti75/SimCity/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graffiti75%2FSimCity/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31762553,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["3d","3d-graphics","node","simcity","three-js","threejs","visual-studio","vscode"],"created_at":"2025-06-29T19:08:51.122Z","updated_at":"2026-04-13T17:33:00.211Z","avatar_url":"https://github.com/graffiti75.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Create a Three.js VITE project\n\n```\nnpm init -y\nnpm install three\nnpm install --save-dev gh-pages vite @types/three http-server\n```\n\n# Create `package.json`\n\n```\n{\n  \"name\": \"homeworld\",\n  \"version\": \"1.0.0\",\n  \"type\": \"module\",\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"test\": \"echo \\\"Error: no test specified\\\" \u0026\u0026 exit 1\",\n    \"dev\": \"vite\",\n    \"start\": \"vite\",\n    \"build\": \"vite build\",\n    \"predeploy\": \"npm run build\",\n    \"deploy\": \"gh-pages -d dist -m '\u003c add commit message \u003e'\"\n  },\n  \"keywords\": [],\n  \"author\": \"\",\n  \"license\": \"ISC\",\n  \"description\": \"\",\n  \"dependencies\": {\n    \"three\": \"^0.176.0\"\n  },\n  \"devDependencies\": {\n    \"@types/three\": \"^0.176.0\",\n    \"gh-pages\": \"^6.3.0\",\n    \"http-server\": \"^14.1.1\",\n    \"vite\": \"^6.3.5\"\n  }\n}\n```\n\n# Create `index.js`\n\n```\nimport * as THREE from \"three\";\nimport { OrbitControls } from \"three/examples/jsm/controls/OrbitControls.js\";\n\n// Set up scene, camera, and renderer\nconst scene = new THREE.Scene();\nconst ambientLight = new THREE.AmbientLight(0xffffff, 0.5); // Add light\nscene.add(ambientLight);\nconst camera = new THREE.PerspectiveCamera(\n  75,\n  window.innerWidth / window.innerHeight,\n  0.1,\n  1000\n);\n\nconst renderer = new THREE.WebGLRenderer();\nrenderer.setSize(window.innerWidth, window.innerHeight);\nrenderer.setClearColor(0x33aaff);\ndocument.body.appendChild(renderer.domElement);\n\n// Add orbit controls\n// const controls = new THREE.OrbitControls(camera, renderer.domElement);\nconst controls = new OrbitControls(camera, renderer.domElement);\ncontrols.enableDamping = true;\ncontrols.dampingFactor = 0.05;\n\n// Create grid for X-axis (XZ plane)\nconst gridXZ = new THREE.GridHelper(20, 20, 0x00ff00, 0x444444);\ngridXZ.position.y = 0;\nscene.add(gridXZ);\n\n// Create grid for Y-axis (YZ plane)\nconst gridYZ = new THREE.GridHelper(20, 20, 0xff0000, 0x444444);\ngridYZ.rotation.z = Math.PI / 2;\ngridYZ.position.x = 0;\nscene.add(gridYZ);\n\n// Add coordinate axes\nconst axesHelper = new THREE.AxesHelper(5);\nscene.add(axesHelper);\n\n// Position camera\ncamera.position.set(10, 10, 10);\ncamera.lookAt(0, 0, 0);\n\n// Handle window resize\nwindow.addEventListener(\"resize\", () =\u003e {\n  camera.aspect = window.innerWidth / window.innerHeight;\n  camera.updateProjectionMatrix();\n  renderer.setSize(window.innerWidth, window.innerHeight);\n});\n\n// Animation loop\nfunction animate() {\n  requestAnimationFrame(animate);\n  controls.update();\n  renderer.render(scene, camera);\n}\nanimate();\n```\n\n# Create `index.html`\n\n```\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en\"\u003e\n\u003chead\u003e\n    \u003cmeta charset=\"UTF-8\"\u003e\n    \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"\u003e\n    \u003ctitle\u003e3D Grid Interface\u003c/title\u003e\n    \u003cstyle\u003e\n        body { margin: 0; overflow: hidden; }\n        canvas { display: block; }\n    \u003c/style\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n    \u003c!-- \u003cscript src=\"https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js\"\u003e\u003c/script\u003e --\u003e\n    \u003c!-- \u003cscript src=\"https://cdn.jsdelivr.net/npm/three@0.128.0/examples/js/controls/OrbitControls.js\"\u003e\u003c/script\u003e --\u003e\n    \u003c!-- \u003cscript src=\"index.js\"\u003e\u003c/script\u003e --\u003e\n  \u003cscript type=\"module\" src=\"index.js\"\u003e\u003c/script\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\n# Create `vite.config.js`\n\n```\nexport default {\n  base: \"/ThreeWorld/\",\n  server: {\n    open: true,\n  },\n};\n```\n\n# Create `.gitignore`\n\n```\nnode_modules/\ndist/\n.vite/\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraffiti75%2Fsimcity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgraffiti75%2Fsimcity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraffiti75%2Fsimcity/lists"}