![]() |
Browser version of Tilengine - Printable Version +- Tilengine - The 2D retro graphics engine forum (http://tilengine.org/forum) +-- Forum: English forums (http://tilengine.org/forum/forumdisplay.php?fid=3) +--- Forum: Support (http://tilengine.org/forum/forumdisplay.php?fid=7) +--- Thread: Browser version of Tilengine (/showthread.php?tid=2284) Pages:
1
2
|
RE: Browser version of Tilengine - System64 - 01-16-2023 (01-16-2023, 03:59 AM)megamarc Wrote: Hi! Hi! Sounds like a pretty nice idea! Sadly, I'm not the best video producer on the world (but I know how to useĀ video editors). But I can try making more samples. I also can show abstraction such as text mode and drawing primitives on a bitmap. I made some abstractions for that with Nim About Nim, it can also compile to Emscripten, so I might test with Nim too! Also, can an Emscripten compiled project run on Linux and Mac? Edit : I tried with the links you sent on a Linux computer, it works! It even works on... Android?! RE: Browser version of Tilengine - megamarc - 01-19-2023 Hi! Regarding trailers, I used video editors in the distant past (Mediachance Edit Studio 5). I know how to work with video layers, text/effect layers, transitions... However I don't know how to script a cool trailer, how to make it flowing and engaging. I also don't know about modern video editors, I guess the one I used is heavily outdated. I don't understand your question about emscripten compiled project running on Linux, or Mac or Android... Once compiled, emscripten code runs inside the virtual machine hosted on a web browser, it's platform independent. So if your question is if it will run inside a web browser: yes, it will as long as it supports webassembly. Both Firefox and Chrome on Android support webassembly, so you can open the links I posted here with the online samples, and they will run :-) RE: Browser version of Tilengine - System64 - 11-13-2023 Hi! I try to add Emscripten support for the latest version of Tilengine. However, it runs waaaaaay too fast, even with VSync enabled, and I have a division by zero crash when I use the no vsync flag. Is that normal? Here is the code I try to modify : https://github.com/system64MC/Tilengine/blob/master/src/Window.c RE: Browser version of Tilengine - megamarc - 12-03-2023 Hi! Sorry for the long delay. In my development branch I use VSYNC for window creation and get correct behavior in both Firefox and Edge. I haven' tried no vsync, as the variable monitor rate feature was added in main branch and I haven't yet merged with html5 branch. You can check my samples running in-browser here: https://www.tilengine.org/emcc/platformer.html https://www.tilengine.org/emcc/mode7.html https://www.tilengine.org/emcc/barrel.html https://www.tilengine.org/emcc/colorcycle.html https://www.tilengine.org/emcc/shadow.html RE: Browser version of Tilengine - System64 - 12-04-2023 (12-03-2023, 06:26 PM)megamarc Wrote: Hi! Hi, I think this is also the correct behavior with me when vsync is enabled. However, it still runs faster than you because of my 144Hz screen, same problem before the setTargetFPS() update. I also try to bring Emscripten version for the latest version of Tilengine, but I think the code is slightly different compared to the old version. |