The shoutbox is currently out of service. Join us on Discord instead.
You can help CodeWalrus stay online by donating here.

[HTML5][javascript] Platformer game

Started by ben_g, July 07, 2015, 10:27:24 pm

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

alexgt

Quote from: ben_g on July 25, 2015, 06:19:13 pm
Quote from: Unicorn on July 22, 2015, 04:32:05 pm
I think that'll happen:
Spoiler: ShowHide




I'm working on it. I was at a scouts camp this week, so there was no progress during that time. It may take a while though.

Quote from: alexgt on July 23, 2015, 02:50:25 pm
It works!!! I think the clock runs a little fast because I usually get througt the tutorial in ~1:30 and I got throught at 3:00 xD
And the speed isn't that bad at all.

The clock should be more or less accurate, since it's based on the system time, not calculated by counting frames. The speed of the game itself can indeed vary though, since it assumes that the screen updates at 60fps. I will fix this when I'm doing the fine tuning at the end of the public beta.

BTW: as you guys mentioned, the game does run on many mobile devices, though it's usually not playable because there often is no keyboard. I'm planning to add on-screen buttons to allow the game to be played trough a touchscreen. I don't know when that will happen though, since it's rather hard for me to debug since I don't own a smartphone.

* alexgt changes system time, laughs manically

DJ Omnimaga

By the way, what is the max size of custom levels and is it possible to remove enemies/walls?

ben_g

Quote from: DJ Omnimaga on July 31, 2015, 10:44:09 pm
By the way, what is the max size of custom levels and is it possible to remove enemies/walls?

The max size of custom levels whatever the maximum string length is that your browser can handle. The limit for uploaded levels is 65kb, which should still be enough for a decently-sized level.
Deleting walls can be done by placing an 'empty space' block on them.
To delete an object, enabling object editing mode by either clicking on the word 'Object' or clicking on the next/previous object arrows. The word "Object" should have a yellow background. Then select the object by clicking on the tile it's placed on (for enemies: click on them, for platforms: click on the leftmost block, for text, click below it's first char). The object will blink to indicate that it's selected. Then press the delete key to delete it.

I'll write a guide for how to use the level editor soon.

For those who missed it on irc: The level editor is still in alpha, so you must use the developement version to use the level editor.

To avoid spam, the level sharing system of the platformer uses Velocity Games forum accounts. To be able to upload a level, post a comment, or rate a level, you must be logged in on one of those accounts. Note that posting on that forum is NOT required, the account system is for safety and ease of programming only, I'm not trying to lure members there.
If that account system is not okay with any of the admins, then please tell me about it and I'll try to find an alternative.

DJ Omnimaga

Ah ok. I guess it's good that there's a limit, in case one day you add features to bulk-paste blocks or large areas then someone releases a gigantic level that only runs on quantum computers.

And I see. I was wondering because when I tried deleting enemies by placing something else (there was no option to choose empty space, only enemy, blue square and text), it switched back to enemy. Thanks for explaining. A guide would definitively help I think.

And yeah it's definitively good to not force people to post on a forum in order to allow them to use the level editor. Perhaps it could be required for certain premium features if the game becomes more popular, but otherwise that might not work out well. Another alternative would be to also allow accounts on Cemetech, Omni and CW but that would be very hard to implement and detect and requires you to manually check your inbox and approve accounts.

Snektron

I played it yesterday :3 I liked the "you have to get here" part in the beginning very much.
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Unicorn

Awesome the level auditor is already quite good, in my opinion. But I think I found a bug, I went to the community levels option, then went back to the main menu, but then I couldn't' click on any of the options.



??? ??? ??? ??? ???

ben_g

Quote from: Unicorn on August 01, 2015, 08:45:20 pm
Awesome the level auditor is already quite good, in my opinion. But I think I found a bug, I went to the community levels option, then went back to the main menu, but then I couldn't' click on any of the options.

That never happened to me.... It sounds like something crashed though.
Could you inspect element and check for javascript errors? If there was an error, please paste it here.

Unicorn

Ok, I'll check it out if I can reproduce it.



??? ??? ??? ??? ???

ben_g

September 03, 2015, 09:29:11 pm #68 Last Edit: September 03, 2015, 09:30:52 pm by ben_g
Big update: The level editor is out of alpha. There are still a few unfinished extra's in the community hub, but everything should be stable and reliable enough for the public release now.
The level handling system is now also completely rewritten. It now congratulates you after every level and waits for you to click a button before moving on to the next one. It also gives you the option to return to the main menu there, and when you were playing an online level, it also gives you the options to upvote/downvote that level (in case you haven't voted already), as well as an option to return to the community hub, which will open the page of the level you just played again so you can place a comment if you want.
There is also a guide now that tells you some basic tips for beating the game, and it also explains how to use the level editor.
I hope you'll enjoy this update.

The platformer is now hosted on http://velocitygames.tk/platformer.php , but the old page should redirect you there.

alexgt

Sounds awesome! I will try it out now ;)

DJ Omnimaga

I just made a rudimentary level to experiment and I like the editor so far. It seems to work fine now as well. My only complaint is that it lacks the ability to place multiple blocks while holding down the mouse button, so as a result, when placing many blocks we have to click and click and click and click and click and click and click. Good job so far, though :)

Is it possible to share levels?

ben_g

Quote from: DJ Omnimaga on September 04, 2015, 05:14:30 am
Is it possible to share levels?

Certainly. Once you made a level in the editor, save it to one of the 3 save slots. Then, refresh the page, click on Community levels, then click on Your levels. It will list your filled save slots there and give you the option to play your level, upload it to the community levels page, or generate a share code. Share codes don't require registration and don't send anything to the servers, but those codes can get very long and therefore they only work for small levels. To upload your level to the community levels page, you need to be logged in with an account from our forum (this is to prevent spam and to have a fully featured account system without having to program all that myself). Once you're logged in, click the upload link, enter a title and a description, click the upload button, and you should see your level appear on the community levels page.

Unicorn

Awesome! I need to get back into playing that, and its levels!



??? ??? ??? ??? ???

alexgt

I want to start making levels but do you use middle  click th pan the screen because my chrome book cannot do that <_<

ben_g

You use the arrow keys to pan the view in the level editor.
There's a link to a guide that explains the basics of the editor below the canvas (as long as you're not in fullscreen mode). I apparently forgot to put the arrow key controls in the guide though, so I'll add that soon.

Powered by EzPortal