Stencyl 3.4.0 is now out. Get it now!

HTML5 Journal : A Small World for Two

mdotedot

  • *
  • Posts: 1168
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 »
Best regards from
M.E.
Hanging out in the Chat:  http://www.stencyl.com/chat/

mdotedot

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



Version 0.2

Next are some graphics to control
Best regards from
M.E.
Hanging out in the Chat:  http://www.stencyl.com/chat/

squeeb

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

mdotedot

  • *
  • Posts: 1168
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
Best regards from
M.E.
Hanging out in the Chat:  http://www.stencyl.com/chat/

mdotedot

  • *
  • Posts: 1168

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
Best regards from
M.E.
Hanging out in the Chat:  http://www.stencyl.com/chat/

mdotedot

  • *
  • Posts: 1168

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
Best regards from
M.E.
Hanging out in the Chat:  http://www.stencyl.com/chat/

mdotedot

  • *
  • Posts: 1168




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.
Best regards from
M.E.
Hanging out in the Chat:  http://www.stencyl.com/chat/

mdotedot

  • *
  • Posts: 1168



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

Best regards from
M.E.
Hanging out in the Chat:  http://www.stencyl.com/chat/

mdotedot

  • *
  • Posts: 1168
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.

Best regards from
M.E.
Hanging out in the Chat:  http://www.stencyl.com/chat/

mdotedot

  • *
  • Posts: 1168



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.

Best regards from
M.E.
Hanging out in the Chat:  http://www.stencyl.com/chat/

ceosol

  • *
  • Posts: 2091
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: 1168
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
Best regards from
M.E.
Hanging out in the Chat:  http://www.stencyl.com/chat/