Compiling PGE For Web Browsers!

preview_player
Показать описание
Now you can take your olc::PixelGameEngine programs, and run them in the browser. Great for jams, great for distribution, even works with mobiles! A huge effort from the OLC community putting this together, so a huge thanks from me to them! Using Emscripten to convert C++ code into Web Assembly (WASM) it is now trivial to transpile your applications to work with performance in browsers. An awesome convergence of technologies.

Yes - I'm aware of occasional audio clipping in this video. I have a wretched sore throat and struggled to find a good balance, so that's just how it is.

Рекомендации по теме
Комментарии
Автор

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.

javidx
Автор

This is amazing! What a wealth of talent and passion the community has shown over the years.

Whateverworksism
Автор

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!

LundBrandon
Автор

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. <3

MarsCorporations
Автор

Amazing stuff. Congrats to everyone involved. It is indeed a game changer :D

backhoff
Автор

I was just trying to figure out how to get emscripten working with pge a few weeks ago. Thanks for this!

dondubeau
Автор

Your stuff has been incredibly helpful as a game dev. Thanks for this!

SBH
Автор

Again a real cool work. No programmingchannel makes me want to lern C++ so hard, like your does.

plueschAMAZONE
Автор

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

MCChubbyUnicorn
Автор

This is indeed game changing.

It is funny how the pixel game engine started as a project and has grown so much.

SourceCodeDeleted
Автор

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

DaveChurchill
Автор

Thank you so much! You've unlocked a new mysterious portal for us all

SparxableTunes
Автор

Super cool! This will make sharing projects easier and even more impressive imo

billybest
Автор

You're a good man. People in Russia watch you and love you.

vatemsura
Автор

So exciting! Congrats to those who contributed.

htrayford
Автор

you should make a CMake project for Emscripten, so it can be compiled and run basically anywhere
(Visual Studio does support CMake projects!)

wChris_
Автор

No more p5 I guess? 😂

This is super awesome!!!

taraxacum
Автор

You mention you don't like Git, and now I'm curious why?

Enriath
Автор

By looking at your code it seems you have your abbreviated pi wrong (3.1459). It should be more like 3.14159...

agemans_stuff
Автор

6:03 ahh well thats me buggered then XD

Digidan