Stargaze (ALMOST 3000 LINES!!!) (100 cycles project)
The month long project is here!
Almost three thousand lines of code, Stargaze is finally out! I know it's a little late for a 100 cycles project, but eh. I worked so hard, it's nicely made, compatible with different devices, and download as an app (it runs offline, and you can even control what you cache to some extent)! I ran this through google lighthouse and it got a good rating (50 for performance but that's because it takes up a bit of CPU power, 90ish for performance and best practices, and PWA certified)!
Note that this doesn't use canvas or any frameworks. It's solo made and uses the html page itself to create span elements for stars. You can also draw constellations now! Big thanks to my teacher for recommending the constellation drawing. I'm planning on adding some more features, so stay tuned. Read the whole description in the README file. Also, the main files are minified. If you want to try to fork it, there are unminified files that exist but are not used when serving the content.
Possible upcoming updates for this
Please note that these may or may not happen (sadly).
- Planets with randomized planet names and descriptions
- Filters (like sepia)
- (Maybe) Point system, unlock different things
I know this may not get a lot of views, but please, if you like it, comment! If you don't, what can change?
PS: There's also a few space objects like the ISS, comets, and meteor showers. They pop up randomly so see if you can find some!
Hope ya like this! Bacon boi out!
Thanks to all the people who upvoted. I am truly grateful. While this isn't on trending, it still is pretty popular! Glad to know people appreciate hard work :)
Amazing! however I noticed the music isn't on by default, you have to turn it off then on again, also the sounds and music are a little loud.
Hey there, it looks like you are using the PHP web server which really shouldn't be used any longer, by the folks who maintain PHP.
Interesting and awesome!,
saves me from having to buy a telescope why preference PHP Web Server over NodeJS?
$something = $_GET['Something']; where in nodejs I have to write like 10 lines of code. I also started learning php first, and I think it's simpler. The only reason I use nodejs is because it has libraries and while php has some too, repl doesn't allow you to download them. That's why it's in PHP.
@RayhanADev Would you know why my site isn't secure even though it shows https in the address bar? For some reason it says certificate is valid in security section of dev tools yet there is no certificate? Maybe repl?
Edit: Oh nvm must be my cache or smthing, it is secure now. Also if u have phone you can download this and explore offline! That's why I was wondering why it wasn't secure, cuz it needs to be to download.
@RayhanADev Also, I realized this shouldn't be php since it won't load a php file offline (typically). Is there any way to fix this other than run a file called index.html and redirect from index.php? I know I can't delete index.php, so maybe I should make a new repl and use that instead?
@KobeFF I just like how I made it a PWA that works offline. I am a bit worried about the PHP file on account of it being a php file, but it caches the html, so it runs offline (i tested). Since there isn't any PHP code (the only reason I had it a PHP server is because of a feature called Stargaze To-Go where you can use stargaze in your own website), it works offline (hopefully). The hardest part was actually the space objects, as I remember it took 2-3 hours to debug them.
@KobeFF Thank you! I am hoping to go beyond repl.it and actually get some real "users" here. I remember my brother asks me to just sit in front of my computer and look at the program running (XD). I hope people can actually use this and use it as a relaxation or break from the stress of life.
Phantom forces bad business R2D(reason 2 die) unite:Classified CB:RO (counter blox:Roblox offensive:
@Taiga123m Yes, PF can be laggy, but I still like it (gives it a challenge). And no I don't know them, but I know paradox poke (and actually I was in the server with him a couple of times EEEEEE!). Also, no I don't hack (I kinda wanna on an alt to see what it's like, but I shouldn't cuz it's against the ToS and I know the frustration of having a hacker. And yes I'm in school, but I'm done with everything (science was so easy my teacher recommended I take 12th grade physics and I'm in 9th grade lol). Also, you're not dumb. You're just new. What grade are you in? If you work hard enough you can be a pro coder. I joined the coding community about a year ago and even I'm not a pro!
@Taiga123m That I showed a guy what was wrong with his code? A forum posted by someone here. I noticed he ran an xss test, so I expected it to not work, but I found out it did. And since he used session cookies, I could have easily stolen everyone's cookies. and been able to login to anyone's account. I showed him the flaw and he fixed it really fast. If you mean my site, it's phantomforcestools.ml. I made it a while ago and have been updating it for a long time now.