Git Product home page Git Product logo

cadeteditor / cadetengine-as Goto Github PK

View Code? Open in Web Editor NEW
67.0 67.0 21.0 17.62 MB

CadetEngine is a component-based AS3 Scene Engine supporting 2D and 3D GPU accelerated rendering, physics, custom behaviours and 3rd party library integration. It has been designed from the ground up to be plug-and-play with editability in mind.

Home Page: https://github.com/CadetEditor/CadetEngine-as/wiki

License: Other

ActionScript 100.00%

cadetengine-as's People

Contributors

b005t3r avatar edsilv avatar robsilv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cadetengine-as's Issues

Transform2D branch: Nesting transforms (editor?) dragging issue

In the editor, create 2 rectangle components.
Now nest the second within the first.
Drag the child rectangle around using the selection tool, note how the position of the rectangle remains the same, relative to the mouse.
Now set the scaleX of the parent rectangle to 3.
Drag the child rectangle around using the selection tool, note how the position of the rectangle doesn't remain the same, relative to the mouse.

Transform2D branch: Nesting transforms dragging issue

In the editor, create 2 rectangle components.
Now nest the second within the first.
Select the first rectangle with the selection tool and drag it around, the position of the second rectangle drifts, relative to the first.

Trying to compile

I'm trying to compile a version (any stable version?) of CadetEngine/CadetEditor. In particular, Cadet2D fails because AbstractSkin2D.as defines protected function validateDisplay():Boolean, while all other skin classes are trying to implement protected function validateDisplay():void. This causes the whole thing to not compile.

ValidationEvent

Hello,

When trying to draw the shaded circle I could not get the shaded circle to show up. I was able to get it to work when I did the following:

I changed
"import cadet.events.InvalidationEvent;"
to
"import cadet.events.ValidationEvent;"
and all references to it:

if ( _circle )
{
_circle.removeEventListener(ValidationEvent.INVALIDATE, invalidateCircleHandler);
}

        _circle = value;

        if ( _circle )
        {
            _circle.addEventListener(ValidationEvent.INVALIDATE, invalidateCircleHandler);
        }

        invalidate("display");
    }
    public function get circle():CircleGeometry{ return _circle; }


    private function invalidateCircleHandler( event:ValidationEvent ):void
    {

Transform2D branch: Nesting transforms skewing issue

In the editor, create 2 rectangle components.
Now nest the second within the first.
Set the scaleX property of the parent rectangle to 3.
Rotate the parent transform using the rotation slider, note how neither the parent or child transforms skew.
Now rotate the child transform using the rotation slider, not how the child transform skews.

Box2D conflict

Which Box2d version are you using ?
i downloaded from www.box2dflash.org/download (Box2DFlash 2.1a)
but in The cadet2DBox2D.components.behaviours.RigidBodyBehaviour
Box2D.Collision.Shapes.b2CircleDef;
Box2D.Collision.Shapes.b2FilterData etc doenst exist

Note: i can change import path but there is also missing methods in Box2D b2Body class.

Type Declaration

Renderer2D.as in "cadet2D.components.renderers.Renderer2D; " has a warning on line 87

Type 1008: parameter 'name' has no type declaration.

Renderer2D.as
/CadetHelloWorld/[source path] cadet2D-src/cadet2D/components/renderers
line 87
Flex Problem

Eric

Can not find swc

I can not find CadetEngine.swc. Where can they be located in the downloaded files?

Eric

Copy-paste ImageSkin duplicates Texture component as well

In the editor:

  • create Texture
  • set Texture's bitmapData to any bitmap
  • create ImageSkin
  • set ImageSkin's texture to Texture
  • copy & paste ImageSkin

Current behaviour: New ImageSkin instance is pasted, but its internal DisplayObject is never validated, so nothing is displayed. Texture instance is serialized and deserialized along with the ImageSkin instance (new Texture instance is created in effect). Copied Texture is never added to scene nor validated (by validateNow() call), so its internal texture never gets created. Copied ImageSkin instance relies on this texture when creating its internal DisplayObject.

Expected behaviour: Copied ImageSkin instance should use the same Texture instance as the original one does. No new Texture instance should be created.

Probably this problem does not only occur with ImageSkins and Textures, but with any objects copied & pasted, which reference other object, outside of the copied object hierarchy.

Bug with rotating rectangle.

I'm running the air app on Windows 7.
In the editor, I created a rigid body rectangle with a fixed position. If I rotate it, it's draw position is offset from its physics body when you preview. I attached an image with an image to show what I'm talking about.

ddd

Transform2D branch: Nesting transforms in the editor causes a jump

In the editor, create 2 rectangle components.
Now nest the second within the first.
The visual position of the second rectangle jumps as the transform coords are interpreted to be local to the parent transform. I expected the position of the object on screen to remain the same when performing this change, and for the coords of the nested transform to be updated to reflect this.
Can this be changed to prioritise visual consistency, without causing other drawbacks?

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.