Export Your Game to the WEB in Godot 4 - Tutorial
ฝัง
- เผยแพร่เมื่อ 26 ก.ย. 2024
- Learn how to export your godot 4 game to a web browser.
Node JS: nodejs.org/en
// JOIN THE COMMUNITY DISCORD!
/ discord
// SUPPORT THE CHANNEL
/ muddywolf
// PLAY BANANA TOSS NOW!
play.google.co...
// WEB DEV CHANNEL
/ tylerpotts
Just a simplest scene with a camera and one cube is 50 mb. It doesn't fit for html5 games 😅 Three js scene will be less than 1 mb
Thank you so much I haven't fully learned GDscript yet but I'm just getting ready
To anyone uploading this to their own server but still seeing the Godot error at 1:30, you'll want to create an .htaccess file (if it doesn't already exist), and add the following:
Header add Cross-Origin-Embedder-Policy "require-corp"
Header add Cross-Origin-Opener-Policy "same-origin"
where do I put this?
little mf thx
@@taahailyas9782 any apache webserver
Bless you sir!
Not working, where is it located?
Love the little local webserver setup. 😁
It's worth stipulating that you cannot do this in Godot 4 yet if you are using C#. I'm hoping that's on the way though.
What are the alternatives to C#?
@@robertsandiford6223 gdscript
it just throws a bunch of errors at me what the hell
In Godot 4.3 it has better support for being a browser game on all kind of platforms even safari.
(Note it is in beta3 as of july 2024)
Would this allow me to modify the html files and use godot as a development platform for aframe content ive just aquired 25 blade center blades and 2 enclosure for a price only god could have sent for a project to help people and i want to deliver via aframe so as not to be vendor locked or bound by engine licenses could this export method be used to develop for aframe :)
thank you so much
This is very helpful. I've been trying to make a joke game for my collegues for a few while but I didn't wanted to host this on a server cause the project was that important. If you read this (or anyone willing to help) could you please explain how to make a file of this to boot it with that line without going through the command prompt each time. Also do you think this is feasible with flask of django (or any other python server related method)? Thanks for the great video again.
you can export it as a .exe file, the documentation is pretty helpful for the step by step
Thanks for the help
can you do a more advanced Web Export video that covers how to use the PWA (Progressive Web App) options? the purpose of a PWA is so that the players can get that "Install as App" option in web browsers that support PWA like Chromium based browsers and MS Edge. (sadly Firefox has yet to reinstate that feature since they removed in a couple years ago.... no freaking clue why they did something dumb like that.....)
basically I figured I'd ask you to make that PWA video since most other youtube tutorial makers only show how to publish a web build to itch but you clearly have the knowledge/skills needed to do the PWA route since you knew to mention NPM and NodeJS for a live server.
P.S.
I am a web dev, game dev and a software engineer. that said I've never had a reason to look into how to actually setup a PWA build for a Godot game.... hoping I can get some guidance on how to set that up given my lack of experience with that part of Godot's export settings...
how would you do it if you up load this to a host from filezilla?
I can't export project because it wants me to use a non-C# build editor to export it
how do I fix that?
Try using the normal version if you do not have any C# on your project, not the .Net version
Thanks !
You're welcome!
bri ish
hello me again how long will it be until you make the fps serise really want to make it
Thank you
Alex
I'll tell you what, Alex, I'll make the FPS next, it may take a week or so but I'll put together the first few episodes
Already made one with margin container viewport container viewports and areas and collisions and animation tree and wasd and drawknife drawsnipera zoom zoom out staba.Jump. both PS4 controllers work. Using animation player for look left lookright. A lot of animation players and action just pressed inputs.
Does the web server make this work for everyone, or does it just work for me?
just you, it is a local server
i think everywhere in your network
Hello, can you help me with something in Unity 2D? I want the character to switch between weapons from the ground. Thank you.
thank you
help
npm ERR! code ENOENT
npm ERR! syscall lstat
npm ERR! path C:\Users\Guru\AppData\Roaming
pm
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, lstat 'C:\Users\Guru\AppData\Roaming
pm'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in: C:\Users\Guru\AppData\Local
pm-cache\_logs\2024-05-19T11_24_35_595Z-debug-0.log
same here, managed to resolve it?
@@homemtesta8907 sorry, but no, i cant resolve this
How can I use webview inside godot