HTML5 Journal : A Small World for Two

mdotedot

  • Posts: 1654
My attempt on the Small World Theme.

Title:   A Small World for Two

Goals:
* I want to test out the HTML5 extension
* WebCam support and if that isn't on the device than accelerometer and if that is not on: mouse/touch
* Adding multiplayer if I can


After 5 hours the first start: WebCam control (Not on iOS, but Windows/Mac/Android/Windows Phone)

Start this on        CHROME BROWSER ( )


Version 0.1

Current ideas for the game
  • The Little Prince
  • Three or Four areas on a little planet
Little Prince might be a bit too much work so I probably go for some places on a small planet. But first I want my control-mechanism

« Last Edit: April 24, 2017, 07:12:59 am by mdotedot »
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

mdotedot

  • Posts: 1654
After 11 hours I might have the controls under control



Version 0.2

Next are some graphics to control
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

squeeb

  • Posts: 1617
Are you serious right now!!?? thats amazing.. great job!

mdotedot

  • Posts: 1654
Thanks Squeeb.

I was planning on asking you about your rotation thing you did with Robin.
Did you use Stencyl code to accomodate after the rotation or was it all in Java/IOS?

Currently I'm planning on pausing the game when rotating like Hectate suggested, but if there is a simple Haxe Code to tell Stencyl to rotate the game I might implement that as well
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

mdotedot

  • Posts: 1654

I am laughing my face off with this game. The WebCam Control is too sensative at the moment. Need to tweak that.

At this time it is single player only.

On mobile I have to integrate an A.I. to step on the stone, but for desktop with a webcam you can control the player with the keyboard. And if you don't have a webcam with the player with the keyboard and the stone with the mouse.

 



Version 0.3
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

mdotedot

  • Posts: 1654

I'm about to go to bed.

* Made Orientation + Pause Screen like Hectate suggested
* Scene 2 preparations
* Update on graphics




Version 0.4

Tomorrow hopefully the A.I and maybe even multiplayer
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

mdotedot

  • Posts: 1654




Mobile & Desktop ( [

All control methods are in:   WebCam, Accelerometer, Joystick with Keyboard on desktops

Version 0.5

* ' Wasted '  three hours on A.I. , actually a bit more to fix a bug related to collisions
* The new WebCam method is fun again. The old one was also funny, but too frustrating
* The Joystick replacement of A.I was a half hour fix and way funnier than the attempt of an A.I.

Next up: MultiPlayer mode
I will give myself 8 to 10 hours to do this. If at that time I have failed I need to work on graphics and level(s)

Oh and also a bug on trapping the player with webcam. I need to check for player-area before creating non-moveable-blocks at that point.
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

mdotedot

  • Posts: 1654



Version 0.6


Giffy:


Multiplayer Turn Based mechanism is done.

After two hours of working on the new near-realtime-engine I postponed that work.
Maybe an after-compo-assignment.

So I will try to make it a turn-based-thing.

Next:
* Send/Receive/Act on  Turn-Based MultiPlayer data
* Another Level

Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

mdotedot

  • Posts: 1654
Well I don't think I can make it for the Compo: very tired.  Currently working on some graphics for the next level(s) as my mind isn't capable of putting a collision detection together.

Turn Based Send/Receive is not the problem. The problem is how to coordinate the two actions. I can do a 'little walk' - Send - 'Little stone move' - Send  but that will make for not too interesting follow up levels. Maybe in my sleep I will find the cure for turn based and otherwise I can still give the near-realtime another go.

There is always the extra day to do the Jam. So that will be it. And if all fails I will have still made HALF of a game.

Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

mdotedot

  • Posts: 1654



Version 0.7

Well I've made it: MultiPlayer support.

But ...

  • WebSockets need to be secure ( if using the webcam as well)
  • Switching to next screen/reloading screen/restart is failing
  • Next Scene/Level is needing a dynamic repositioning of actors which I started hardcoding and to get into more problems

These are all so much buggy that I don't really want to put it on the jam as well.

So ..

Changed to topic to NOT Ludum Dare and keep working on it since I am really pleased about what I have learned:

* Controlling actors with a webcam
* Accelerometer from the HTML5 Extension worked nicely
* Multi Inputs is fun
* Using Colorize in GIMP together with the lasso tool
* AND: Got a really simplified client for WebSocket to work (but WS Secure needs work with my server implementation)

Next up are figuring out how to use WS secure, Make better template for multiplayer room reload and maybe work with Squeeb to get WebCam tracking methods.

Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

ceosol

  • *
  • Posts: 2279
Awesome work M.E.

To everyone reading this who thinks there should be one-shot-fits-all multiplayer integrated into Stencyl, M.E. is probably the best server developer in the Stencyl community. He can attest that multiplayer is not something where you snap your fingers and everything just appears.

mdotedot

  • Posts: 1654
Thanks Ceosol for the kind words. But I'm an idiot and make so many mistakes that a cleverer person might do the work in a 10th of the time :D

To be honest I like the challenge. If it was easy I wouldn't have spend that much time on it.

Hopefully I can turn this into an extension that is actually helpful to others and myself included :D
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

mdotedot

  • Posts: 1654
While preparing my new multiplayer extension for the upcomming Ld47, I revisited this project.
Since I couldn't find the Stencyl file I recreated the game with the assets that I still had.
Still I could manage to make it in 6 hours (!)  I doubt that I can pull that off during the LD47 since I usually take on way more than I can chew :D



Left Screen uses Arrow Keys to control player and another client/session (as shown on the right)  uses the mouse to control the rock.


If you would like to experiment with the Extension and the Client-As-A-Server mechanism you can download the Stencyl file and the extension from: http://photoquesting.com/colyseus
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.