rtaylor205 / silenus Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/silenus
Automatically exported from code.google.com/p/silenus
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:
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:
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:
This one fails badly half way. Not sure why..
Original issue reported on code.google.com by [email protected]
on 15 Aug 2012 at 11:00
Attachments:
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:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.