3D Library Adventure

merrak

  • *
  • Posts: 2159
I'm pretty impressed with how smooth movement is. Collision detection against the walls works really well and it's easy to navigate. It would be helpful to have light + shadows so that the walls didn't blend together, though.

mdotedot

  • *
  • Posts: 1480
Thanks merrak. Light/Shadow is on my todo list.

The last two weeks I’ve been working on the extension code.

I started with blocks for everything but that became quite a mess:



This was only a very small part of the estimated final implementation.

Then I discovered that I could do a lot with (HaXe) Reflection.

Again I had to redesign the extension code base.
Also, I decided to split the extension into two parts. One is to help finding the TEXT parts of the
blocks. This can be altered once Stencyl allows extension blocks to have dependent dropboxes.

The current core extension is this:

 
The game is now a First Person Maze Crawler:



A previous-path indicator is necessary to avoid running in circles :D

 
Hanging out in the Chat:  http://www.stencyl.com/chat/

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

NickamonPoppytail

  • *
  • Posts: 1022
That's amazing, mdotedot.
046 121 116 105 116 110 101 100 105 032 121 109 032 116 117 111 098 097 032 110 111 105 116 115 101 117 113 032 111 110 032 101 118 097 104 032 100 108 117 111 104 115 032 117 111 089 032 046 084 074 032 101 114 097 032 115 108 097 105 116 105 110 105 032 121 077 032 046 117 111 121 032 107 099 097 116 116 097 032 108 108 105 116 115 032 108 108 105 119 032 073 032 100 110 065 032 046 116 114 105 104 115 032 115 105 104 116 032 103 110 105 114 097 101 119 032 108 108 105 116 115 032 109 097 032 073 032 046 110 111 115 032 115 105 104 032 109 097 032 073 032 046 101 109 032 119 111 110 107 032 121 097 109 032 117 111 089

yoplalala

  • *
  • Posts: 1479
What are dependent dropboxes ?

mdotedot

  • *
  • Posts: 1480

@NickamonPoppytail :  Thanks.

@yoplalala:

Suppose that this is one [CREATE] block where the second dropbox is dependent on the first:


For the next type (Filter) the dropbox will change into this:


And the geometry selection would be like this:


It will greatly reduce the number of blocks and also make it easier to know what the next selection should be.
Hanging out in the Chat:  http://www.stencyl.com/chat/

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

SadiQ

  • Posts: 1770
Dependent dropboxes?? Finally. Been wanting those since 3.0.
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

mdotedot

  • *
  • Posts: 1480
Ha! SadiQ  : this is a REQUEST and still not available. Not even in the 3.5 private release :D
Hanging out in the Chat:  http://www.stencyl.com/chat/

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

merrak

  • *
  • Posts: 2159
Extension is looking nice so far! It would be useful to have some dependency management. I have a ridiculous number of blocks in some of my extensions, and that would clean up a lot of them. A few more colors would be good, too.

mdotedot

  • *
  • Posts: 1480
 Great feedback Merrak!

Stencyl uses these colors:

Blue Drawing, Actor properties,  Images
Green  Calculation, Flow, User Input 
Yellow    Loops 
Gray    Debug, Advanced,
Dark Green     User Input
Red  Behaviors , Scenes, Tiles, World, View , sounds
Black Special 
Purple Game Attributes 

When all my blocks are finished I might change my mind but what I’m currently think is:

Red  create objects   / call methods   
Blue set properties     
Yellow    wrapper blocks /  wrapper variables / Events
Green    get properties / mouse
Black    Init / Remove / add stage 
Purple    Bind Actions 


And the Helper Blocks that have dependencies with these will be the same color.
So the type creation list will be red and the properties list will be blue


Hanging out in the Chat:  http://www.stencyl.com/chat/

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

NobodyX

  • *
  • Posts: 1227
Already making it into an extension?? So cool!

yoplalala

  • *
  • Posts: 1479
I don't remember seeing the dependent dropbox in the requests but it would be great indead :)

« Last Edit: October 23, 2017, 03:10:14 am by yoplalala »

mdotedot

  • *
  • Posts: 1480
After taking a lot of time to invest into my new developing rig, I now am back on track.

Also,  I ported some part of the code to the new Stencyl build. I had to change some blocks.xml code.

And the most important thing:  I found how to get rid of the Stencyl-background color that blocked the 3D output. So you don't need to put the scene to [no color]  in order to see anything.

Latest update:

Click on image to play the demo:





Animation:



Next Up: Skybox / BeachBalls

Hanging out in the Chat:  http://www.stencyl.com/chat/

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

mdotedot

  • *
  • Posts: 1480
Spend some time to make it a proc jam entry. It is running till 13th of November. But you can do late submissions.

ProcJam main page


My ProcJam entry page



Found the openfl setting for html5 automatic resize posted by LetMeThink: <window resizable="true" if="html5" />

Click image to play the game:






Animation:



Not sure if I will have time this week to add SkyBox and other stuff that I had planned.

Hanging out in the Chat:  http://www.stencyl.com/chat/

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

squeeb

  • Posts: 1417
Wow!  Runs really well on mobile
Maybe I can make something like this 1st person castlevania game when this is done. ;)
https://youtu.be/ZzBLZ5o18VA

merrak

  • *
  • Posts: 2159
Runs really well for me, too! (FYI I did get the other one to download as well).

I did notice some kind of weird flickering with the lights. I tried to get a screenshot of it and managed to get this (attached). At first I thought you had a moving sun, since the shadows changed position as if the sun was speeding across the sky. But then the lights on the wall flickered.

I don't know how much of the work with lighting + shadow Away3D is doing for you and how much you have to do on your own. In my rendering engine this sort of behavior is a result of the vertices of walls being set in the wrong order. I use clockwise, but I'm not sure what Away3D is expecting, or if this is even something Away3D handles on its own without needing your input.