Giter Club home page Giter Club logo

silenus's People

Stargazers

 avatar

silenus's Issues

Patches

Hi Karel

Some patches.

1. Better handling of CUBICS - these can be safely skipped as they are only 
used by the Flash IDE
2. Start of handling of "If there are unused shapes in the Flash library, the 
DOMDocument.xml still has  "<Include href=""   elements in the file even if 
these are never referenced.  "
3. In the LIBRARY DOMShape files one gets transformation matrixes in the 
DOMShape data.  The patch includes a start to handling this with 
TransFormationMatrix

attached
1. SVN diff
2. SheepEating.fla (doesnt work properly with Silenus)
3. SheepEating2.fla (works as expected with Silenus - removed unused Library 
items and layers and resaved) 
4. shoes2.fla - there are extra artifcats below the shoes. - 

Nisan


Original issue reported on code.google.com by [email protected] on 12 Aug 2012 at 4:26

Attachments:

Collection of Patches

Issues

Issue 1 - 3 can be closed. I dont have permissions so I have deleted
them and summarized here. The attached patch is all my fixes so far.

Fixes Include -------------

1. Better handling of CUBICS - these can be safely skipped as they are
only used by the Flash IDE 

2. Start of handling of "If there are unused
shapes in the Flash library, the DOMDocument.xml still has  "<Include
href=""   elements in the file even if these are never referenced.  " 

3. In the LIBRARY DOMShape files one gets transformation matrixes in the
DOMShape data.  The patch includes a start to handling this with
TransFormationMatrix
                <DOMShape>
                      <matrix>
                        <Matrix a="-1" tx="855.75" ty="-467.5"/>
                      </matrix>
                      <fills>
                        <FillStyle index="1">
                          <SolidColor color="#FED8B4"/>
                        </FillStyle>
                        <FillStyle index="2">
                          <SolidColor/>
                        </FillStyle>
                      </fills>
                      <edges>

4. Handling of large hex numbers in edges eg #FFFFA5.  
The attached shoes.fla shows this fix working.

5. Start to handling Radial gradients.
Rather than just dropping out and making the fill red.  This handles Radials as 
if they were Linear gradients.

The attached sheep show this work in progress.  The flowers are shaded rather 
than the flat red default.



Current Issues --------------

farmer_submitted.fla 
    Shirt and pants dont line up Eyes not correct

Farmer Non Win.fla 
    Total fail half way.

SheepLeftGrass.fla
    Upside down and offset

SheepAllFive.fla
    Some sheep wrong

Farmer Win.fla
    lose shadow


Nisof

Original issue reported on code.google.com by [email protected] on 16 Aug 2012 at 6:55

Attachments:

Parse / Render errors

Some errors in conversion.  These are after my patches

see farmer_submitted.fla
1. his pants and shirt split.
2. eyes are not quite right.
3. parts of socks are wrong

Original issue reported on code.google.com by [email protected] on 15 Aug 2012 at 5:49

Attachments:

Javascript renderer

Attached improvements to use of getAnimationFrame as per 
    https://gist.github.com/1002116

====
Also but not attached,  changed the way multiple animations are handled.

[snip]

function animate(dt)
{
    //loop through renderers
    for (var i = 0; i < renderers.length; i++) {
        //if running
        if (renderers[i].isRunning())
        {
            frame = renderers[i].getCurrentFrame();
            renderers[i].draw(frame);
            frame = (renderers[i].getCurrentFrame() + 1) % renderers[i].getAnimationLength();
            renderers[i].setCurrentFrame(frame);
        }
    }
}
[unsnip]

[snip]
    gameTimer = new fpstimer.FPSTimer(25, animate);

[unsnip]

[snip]
    require(["json!upload/sheep_right_flower.php"], function (json) {
        // create renderer
        var renderer = new renderModule.Renderer(json, {
            onDone: function(renderer) {
                sheep_anim = setupAnimation(renderer, fpstimer, "sheep2-wrap");
                sheep_anim.start();
                gameTimer.start();
            }
        });
    });


    require(["json!upload/cows.php"], function (json) {
        // create renderer
        var renderer = new renderModule.Renderer(json, {
            onDone: function(renderer) {
                cows_anim = setupAnimation(renderer, fpstimer, "cows-wrap");
                cows_anim.start();
            }
        });
    });

    require(["json!upload/farmer_win_data.php"], function (json) {
        // create renderer
        var renderer = new renderModule.Renderer(json, {
            onDone: function(renderer) {
                farmer_win_anim = setupAnimation(renderer, fpstimer, "farmer-win-wrap");
                winSound = loadSound("clapp");
            }
        });
    });

Original issue reported on code.google.com by [email protected] on 20 Aug 2012 at 11:27

Attachments:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.