Wow, holiday at home. It’s time for coding. Not even one month till the new semester starts.
I’m quite sure, that the elements in the SVG file are all what I need in KSpiral. I choose the way to have an extra .desktop file, which contains the config.
[KGameTheme]
Name=Egyptian
FileName=egyptian.svg
Author=Felix Lemke
AuthorEmail=lemke.felix@ages-skripte.org
Description=First map for testing created by programer
#number of balls to be spawned in this level
BallCount=20
#movement duration of ball along the whole path
Duration=60
#cannon speed in points per second
CannonSpeed=1000
#list of ball types (names in svg file, comma-separated)
Balls=BallGreen,BallBlue,BallRed,BallViolet,BallYellow
#list of barriers (names in svg gile, comma-separated) includung the outer walls
Barriers=Top,Bottom,Left,Right,End
You can see, that you can specify a list of barriers, which are drawn in the game. If balls should collide with these barriers you need a separate outline, named with the barriere name + Outline (for example: TopOutline). I have to be an path, not an object. It’s also possible to have only an „TopOutline“ path without an „Top“ object (like in my example SVG). Note, that the outline paths (if not included in objects group) aren’t drawn.
One special Element ist the „Cannon“ and it’s „CannonTop“. New balls are spawned between these layers.
Anymore I searched crashs and some more ugly behaviour. Now it shouldn’t be so easy to crash KSpiral. Next steps are including a score system, find some bugs/crashs.
PS: Thanks to Eugene, who shows interesse in creating an map for KSpiral. KSpiral comes to a level where we can talk about map design.
What’s new: