-
Notifications
You must be signed in to change notification settings - Fork 180
The Basics
Wizard edited this page Jan 15, 2023
·
3 revisions
-
Character files are found in
data/characters/<file>.xml
. - Spritesheets are located in
images/characters
, and Icons are located inimages/icons
. Both should be named the same as the character name, but you can also specify the names in the character's variablessprite
andicon
. - All variables are optional; If a piece of information is not given, the engine will auto-assign that variable to it's default value.
Here's an example you can copy as a template.
<!DOCTYPE codename-engine-character>
<character isPlayer="false" isGF="false" x="0" y="0" gameOverChar="bf" camx="0" camy="0" holdTime="4" flipX="false" icon="character-name" scale="1" antialiasing="true" sprite="character-name">
<anim name="idle" anim="BF idle dance" fps="24" loop="false" x="0" y="0" />
<anim name="danceLeft" anim="GF Dancing Beat" fps="24" loop="false" x="0" y="0" indices="30,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14" />
</character>
Variable | Default Value | Information |
---|---|---|
isPlayer |
false | Acts like Boyfriend |
isGF |
false | Acts like Girlfriend |
x |
0 | Global X Positional offset |
y |
0 | Global Y Positional offset |
gameOverChar |
"bf" | Character's character on death |
camx |
0 | Global X Camera offset |
camy |
0 | Global Y Camera offset |
holdTime |
4 | Sing Anim's Length |
flipX |
false | Flip's Character's Sprite |
icon |
<file.xml> 's name |
Name of Character's icon |
scale |
1 | Character's Scale |
antialiasing |
true | Softens edges to sprite |
sprite |
<file.xml> 's name |
Name of Character's spritesheet |
- don't feel like doing this rn lmao!