Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit 4ce7995

Browse files
docs: add usage examples for XRay Engine in README
1 parent beef227 commit 4ce7995

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

README.MD

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# XRay Engine
2+
3+
## Example Usage
4+
5+
### Example 1: Simple Hello World Application
6+
```xml
7+
<application>
8+
9+
<!-- Window configuration -->
10+
<window title="Hello, World!" height="600" width="800"/>
11+
12+
<!-- Scene definitions -->
13+
<scenes>
14+
<scene name="main">
15+
<label id="greeting" text="Hello, World!" x="50" y="50" font-size="56" color="blue"/>
16+
</scene>
17+
</scenes>
18+
19+
</application>
20+
```
21+
22+
### Example 2: Displaying a Texture
23+
```xml
24+
<application>
25+
26+
<!-- Window configuration -->
27+
<window title="Hello, World!" height="600" width="800" fps="60"/>
28+
29+
<!-- Asset definitions -->
30+
<assets>
31+
<texture id="exampleTexture" path="C:\Workspace\c\xray\examples\sample.png" />
32+
</assets>
33+
34+
<!-- Scene definitions -->
35+
<scenes>
36+
<scene name="main">
37+
<sprite id="exampleSprite" x="400" y="300" texture-id="exampleTexture" />
38+
</scene>
39+
</scenes>
40+
41+
</application>
42+
```

0 commit comments

Comments
 (0)