KryScene->Scene, KryNode->Node, KryonProperty*->Property*, KrySignal*->Signal*, KryTransform2D->Transform2D, and the KRY_NODE_/KRY_SCENE_/KRYON_PROPERTY_/KRY_SIGNAL_ enum and macro families to NODE_/SCENE_/PROPERTY_/SIGNAL_. Header guards keep their original names (internal). The lowercase kry_ module namespaces (kry_json, kry_term, ...) and the raymath-shadowing helpers (KryVector2*, KryClamp, KryLerp) stay prefixed: their unprefixed names collide with the raylib API surface kryon tracks.
22 lines
458 B
Plaintext
22 lines
458 B
Plaintext
#module "example_signals"
|
|
#import "kryon.h"
|
|
#import "kryon_example_font.h"
|
|
|
|
app "Kryon Signals" {
|
|
size 640 420
|
|
fps 60
|
|
font examples
|
|
theme THEME_CHERRY 0
|
|
scene main
|
|
}
|
|
|
|
emitter :: int = 0 #global #export
|
|
receiver :: int = 0 #global #export
|
|
|
|
scene main {
|
|
emitter = NodeCreate(scene, 0, NODE_NODE2D, "emitter")
|
|
receiver = NodeCreate(scene, 0, NODE_NODE2D, "receiver")
|
|
connect emitter.hit to receiver.on_hit
|
|
emit emitter.hit
|
|
}
|