Better actor/component creation syntax #10

Closed
opened 3 months ago by keith · 0 comments
keith commented 3 months ago
Owner

Basically just create macros for specifying actor/component trees in an easier-to-read way, e.g.

(make-actor! 'actor
    :name "Actor 2"
    :location (vec2 0.5 0.5)
    :rotation (/ pi 4)
    :z-layer -1
    :component
        (make-component! 'drawable-test
            :colour (vec4 0.0 1.0 0.0 1.0))
    :child
        (make-actor! 'actor
            :name "Child Actor"
            :location (vec2 0 0.5)
            :z-layer -2
            :component
                (make-component! 'drawable-test
                    :colour (vec4 0.0 1.0 1.0 1.0))))
Basically just create macros for specifying actor/component trees in an easier-to-read way, e.g. ```common-lisp (make-actor! 'actor :name "Actor 2" :location (vec2 0.5 0.5) :rotation (/ pi 4) :z-layer -1 :component (make-component! 'drawable-test :colour (vec4 0.0 1.0 0.0 1.0)) :child (make-actor! 'actor :name "Child Actor" :location (vec2 0 0.5) :z-layer -2 :component (make-component! 'drawable-test :colour (vec4 0.0 1.0 1.0 1.0)))) ```
keith added the
enhancement
label 3 months ago
keith self-assigned this 3 months ago
keith closed this issue 3 months ago
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.