Compiling PGE For Web Browsers!

  Рет қаралды 43,866

javidx9

javidx9

Күн бұрын

Пікірлер: 127
@javidx9
@javidx9 3 жыл бұрын
Firstly, yes there is occasional audio clipping. As you can probably tell I have a wretched sore throat and finding the right balance was difficult as my voice is disappearing XD. Secondly - how amazing is this??? Massive thanks again to the guys on Discord who put the effort into making this happen. I'm not a web person at all, and without them this would have been beyond me.
@OlavDanielGrosser
@OlavDanielGrosser 3 жыл бұрын
Get well soon. 👍
@javidx9
@javidx9 3 жыл бұрын
Hey cheers buddy!
@snesmaniac228
@snesmaniac228 3 жыл бұрын
Does this works with Java applications?
@colonelcornelius7420
@colonelcornelius7420 3 жыл бұрын
hey javidx9! i've been having the same issue for a while now. i often follow your tutorials, but when i actually run the program, it always crashes. if this is important, i use notepad++ also, i was wondering what you use for your code.
@javidx9
@javidx9 3 жыл бұрын
Engaging remote screen reading powers.... Ooof blocked. Since I can't see your screen to assess the errors you see, you'll just have to describe them here. 😊
@Whateverworksism
@Whateverworksism 3 жыл бұрын
This is amazing! What a wealth of talent and passion the community has shown over the years.
@LundBrandon
@LundBrandon 3 жыл бұрын
My Data Structures class used pixel game engine for a lot of our assignments. Planning on using this to display my projects for interviews and such! Thank you community!
@MarsCorporations
@MarsCorporations 3 жыл бұрын
This is the best thing in 2021 so far. I programmed a lot of small (sometimes even "big" (well... big for a single person to program)) games (mostly towerdefense) and everything is always for people that have Windows and are willing to start some random .exe. I looked into so many "browser game dev things" over the years, I even started to try out JS or Processing (may god have mercy when I die), but I always missed my good old C++ (it is just better...). And now it is here. This changed everything. Big thanks. You gave me what I was looking for, and I didnt even ask.
@justgame5508
@justgame5508 3 жыл бұрын
I was in a similar spot, I wanted something I could use the graphics for a network deployment simulation and optimisation tool I was building and as someone who’s codes mainly in C# there wasn’t a lot, I tried processing and after about a day of using it I decided it was less painful to switch back to C# and just teach myself OpenGL and use C# with the OpenTK wrapper, that’s how bad JavaScript is, learning OpenGL and implementing my own graphics engine was less painful😂
@backhoff
@backhoff 3 жыл бұрын
Amazing stuff. Congrats to everyone involved. It is indeed a game changer :D
@SBH618
@SBH618 3 жыл бұрын
Your stuff has been incredibly helpful as a game dev. Thanks for this!
@StuBonham
@StuBonham 3 жыл бұрын
Great stuff! Superb community effort!
@dondubeau2874
@dondubeau2874 3 жыл бұрын
I was just trying to figure out how to get emscripten working with pge a few weeks ago. Thanks for this!
@DaveChurchill
@DaveChurchill 3 жыл бұрын
Great video! I love using emscripten for my projects. However I think you made a mistake with the aspect ratio when you said "currently it's a 4 by 3 ratio" According to my mental math, neither 256x240 nor 512x480 are 4:3 aspect ratios (as you mentioned in the video), in fact they are 16:15 aspect ratios. 640x480 or 320x240 would have been 4:3 ratios. Or am I going bonkers? I know that this takes little to nothing away from the video, it just may throw a little confusion to some viewers
@plueschAMAZONE
@plueschAMAZONE 3 жыл бұрын
Again a real cool work. No programmingchannel makes me want to lern C++ so hard, like your does.
@SourceCodeDeleted
@SourceCodeDeleted 3 жыл бұрын
This is indeed game changing. It is funny how the pixel game engine started as a project and has grown so much.
@MCChubbyUnicorn
@MCChubbyUnicorn 3 жыл бұрын
Glad to see that it is in fact possible to make C++ work in browsers. A few years back, I tried, and couldn't even get even a cout to work. It ignored the fact I had the header for it or something. Bow I can try again
@SparxableTunes
@SparxableTunes 3 жыл бұрын
Thank you so much! You've unlocked a new mysterious portal for us all
@PANDY_________________________
@PANDY_________________________ 3 жыл бұрын
Hi @javidx9, I don't know if I should ask this here, but here it goes: Regarding the raycasting engine and the 3d software rasterizer that you have presented in the video series, what project do you think has more possibilities of scaling in such a way that you can add more features to achieve the most immersive experience and maintain decent performance? I must clarify that I would use that scenario as an experimentation for some hobby development and see how much it can be improved. I see the raycasting technique somewhat limited to experimenting with added stuff but I may be wrong. Thanks
@javidx9
@javidx9 3 жыл бұрын
Definitely the 3d rasterizer gives you the more options going forward, it's effectively limitless what you can implement.
@PANDY_________________________
@PANDY_________________________ 3 жыл бұрын
Thank you very much for the advice, it is what I was looking for, your channel is awesome !!
@htrayford122
@htrayford122 3 жыл бұрын
So exciting! Congrats to those who contributed.
@agemans_stuff
@agemans_stuff 3 жыл бұрын
By looking at your code it seems you have your abbreviated pi wrong (3.1459). It should be more like 3.14159...
@wChris_
@wChris_ 3 жыл бұрын
you should make a CMake project for Emscripten, so it can be compiled and run basically anywhere (Visual Studio does support CMake projects!)
@javidx9
@javidx9 3 жыл бұрын
Go for it! Im not a CMake person :D
@jaysistar2711
@jaysistar2711 3 жыл бұрын
Yeah, I thought premake was going to take off. It turns out that CMake took off instead. Premake was renamed to Genie, but I think SCONS got more popular than Genie, especially with Godot using SCONS. I almost returned to my `make` only and "C über alles!" days with no C++, but I found Rust, Cargo, and the `cc` crate. Now, I only use C and C++ in libraries, and that's only when I need to do so. All of my new projects are in Rust, where Cargo is known to be the dominate build system, and buildtime code, if nessisary, are written in Rust, not some scripting language, and not the (CMake) worse option of a stringly typed one-off DSL.
@javidx9
@javidx9 3 жыл бұрын
Welcome to modern day development.......
@clydx1239
@clydx1239 3 жыл бұрын
@@javidx9 xD.
@billybest5276
@billybest5276 3 жыл бұрын
Super cool! This will make sharing projects easier and even more impressive imo
@vatemsura
@vatemsura 3 жыл бұрын
You're a good man. People in Russia watch you and love you.
@Volian0
@Volian0 3 жыл бұрын
thank you Javid, very cool
@Enriath
@Enriath 3 жыл бұрын
You mention you don't like Git, and now I'm curious why?
@BenMakesGames
@BenMakesGames 3 жыл бұрын
that stood out to me as well!
@GorkSIG
@GorkSIG 3 жыл бұрын
Sadly if you want to use git, you need to learn it first. Ideal tool would not burden programmer with any learning, it would just work, leaving programmer with more time to spend it on actual work.
@Derrickasaur
@Derrickasaur 3 жыл бұрын
@@GorkSIG you can learn the basics in an afternoon so if you're a programmer and refuse to learn Git you might be just lazy ( and anti-collaborative - given there is no better technology for sharing and merging code among multiple developers in context of working together on common codebase )
@dreamyrhodes
@dreamyrhodes 3 жыл бұрын
@@kidmosey Same nowadays happens in node or Ruby, Python, PHP too... proliferation of dependencies and toolchains (all with their own dependency trees). It's a plague.
@wopmf4345FxFDxdGaa20
@wopmf4345FxFDxdGaa20 3 жыл бұрын
@@JFlatby Git is a tool that you can install anywhere. Git respositories also can be hosted anywhere. For these reasons "Git" cannot be "filled" with anything, but sure someone may be hosting git repositories that are garbage.
@walney2008
@walney2008 3 жыл бұрын
hello, for example in unity it has the functions start,update, and uses the built-in c#, how to create this? I saw your C video with lua, more how to create these built-in functions.
@my_temporary_name
@my_temporary_name 3 жыл бұрын
That's really neat, but how is the final product half a megabyte in size? I thought WebAssembly was supposed to be tiny.
@javidx9
@javidx9 3 жыл бұрын
Average webpage size is just over 2MB these days, so it is by comparison.
@stefanfrei6199
@stefanfrei6199 3 жыл бұрын
exactly what i needed, much appreciated!
@keremkalntas7137
@keremkalntas7137 3 жыл бұрын
wow, this is awesome
@Exi0n
@Exi0n 3 жыл бұрын
Love your videos!
@Mozartenhimer
@Mozartenhimer 3 жыл бұрын
This is super exciting.
@Digidan5
@Digidan5 3 жыл бұрын
6:03 ahh well thats me buggered then XD
@taraxacum2633
@taraxacum2633 3 жыл бұрын
Wait wait wait, is the star field project a reference to the first coding challenge on the coding train? Are you trying to replace p5.js with PGE? Hell yeah!!! Diversity rocks!
@JohnSmith-es2fh
@JohnSmith-es2fh 3 жыл бұрын
hello, ive just finished with studying c++ from some guides i've found in internet and im interested in making games, and for the beginning i want to understand how to work with win api, what can you recommend as a studying material? also: im really interested in making my own engines like your ols pixel engine
@redstoneplayz09
@redstoneplayz09 3 жыл бұрын
What are you rules for naming variables? I see you use small case letters before the actual name all of the time. What does it mean? It just seems like your names are such a perfect fit and mine look horrible.
@taraxacum2633
@taraxacum2633 3 жыл бұрын
No more p5 I guess? 😂 This is super awesome!!!
@just_code
@just_code 2 жыл бұрын
Do you know how to fix Uncaught RuntimeError: unreachable executed ?
@Furkan-ll4gy
@Furkan-ll4gy 3 жыл бұрын
After collission series can you make addon or feature to physycs in olc engine
@carlosandresconrado461
@carlosandresconrado461 3 жыл бұрын
Wait wait wait, you can add files to an existing zip only by dropping them on the zip file?
@javidx9
@javidx9 3 жыл бұрын
Why yes you can! 😂
@jesse103
@jesse103 3 жыл бұрын
yes
@Plrang
@Plrang 3 жыл бұрын
Thanks, I was just about to refresh that one
@AI-ec2qb
@AI-ec2qb 3 жыл бұрын
Rumor has it, that Javidx9 is a Pleiadian 👽
@TimothyChapman
@TimothyChapman 3 жыл бұрын
Can you make a video to extend Visual Studio to compile to a custom-designed processor?
@hermannpaschulke1583
@hermannpaschulke1583 3 жыл бұрын
What version control do you prefer?
@javidx9
@javidx9 3 жыл бұрын
version_old_aaa_2_1_new_beforebug_6_new_new_AAA
@AB-uk4pd
@AB-uk4pd 3 жыл бұрын
@@javidx9 >:D
@hermannpaschulke1583
@hermannpaschulke1583 3 жыл бұрын
@@javidx9 lol
@tropicheist6347
@tropicheist6347 3 жыл бұрын
Woah this is awesome news!
@frankbj57
@frankbj57 3 жыл бұрын
Did you add the source code for this to github? Can't seem to find it.
@javidx9
@javidx9 3 жыл бұрын
It's part of the PGE header, no extra files required (other than emscripten compiler)
@stinkytoby
@stinkytoby 3 жыл бұрын
Where can I find the tool you mention at the end?
@javidx9
@javidx9 3 жыл бұрын
In the OneLoneCoder GitHub repo
@laureven
@laureven 3 жыл бұрын
:) just another comment about how awesome this is :)
@javidx9
@javidx9 3 жыл бұрын
Thanks Marcin!
@Joysolidario
@Joysolidario 3 жыл бұрын
How do you debug it?
@ishdx9374
@ishdx9374 3 жыл бұрын
Helped me during gamejam
@poorman-trending
@poorman-trending 3 жыл бұрын
Can you make a rogue clone?
@OriginRow
@OriginRow 2 жыл бұрын
You should have featured for Unreal Engine new versions HTML5 support atleast 4.27
@coolcodingcat
@coolcodingcat 8 ай бұрын
I got emscripten to work with pure C code, but not with C++ code.
@coolcodingcat
@coolcodingcat 8 ай бұрын
Well now I see why, didnt know there was an em++ command. Was using emcc.
@rodionsabbath9722
@rodionsabbath9722 3 жыл бұрын
lol popularity comes with a price now you have js code in your header file :D
@javidx9
@javidx9 3 жыл бұрын
... indeed 😒
@Codepeats
@Codepeats 3 жыл бұрын
Amazing
@jaysistar2711
@jaysistar2711 3 жыл бұрын
I thought that it already supported wasm. I guess it just got it.
@javidx9
@javidx9 3 жыл бұрын
In truth a test version has been lurking in the shadows for about 10 months, while we got to grips with the technology. One of the major changes was the renderer requirements thus the introduction of the OGL33 renderer a couple of months ago.
@dasten123
@dasten123 3 жыл бұрын
this is cool! :D
@jechet10
@jechet10 3 жыл бұрын
Absolutely stunning. Is this the first C++ game engine to support compiling to WASM for use in the browser?
@javidx9
@javidx9 3 жыл бұрын
I highly doubt it. At the rate I develop things it's very likely the last 🤣
@doublegdog
@doublegdog 3 жыл бұрын
youtube stopped recommending your videos to me even though i am subscribed. i made sure to search an dlike this video.
@resw
@resw 3 жыл бұрын
Hi javidx9, can you also prepare a video to explain how to use visual studio for C++ development? Thanks.
@javidx9
@javidx9 3 жыл бұрын
kzbin.info/www/bejne/m4WqhIeKrbdgidU and kzbin.info/www/bejne/a2TFZqKAedpgeZY
@resw
@resw 3 жыл бұрын
@@javidx9 Thanks again. Your videos are really helpful.
@NikkiMcMistie
@NikkiMcMistie 3 жыл бұрын
Ah I heard about this. Never quite knew how it worked,
@thecakeredux
@thecakeredux 3 жыл бұрын
"Hello" indeed.
@tawandagamedevs
@tawandagamedevs 3 жыл бұрын
Im first to comment love this guy
@thalescarl1589
@thalescarl1589 3 жыл бұрын
Forget Javascript. I want PGE to run everything on web.
@WikiPeoples
@WikiPeoples 3 жыл бұрын
important question: do you drink coffee / caffeine?
@saysoy1
@saysoy1 3 жыл бұрын
look, for no reason i want to offend you... JAVA
@nacnud_
@nacnud_ 3 жыл бұрын
" not a big fan of git"..... How does that even happen?
@javidx9
@javidx9 3 жыл бұрын
I used it once. It was enough.
@nacnud_
@nacnud_ 3 жыл бұрын
@@javidx9 fascinating. What's your SCM then?
@GameBacardi
@GameBacardi 3 жыл бұрын
Neat
@spiikesan
@spiikesan 3 жыл бұрын
I like the "2 views - 40 likes". Sure i'm one of those likes, as it's the first thing I do. Thank you.
@BudgiePanic
@BudgiePanic 3 жыл бұрын
nice
@dreamyrhodes
@dreamyrhodes 3 жыл бұрын
Microsoft has in 35 years not managed to create a proper comandline window (no, PowerShell doesn't count as it is an own environment).
@walney2008
@walney2008 3 жыл бұрын
please speak create compiler, lexer,parser , use portugol exemple, generate codigo in C, create exe, please
@stephenkamenar
@stephenkamenar 3 жыл бұрын
build tools make me sad :( this is awesome though
@quickscope3643
@quickscope3643 3 жыл бұрын
dope video
@avocadotomato1789
@avocadotomato1789 3 жыл бұрын
do you guys have a problem with transgender people being on your discord server or something...? emmy#9332 is my discord and ive never broken one rule on your server but for some reason ive been banned. sorry to say but im left to assume you banned me in a discriminatory manner as ive done nothing wrong and you can check my post history there to see the proof. what's up with this? are you not a fan of me being transgender...? this is pretty messed up im sick and tired of being discriminated against online and i considered your server a safe space for me but i guess not considering you or some rogue admin hates transgenders and banned me. i see no other reason they would have done it... my discord made it obvious that i am... so why... im assuming i wont even get a reply from you if you know that it happened because you are gonna want to cover this up and throw it under the bus... messed up dude. i supported you and your channel for a long time and this is what I get for wanting to be apart of your community?
@javidx9
@javidx9 3 жыл бұрын
This is now the second place where you are publicly accusing me of discrimination without any evidence. And I will repeat what others have told you. You have not been banned by any moderator or myself from the OLC discord. Discord keeps records of banned accounts that we can access, on which you are not listed. What happens occasionally (and has to a couple of members recently) is you share an IP address range or VPN with someone that has been banned. There is nothing we can do about that, and you will have to take that up with Discord directly.
@avocadotomato1789
@avocadotomato1789 3 жыл бұрын
@@javidx9 I do not share an IP address and I was not on a VPN... Your server is the only server that disappeared from my list of servers and joining back does not work. You don't see how that would be suspicious at all?
@javidx9
@javidx9 3 жыл бұрын
So your approach is to first accuse me of discrimination across various public platforms instead of using those platforms to reach out and enquire about what is likely a technical fault? Regardless, you are not on our banned list, but because you have technically "left" the server, I can't interact with your profile in any way to resolve the issue. Your posts are still there, and I agree you have broken no rules. And as you've probably read on one of the other platforms you've accused me on, this is not isolated to just you.
@JkyLi
@JkyLi 3 жыл бұрын
Sadly, javascrip finally polluted my favourite coding channel. I thought here was the last heaven of purity. I sincerely hope that the browsers would no longer depends on javascript to run wasm.
@Derrickasaur
@Derrickasaur 3 жыл бұрын
what difference does it make? JavaScript is the native programming language for the web; that will never change. WASM is simply an assembly-like brutalized version of it so that it can churn out max performance and be easy compiliation target from other langs. Saying you want browsers to drop JS support is like saying you want Windows to drop C. It makes no sense since it underpins the entire platform and if you don't want to use it you don't have to (ie- by using Emscriptten).
@tomtravis858
@tomtravis858 3 жыл бұрын
Windows is cringe
@javidx9
@javidx9 3 жыл бұрын
Fanboism is cringe too 😂
@JG-nm9zk
@JG-nm9zk 3 жыл бұрын
Says the Pixel Game Engine fanboi 🙃
@justgame5508
@justgame5508 3 жыл бұрын
Imagine being that childish you genuinely believe an operating system is “cringe”😂
Super Fast Ray Casting in Tiled Worlds using DDA
30:03
javidx9
Рет қаралды 190 М.
olc::AllSorts - Text/Commands/Sounds/Jams
21:55
javidx9
Рет қаралды 32 М.
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
Compile C/C++ raylib game Into WebAssembly
16:07
Programming With Nick
Рет қаралды 20 М.
Automating Sequences via Lua Coroutines in C++
45:23
javidx9
Рет қаралды 59 М.
Networking in C++
32:50
The Cherno
Рет қаралды 263 М.
Dithering with Floyd-Steinberg in C++
26:53
javidx9
Рет қаралды 55 М.
olcPixelGameEngine
20:17
javidx9
Рет қаралды 164 М.
Procedural Generation: Programming The Universe
41:57
javidx9
Рет қаралды 207 М.
Forbidden C++
33:07
javidx9
Рет қаралды 1 МЛН