Plants V Turret
A downloadable Game for Windows, macOS, and Linux
This is a simple game where you go through as many waves as you can of anger-driven plants as a Turret
NOTE: This is my first Cocrea game
link for if the game doesn't work cocrea.world/@AxoDev/UntitledProject6
Published | 4 days ago |
Status | Prototype |
Platforms | Windows, macOS, Linux |
Author | VexedAxolotl2984 |
Genre | Shooter |
Tags | 2D, Short, Singleplayer, Versus |
Download
Download
Plants V Turret 8 MB
Comments
Log in with itch.io to leave a comment.
I see what you mean about it not loading on itch. The issue here, I think, is that it is attempting to bypass a cross-origin request (CORS) policy and failing because it doesn’t have the proper permissions, mainly due to a missing server.
I get these errors in my console:
The problem with JavaScript is that it requires some sort of server to connect to, which is why your game doesn’t work as a local file, but does work on Cocrea. You can bypass this restriction in your web browser, but this is not recommended. I would either redirect to an available HTTPS server, or even supply your own.
https://stackoverflow.com/questions/48362093/cors-request-blocked-in-locally-opened-html-file
You could kind of work around the issue. There are ways to get JS to function locally without going to much trouble to set up a local server or make it connect online each time you launch the app.
https://stackoverflow.com/questions/19902538/loading-local-files-with-javascript-without-a-web-server
All this said, it’s an interesting little game, but a broken download might not bode well for your overall score. Don’t let that stop you - even if you don’t win, I look forward to see what you make next! 😊