What I’ve done with KSpiral

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.

example map

example map

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.

Advertisements

Kommentar verfassen

Trage deine Daten unten ein oder klicke ein Icon um dich einzuloggen:

WordPress.com-Logo

Du kommentierst mit Deinem WordPress.com-Konto. Abmelden / Ändern )

Twitter-Bild

Du kommentierst mit Deinem Twitter-Konto. Abmelden / Ändern )

Facebook-Foto

Du kommentierst mit Deinem Facebook-Konto. Abmelden / Ändern )

Google+ Foto

Du kommentierst mit Deinem Google+-Konto. Abmelden / Ändern )

Verbinde mit %s

CC-License

Creative Commons Lizenzvertrag
Dieser Werk bzw. Inhalt ist unter einer Creative Commons-Lizenz lizenziert.

Paperblog :Die besten Artikel aus Blogs

Old but important:

Um neue Beiträge per E-Mail zu erhalten, hier die E-Mail-Adresse eingeben.

Schließe dich 2 Followern an