Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/bomberPublic

Bomber is a single player arcade game

NotificationsYou must be signed in to change notification settings

KDE/bomber

Repository files navigation

THEMES IN BOMBER----------------This file explains the format of the themes used by bomber.For each theme in Bomber their is a "*.desktop" file in the areakdegames/Bomber/themes in the KDE SVN source-code repository, or in thearea $HOME/.kde/share/apps/Bomber/themes, the user's local data area. If two *.desktop files have the same name, the one in the local area takesprecedence.Files in the SVN area are released and installed with Bomber.  Files inthe local area can be used for development and testing of themes or for holdingdownloaded and copied themes, whatever the method of transfer or copying.  Oneof the theme files is called "default.desktop".  That theme is used wheneverthe game runs for the first time for a particular user.  On subsequentoccasions the last-used theme is loaded.Each *.desktop file must start with the "group" line, which says[KGameTheme].  There must also be a line which gives the name of the theme(e.g. Name=Foo Bar).  That line gets picked up and translated into variouslanguages.  Some other standard (but optional) lines are: Description=...,FileName=...,Author=..., AuthorEmail=...  and VersionFormat=...A line can also be added to display a preview of the theme in the GUI, such asPreview=foobar.png. This will display the foobar.png found next to the *.desktopfile in the GUI when selecting the theme.SVG THEMES----------SVG themes are the standard for Bomber. All the in game objects in Bomber are themeable though the SVG themes. The *.desktop file must contain a FileName=xxxx line, that contains the filename   in witch the SVG graphics for the game objects are stored. The filenames must end in .svg or .svgz and the file must be in or relative to the same folder as the *.desktop file.Example, theme-file "default.desktop":[KGameTheme]VersionFormat=1Name=DefaultName[gl]=PredeterminadoName[it]=PredefinitoName[wa]=PrémetouFileName=default_theme.svgAuthor=John-Paul StanfordAuthorEmail=jp@stanwood.org.ukPreview=default_preview.pngNote that Name and Description have been translated. SVG ELEMENTS------------The elements in the SVG file must have standard names, corresponding to theirrole in the Bomber game.  Each element should be set in a rectangle space.  The size of the element will change depending on the size of game window. The tiles are resized so that game area is 12 tiles wide and 20 tiles high.The elements are:backgroundThe game area backgroundbuilding_s_vA tile used to make up the body of a building. (s = styleof building (0...x), v=variant of the tile (0..x))bomb_nA set of frames bomb's dropped from the plane                 (n = frame number (0...x))bomb_explode_nThe explosion when a bomb hits a buildingplane_nA set of frames for the plane                (n = frame number (0...x))plane_explode_nA set of frames for the explosion when a plane crashes into                 a building. (n = frame number (0...x))roof_s_vA tile used for the roof of buildings. (s = style of                 building (0...x), v=variant of the tile (0..x))The background element is not tiled like the others.  It will be displayedbehind the other elements and scaled fill the game area.  It could be stretchedfurther in either direction, at the user's whim, and will always fill the central widget.  The actual play-area will always be 12 x 20 tiles.The tiles (bomb_n, plane_n,bomb_explode_n and plane_explode_n) all can be animated. The n in the objects id should be replaced with the number of theframes. A frame set can have as many frames as the theme creator wishes, butthey should be numbered sequentially starting from 0. For example "bomb_0, bomb_1, bomb_2"would greate a set of frames for the bomb with 3 frames. The building tiles (building_s_v and roof_s_v) do not have frames, but insteadthet have styles (s) and variant's (v). A building is made up from multiple tiles all having the same style. However the building can also have variant's of it'stile to make each tile in a single building slight different.

About

Bomber is a single player arcade game

Resources

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

No packages published

Contributors29


[8]ページ先頭

©2009-2025 Movatter.jp