Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Browser version of Tilengine
#11
(01-16-2023, 03:59 AM)megamarc Wrote: Hi!

This is the idea :-) I'd like to put some samples online so the user can interact with them. I have to create different html templates, one for each sample, to explain the purpose of the sample and the key bindings. I'd also like to have a single youtube video, a "trailer" interleaving captured footage of samples and in development games using it, with text highlighting the key features. But I don't have experience creating trailers, I'm software engineer not a video producer  Undecided

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?!
Reply
#12
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 :-)
Reply
#13
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/...c/Window.c
Reply
#14
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
Reply
#15
(12-03-2023, 06:26 PM)megamarc Wrote: 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

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


Forum Jump:


Users browsing this thread: 4 Guest(s)