Mopolauta

Elasto Mania board
It is currently 23 Jun 2017, 06:16

All times are UTC [ DST ]




Post new topic Reply to topic  [ 35 posts ] 
Author Message
PostPosted: 24 Jul 2016, 19:35 
Offline
Kuski

Joined: 15 Jun 2007, 13:17
Posts: 445
Location: Finland
It took some effort, but it's finally done!

elma2.html

It has some, but not many, differences/shortcomings compared to the desktop version:

* Ingame fullscreen options have no effect - you have to click the external "Fullscreen" button at the top-right corner of the page. And even that doesn't work perfectly - you have to click it, press esc and click it again. There seems to be some bug in Emscripten's GLFW library that makes it go into infinite recursion when the canvas size is changed (which luckily does not make it crash totally).
* Mouse wheel seems to be inverted. Maybe a bug in Emscripten's GLFW as well.
* Clicking Exit does not do anything - just close the browser tab etc.
* The game window cannot be resized (other than by going to fullscreen).
* If your screen is very small, you may get a vertical scrollbar because the page elements (header + canvas) don't fit in the page. In that case, playing with arrow keys becomes a bit annoying because up/down arrows will also move the scroll position. You can probably remove the header with browser dev tools to get more space or press F11 to get rid of the browser menus.
* Any customized settings are lost if you close the tab.

I think most/all of these problems are fixable.

I've tested it successfully on Firefox (47.0.1) and Chrome (52.0.2743.82). Both work, but playing on Chrome might be slightly slower, not sure.

It currently does not work on IE or Edge because it uses an extra WebGL feature (vertex array objects) which is not available on those browsers.

I didn't test other browsers. But I'm sure someone else can now - so go and test! :)

Btw, you can also run it locally. Download this zip and simply open elma2.html with Firefox. Chrome requires more - you need to launch a local HTTP server to get it working. For example, type "python -m http.server" in command line in the directory where the 4 files are and go to localhost:8000/elma2.html.


Last edited by Smibu on 29 Aug 2016, 22:27, edited 1 time in total.

Top
 Profile  
 
PostPosted: 24 Jul 2016, 19:46 
Offline
Kuski

Joined: 19 Aug 2002, 16:54
Posts: 542
Location: denmark
Amazing!

_________________
Image ^_^


Top
 Profile  
 
PostPosted: 25 Jul 2016, 02:01 
Offline
Kuski
User avatar

Joined: 5 Feb 2010, 00:25
Posts: 2723
Location: expensive land of dads
This could be pretty big in terms of new players. No need to go through that installation process just to try an old game you vaguely remember playing 16 years ago. It's not actually difficult but that step probably deters a lot of potential players. Now they can try it in seconds. Nice job Smibu =)

_________________
then again i don't know anything


Top
 Profile  
 
PostPosted: 25 Jul 2016, 06:53 
Offline
Kuski
User avatar

Joined: 21 Feb 2016, 17:59
Posts: 269
very nice!

_________________
Image


Top
 Profile  
 
PostPosted: 25 Jul 2016, 07:12 
Offline
39mins club
User avatar

Joined: 9 May 2003, 13:30
Posts: 4431
Location: Valmiera, Latvia
nice af!

_________________
39:37,91


Top
 Profile  
 
PostPosted: 25 Jul 2016, 08:20 
Offline
36mins club
User avatar

Joined: 4 Jul 2004, 12:10
Posts: 5150
Lousku wrote:
This could be pretty big in terms of new players. No need to go through that installation process just to try an old game you vaguely remember playing 16 years ago. It's not actually difficult but that step probably deters a lot of potential players. Now they can try it in seconds. Nice job Smibu =)

This. And it's as easy for Linux and Mac users, as it is for Windows users.

_________________
TT: 36:59:53 || Avg TT: 38:09:65


Top
 Profile  
 
PostPosted: 25 Jul 2016, 12:52 
Offline
38mins club
User avatar

Joined: 2 May 2005, 14:20
Posts: 895
Location: Hungary
I think it got vsync on or dunno, but keys have too slow reaction time.

_________________
Team SPEED

Image

Q: Which number Bjenn plays on roulette?
A: 29.


Top
 Profile  
 
PostPosted: 25 Jul 2016, 13:55 
Offline
35mins club
User avatar

Joined: 25 Apr 2007, 14:23
Posts: 2225
Location: Östersund, Sweden
Labs wrote:
I think it got vsync on or dunno, but keys have too slow reaction time.

That's because it's webbased, it's not very efficient I guess, it had a bit slow reaction time for me as well in Chrome, haven't tried Firefox.

Very very cool that you managed this Smibu! GAA Contribution 2016!

_________________
Image | Team EF | YouTube
<kazan> real men fucks country
Image


