Bacon2D/Bacon2D

Layer behavior

rogerzanoni opened this issue · 8 comments

The Layer element should provide endless scrolling behavior by repeating its elements (It should behave like the ImageLayer element)

interesting... what is the use case??

Scroll the Layer including it's children items infinitely, like ImageLayer does. We currently have a ScrollBehavior that works on a Layer and properly scrolls it's children, but it doesn't repeat.

OK, but for what kind of game? Like the parallax_layers example? (transform the planet big images in simple objects)

exactly like that, it scrolls nicely now, but not infinitely.

On Wednesday, November 5, 2014, Rodrigo Oliveira notifications@github.com
wrote:

OK, but for what kind of game? Like the parallax_layers example?
(transform the planet big images in simple objects)


Reply to this email directly or view it on GitHub.<
https://ci6.googleusercontent.com/proxy/PI6kdwEi63PeUYkbV6AFP1dJiTINAyh1FT6TbyKCUSszdL5OR6s2HrTmNTaBa-i9eC9r55OOT8K1cq-pD7GQEpscuRZrO3FKI_2DQY97h7EVtoFgiR3Qvr8mYcTeadsdgumz58PnYyMhiqFRKkRypem_lelpzg=s0-d-e1-ft#https://github.com/notifications/beacon/AADWBTNN8ZBtuXyqDhiKJydpOR3S3oPMks5nKqpxgaJpZM4C3eGo.gif

pretty cool! +1 for this :D

I think we should be able to copy the offset logic from ImageLayer.

Rodrigo, want to take a swing at it?

uhm, maybe... I still needing to finish that other branch (shame on me!)

It would be great, I think infinite scrolling of Layer would rock!