Better actor/component creation syntax #10

Closed
opened 2022-02-22 00:16:28 +00:00 by keith · 0 comments
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 2022-02-22 00:16:28 +00:00
keith self-assigned this 2022-02-22 00:16:41 +00:00
keith closed this issue 2022-02-23 23:32:01 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: keith/wh-engine#10
No description provided.