Top
 Profile  
 
PostPosted: 25 Jul 2016, 14:10 
Offline
Kuski
User avatar

Joined: 14 Apr 2008, 17:58
Posts: 1458
Location: jkl
Said this in IRC but can say here too; I have very good high fps touch in it, so I don't think your problem is because it's web based.

_________________
Team MiE - MiE Cup 1
Prestigious member of 14.6x Tutor14 club


Top
 Profile  
 
PostPosted: 25 Jul 2016, 17:59 
Offline
38mins club
User avatar

Joined: 2 May 2005, 14:20
Posts: 895
Location: Hungary
Not that bad tho, is there a way to change fps?

Game shows i got 59fps is this value norm?

_________________
Team SPEED

Image

Q: Which number Bjenn plays on roulette?
A: 29.


Top
 Profile  
 
PostPosted: 26 Jul 2016, 13:47 
Offline
Kuski

Joined: 9 Jan 2013, 19:39
Posts: 17
Amazing


Top
 Profile  
 
PostPosted: 26 Jul 2016, 17:04 
Offline
Kuski

Joined: 15 Jun 2007, 13:17
Posts: 445
Location: Finland
Labs: I have about 60 fps too. I haven't tried yet if it's possible to adjust it in browser.

But you can change the physics FPS from options of course. Default is 500.

I heard it also works on Opera (Chris tested). Anyone tried with iPad or similar?


Top
 Profile  
 
PostPosted: 26 Jul 2016, 21:49 
Offline
Kuski
User avatar

Joined: 7 Jun 2007, 20:35
Posts: 959
Location: Sandnes, Norway
This is fun.

_________________
Image


Top
 Profile  
 
PostPosted: 27 Jul 2016, 10:40 
Offline
39mins club
User avatar

Joined: 23 Nov 2004, 23:05
Posts: 4020
Location: Tórshavn, Faroe Islands
Wow! How awesome is this :D
I tested on Safari Version 9.1 (11601.5.17.1)
The game works, but fullscreen button in that emscripten tool does not work. And I cannot change player keys so it is difficult to play the game since I have global hotkeys on Mac that use ctrl+arrows to change desktops.

FPS permanently displays as 59-60 fps after each run, but in-game I cannot get vsync bug so the FPS must be higher. I tried with 500 and 999 fps in-game.

Amazing work! :beer:

_________________
Thorze wrote:
I just wanted to make a cool topic like Juish have cool topics..


Top
 Profile  
 
PostPosted: 27 Jul 2016, 11:32 
Offline
Kuski
User avatar

Joined: 23 May 2002, 13:59
Posts: 6282
Location: In a northern danish city beating YOUR record.
Browsers tend to run at 60fps, so I doubt you can get it higher.

I tested in android chrome, it runs, I can navigate menus, but can't select a level because double click is zooming.

_________________
Kopasite ^ 39 level packs and 1193 levels for your höyling pleasure
LaMe world of Kopa ^ Team LaMe
Elma Online ^ Moposite Records ^ Upload


Top
 Profile  
 
PostPosted: 27 Jul 2016, 16:10 
Offline
Kuski
User avatar

Joined: 7 Jun 2007, 20:35
Posts: 959
Location: Sandnes, Norway
Are you sure you can not change player keys? Mouseclick on the button you want to change so the color becomes green, and then press "Enter" and then press designated button.

_________________
Image


Top
 Profile  
 
PostPosted: 27 Jul 2016, 16:15 
Offline
Kuski
User avatar

Joined: 7 Jun 2007, 20:35
Posts: 959
Location: Sandnes, Norway
Kopaka wrote:
Browsers tend to run at 60fps, so I doubt you can get it higher.

I tested in android chrome, it runs, I can navigate menus, but can't select a level because double click is zooming.


Same on iphone 5

_________________
Image


Top
 Profile  
 
PostPosted: 29 Jul 2016, 08:50 
Offline
Kuski

Joined: 29 Apr 2003, 14:11
Posts: 13
pasibel to get left alt as alo? it just activates and opens some menus in chrome

:beer:

_________________
holja


Top
 Profile  
 
PostPosted: 29 Jul 2016, 08:56 
Offline
35mins club
User avatar

Joined: 28 Nov 2002, 15:54
Posts: 3659
Location: suo mesta
wow nobel prize. This is definitely the future

_________________
Image


Top
 Profile  
 
PostPosted: 29 Jul 2016, 12:59 
Offline
39mins club
User avatar

Joined: 23 Nov 2004, 23:05
Posts: 4020
Location: Tórshavn, Faroe Islands
Polarix wrote:
Are you sure you can not change player keys? Mouseclick on the button you want to change so the color becomes green, and then press "Enter" and then press designated button.

