foxnewsnetwork / rubyopenvn

Ruby-based implementation of FFOpenVN as ported over from nodejs
1 stars 0 forks source link

Connect flotile to this #12

Open foxnewsnetwork opened 12 years ago

foxnewsnetwork commented 12 years ago

Flotile is the javascript view generator as used in ffopenvn. Make sure that rubyopenvn can out json of the format:

typedef SceneData = { background : { image : String } , foreground : { images : Array , positions : Array<{ x : Float, y : Float }> , sizes : Array<{ width : Float, height : Float }> } , text : { speaker : String , content : String } }

foxnewsnetwork commented 12 years ago

Starting a new haXe project to do the javascript views. The scenes description may change (slightly).

foxnewsnetwork commented 12 years ago

{ :layers => { :id => rand(100) > 85 ? nil : layer.id , # 15% chance of a new layer :image => @elements[r].picture.url(:small) , :width => rand(256) , :height => rand(256) , :x => rand(256) , :y => rand(256) , :element_id => @elements[r].id } , :texts => Factory.next( :random_string ) , :id => scene.id , :parent_id => scene.parent_id , :owner_id => scene.owner_id ,
:children_id => scene.children.map { |child| child.id } , :fork_text => Factory.next( :random_string ) , :fork_image => nil , :fork_number => scene.fork_number } # return