You are right it was possible to change. I didn't know you had to press Enter key first. Although there are many keys which are not possible to set such as æåø'¨characters and "c" for instance, because c is the shortcut for Cancel on that window and therefore the window closes.

_________________
Thorze wrote:
I just wanted to make a cool topic like Juish have cool topics..


Top
 Profile  
 
PostPosted: 1 Aug 2016, 20:25 
Offline
Kuski
User avatar

Joined: 10 May 2014, 19:23
Posts: 171
Smibu wrote:
* If your screen is very small, you may get a vertical scrollbar because the page elements (header + canvas) don't fit in the page. In that case, playing with arrow keys becomes a bit annoying because up/down arrows will also move the scroll position. You can probably remove the header with browser dev tools to get more space or press F11 to get rid of the browser menus.
ez solution:
1. Add new bookmark. In bookmark address paste this shit:
Code:
javascript:(function(){document.getElementsByClassName("emscripten_border")[0].style.position="fixed";document.getElementsByClassName("emscripten_border")[0].style.top="0px";})();

2. Open elma2 in browser. Click on your bookmark.
3. enjoy.

It eliminate scrollbar problem but if elma window is too large (can't see bottom of the window) try press F11 or just zoom page with ctrl + mousewheel.

_________________
The best animal hardcore porn ever!


Top
 Profile  
 
PostPosted: 2 Aug 2016, 00:27 
Offline
Kuski
User avatar

Joined: 31 Dec 2012, 18:07
Posts: 665
Location: Oslo, Norway
How about the programmers just fix it (it shouldn't be too hard?), in stead of requiring the players to go through all that hassle. I also have this problem.

_________________
My fake plants died because I did not pretend to water them.


Top
 Profile  
 
PostPosted: 2 Aug 2016, 06:29 
Offline
Kuski
User avatar

Joined: 10 May 2014, 19:23
Posts: 171
Ruben wrote:
How about the programmers just fix it (it shouldn't be too hard?), in stead of requiring the players to go through all that hassle. I also have this problem.

It is a temporary solution. Use it until Smibu fix it.

_________________
The best animal hardcore porn ever!


Top
 Profile  
 
PostPosted: 2 Aug 2016, 11:20 
Offline
39mins club
User avatar

Joined: 9 May 2003, 13:30
Posts: 4431
Location: Valmiera, Latvia
Ruben wrote:
How about the programmers just fix it (it shouldn't be too hard?), in stead of requiring the players to go through all that hassle. I also have this problem.

It took longer for you to write that than the 'hassle' itself.

_________________
39:37,91


Top
 Profile  
 
PostPosted: 2 Aug 2016, 12:39 
Offline
Kuski
User avatar

Joined: 31 Dec 2012, 18:07
Posts: 665
Location: Oslo, Norway
8-ball wrote:
Ruben wrote:
How about the programmers just fix it (it shouldn't be too hard?), in stead of requiring the players to go through all that hassle. I also have this problem.

It took longer for you to write that than the 'hassle' itself.


I dunno, I write quite fast.

_________________
My fake plants died because I did not pretend to water them.


Top
 Profile  
 
PostPosted: 2 Aug 2016, 13:25 
Offline
Kuski
User avatar

Joined: 10 May 2014, 19:23
Posts: 171
Ruben wrote:
8-ball wrote:
Ruben wrote:
How about the programmers just fix it (it shouldn't be too hard?), in stead of requiring the players to go through all that hassle. I also have this problem.

It took longer for you to write that than the 'hassle' itself.


I dunno, I write quite fast.

U has impsy sick web elma version and u still complain...

_________________
The best animal hardcore porn ever!


Top
 Profile  
 
PostPosted: 2 Aug 2016, 20:07 
Offline
Kuski
User avatar

Joined: 10 May 2014, 19:23
Posts: 171
Is there whole elma physics in js file or in .mem?

_________________
The best animal hardcore porn ever!


Top
 Profile  
 
PostPosted: 3 Aug 2016, 07:08 
Offline
Kuski
User avatar

Joined: 22 Oct 2005, 09:32
Posts: 242
Totally amazing work! So cool! I have 14,965 on that external which btw is awesome level :)

_________________
[i cruise, i lev, i live]


Top
 Profile  
 
PostPosted: 3 Aug 2016, 11:47 
Offline
Kuski

Joined: 15 Jun 2007, 13:17
Posts: 445
Location: Finland
Kopaka wrote:
I tested in android chrome, it runs, I can navigate menus, but can't select a level because double click is zooming.
Maybe there could be a separate button for starting the level.

terba wrote:
pasibel to get left alt as alo? it just activates and opens some menus in chrome
Not sure if possible to suppress the default Alt behavior, but I'll check it.

Xiphias wrote:
Although there are many keys which are not possible to set such as æåø'¨characters and "c" for instance, because c is the shortcut for Cancel on that window and therefore the window closes.
Oh, looks like the shortcut bug was fixed only partially. I'll check the æåø'¨ thing too.

dawid wrote:
Is there whole elma physics in js file or in .mem?
I don't know more about those two files than what is said in the documentation: https://kripken.github.io/emscripten-si ... ialization So I guess .mem does not contain any code but may have some initial variable values etc.


Top
 Profile  
 
PostPosted: 4 Aug 2016, 20:33 
Offline
39mins club
User avatar

Joined: 7 Apr 2007, 12:15
Posts: 6281
Location: Stockholm, Sweden
Very cool! FPS seems to be based on monitor frequency rather than the browser itself? Using a 120hz monitor I get 119 FPS average on any level I play:
Image

Also, am I stupid for not understanding how to change keys, or is it not possible on FF or something..?

_________________
John: lol hittade ett popcorn i naveln
(19:52:06) (@Madnezz) The Golden Apple Award goes to.....
(19:52:36) (@Madnezz) ib9814.lev by igge!!!
Zweq wrote:
99.9999% of nabs haven't even opened the book yet and most of those that have are still on the first pages


Top
 Profile  
 
PostPosted: 4 Aug 2016, 22:01 
Offline
Moporator
User avatar

Joined: 21 May 2002, 08:05
Posts: 5332
Location: Oslo, Norway
Igge wrote:
Also, am I stupid for not understanding how to change keys, or is it not possible on FF or something..?

Press enter before you select the key you want.

_________________
Was it cast for the mass who burn and toil?
Or for the vultures who thirst for blood and oil?
Rules | FAQ


Top
 Profile  
 
PostPosted: 14 Aug 2016, 02:36 
Offline
Kuski
User avatar

Joined: 10 May 2014, 19:23
Posts: 171
So littel response :( everybody plays web elma (welma?) and has no tiem to discuss? Smibu, it has so little response that it looks like there is no reason to continue this project even if it is mega great and GAA project ofc. Is it now easier to convert ur every elma2 update to web version or u'll have many problems with each update? Dunno how do u develop elma2 and elmanager but imo u should focus on elma2. The progress goes very slowly.

_________________
The best animal hardcore porn ever!


Top
 Profile  
 
PostPosted: 20 Aug 2016, 07:10 
Offline
39mins club
User avatar

Joined: 19 Nov 2005, 10:45
Posts: 4515
Location: Deep in your Imagination, Twirling your Dreams and Weaving your thoughts.
Very impressive, Smibu.

Wander how to find best times etc tho

_________________
TT: 39:59:02 | AvgTT: 42:02:00 | Targets: 5 WC, 33 Pro, 16 Good | 20 Australian Records | Cyberscore! |
"Feelings of love are just a temporary lapse in judgement. Like a kind of mental illness." -- Suzumiya Haruhi


Top
 Profile  
 
PostPosted: 12 Sep 2016, 21:16 
Offline
Kuski
User avatar

Joined: 9 May 2004, 08:56
Posts: 860
Location: Vienna
very nice, thanks a lot!

haven't touched elma in felt years, this got me cruising again. however, i cannot seem to find a play recs functionality, is there any?

also, how can i play externals? an integration of levs of some db (elmaonline?) would be great.

btw. i got 14:1x in the external :)

edit: i also love to see (max.) speed during the run which left me wondering if there is a competition about the highest (rotational) speeds in internals?


Top
 Profile  
 
PostPosted: 13 Sep 2016, 18:46 
Offline
Kuski

Joined: 15 Jun 2007, 13:17
Posts: 445
Location: Finland
Igge wrote:
Very cool! FPS seems to be based on monitor frequency rather than the browser itself? Using a 120hz monitor I get 119 FPS average on any level I play:
Probably currently Average FPS ~ monitor refresh rate.

Haruhi wrote:
Wander how to find best times etc tho
They're not saved anywhere yet.

kinghias wrote:
however, i cannot seem to find a play recs functionality, is there any?
Not yet. It's near on top of todo list. Currently you can only replay your last ride.

kinghias wrote:
also, how can i play externals? an integration of levs of some db (elmaonline?) would be great.
There's only one external bundled in the web version to keep the size small. Would be easy to add more. It can't see what's in your hard drive. Integration is of course on todo list at some position.

kinghias wrote:
btw. i got 14:1x in the external :)
Gz, you beat umiz at least. If he didn't improve.

kinghias wrote:
edit: i also love to see (max.) speed during the run which left me wondering if there is a competition about the highest (rotational) speeds in internals?
It would make sense definitely. But as the results are not saved anywhere, it's a bit hard to have a competition yet.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 35 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group