ballerburg-1.0.1/ 0000755 0001750 0001750 00000000000 12145514563 013210 5 ustar thomas thomas ballerburg-1.0.1/README.txt 0000644 0001750 0001750 00000005574 12145514531 014714 0 ustar thomas thomas
============================
= Ballerburg SDL v1.0.1 =
============================
Copyright (C) 1987, 1989 Eckhard Kruse
Copyright (C) 2010, 2013 Thomas Huth
For my sister Martina Huth - I will never
forget the countless happy hours that we had
with this game during our childhood.
1) Lizenz
---------
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see
Ballerburg is about two lords of castles pitted against each other, with the goal of defeating the opponent through targeted cannon shots. Players are able to obtain money from mining after buying shaft towers and from their people by levying taxes, and with these funds players may purchase e.g. new cannons and ammunition.
There are different playing modes available in the game's settings menu, which can be brought up by pressing the Escape key. Ordinarily, the game is played between two human players. Another option is for one player to fight the computer. The computer can be set to be the player on the left or right hand side of the screen. It is also possible to let two computer- controlled players battle each other. Since it is possible to change playing modes mid-game, one can for example momentarily let the computer shoot for one's own side, or, if you're battling a computer-controlled player and the situation's dire, you might for instance momentarily switch modes to human vs. human and weaken the opponent by making bad decisions for him.
In the settings menu you can change the name of the human player. The name for the computer-controlled player can be changed under the label 'AI strategy'. Both settings can also safely be changed while a game is already running. The first player is always on the left side of the screen, and the second player is on the right side. The name of the computer-controlled player also stand for a certain strategy. The numbers next to 'AI strength' control the shooting accuracy of the computer players. The highest value 4 here means that almost every shot will hit its goal. The AI strategies differentiate into the priorities of the targets, i.e. some computer players shoot always at the cannons (if available), while some others rather try to hit the money of the opponent.
Oaf : | No special target, just tries to hit the castle somewhere. |
Yokel : | First the money, then gunpowder/cannonballs, then the king |
Boor : | First the money, then cannons, then the king |
Doofus : | Money, gunpowder, cannonballs, shaft towers, cannons, king: Everything with the same probability |
Fumbler : | First cannons, then the king |
Geezer : | First the shaft towers, then cannons, then the king |
Ruffian : | Aims only at the king |
Note that only Doofus, Fumbler, Geezer and Ruffian are able to buy shaft towers.
By clicking 'New game' in the settings menu, you can choose new castles for both sides and then start the new game by clicking 'OK'. Unless you've already extended the file with the castles, 'BALLER.DAT', you can decide between 9 different standard castles here. If both players are on the same skill level, you should of course select the same castles here, because the different castles have quite different strengths. If you choose smaller castles, the game normally won't last as long as with the bigger castles.
Here are now the values of the 9 standard castles:
Cannons | Money | Gunpowder | Cannonballs | People |
---|---|---|---|---|
2 | 400 | 180 | 12 | 200 |
5 | 500 | 180 | 12 | 270 |
5 | 500 | 150 | 14 | 270 |
6 | 500 | 190 | 12 | 300 |
3 | 500 | 120 | 6 | 220 |
4 | 500 | 120 | 10 | 240 |
6 | 800 | 120 | 12 | 500 |
3 | 500 | 120 | 9 | 500 |
1 | 1000 | 120 | 12 | 300 |
After you've started a new game, the castles and the mountain will be drawn on the screen. Both, the position of the castles and the shape and height of the mountain are random (within certain limits). The castles consist of the following parts:
The active wind information indicates the active player. If the player still has a vane, a zoomed version of the vane will be shown in the box at the bottom of the screen together with the strength and direction of the wind.
After starting the game, the players take their turns until one of them wins. Within a turn, the player can do several things: After clicking on either the powder magazine, the cannonballs magazine or the treasure chamber, the properties of the player will be displayed along with the market where the player can buy various things (more on this topic can be found in the next chapter). By clicking on the throne room, the king will comment on your latest progress.
The round can be completed in two ways: In case you don't have a cannon anymore, or you don't have enough powder or cannonballs or just don't like to shoot, you can simply click on 'Done' at the bottom of the screen. In all other cases you should choose the cannon that you want to shoot with, select the angle and powder and then click 'OK' to fire a cannonball. More on shooting can be found in chapter 8.
When clicking on one of the three magazines, you get the properties and market dialog which is described here now: In the section titled with 'You have' your properties and the amount of your people are listed. By clicking on the corresponding arrows, you can also adjust the taxes here that you demand from your people. Higher taxes mean more money per subject. But beware, when you raise the taxes, some of your people might leave your kingdom. On the other side, lowering the taxes might render your kingdom more attractive again, so that a certain amount of people might immigrate again. But like in real life, there are no exact values for the amount of immigrants, emmigrants and the amount of money you earn, they fluctuate within certain ranges. And be warned: If you raise the taxes too much, your income declines again – which people are really interested in generating earnings if they have to give everything away again?
The second part of the dialog is used for the market. Here you can buy certain things and repair your castle. You can trigger one of the actions by clicking on the price of the corresponding entry. However, this is only possible if the entry is active. In case it is inactive, you either do not have enough money or one of the following reasons occured:
Please also note that you can not buy more cannonballs and gunpowder than you can store in your magazines. If you try to buy more, you still have to pay the money, but you can not store the bought goods! The treasure chamber behaves in a similar way: If it is completely filled, all additional earned money will be discarded.
Buying a shaft tower is long-term capital investment. For each shaft tower, you earn approximately between 40 and 70 money units each round.
Now a word about laying bricks: When you choose this menu entry, you get 20 bricks (the remeaining are shown at the bottom of the screen) which you have to lay immediately. Please note that you can only extend the existing walls of your castle, i.e. you can not lay the bricks somewhere up in the air. Furthermore, don't even think of laying the bricks at your opponent's castle, e.g. to block the other's cannons – of course this is forbidden, you are only allowed to extend your own castle.
Please also note that the prices at the market vary each round. Goods that are very cheap in one round might become expensive in the next one. (I won't tell more about the price system here, so you can be surprised again and again how expensive those shaft towers can be when you just thought that you were ready to buy one...)
After clicking on one of the cannons, you have to adjust the cannon angle and the amount of gunpowder. By clicking on the single arrows, you adjust the values with single steps, and by clicking on the double arrows you adjust the powder by three units and the angle by 10 degrees. Powder can be selected from 5 units up to 20 units (unless you have less than 20 powder units in your magazine, then the maximum limit will be adjusted accordingly). Using 5 powder units or something similar is hardly of any use – unless you would like to destroy your own shaft towers!?!
The angle can be adjusted in the range of 0 up to 180 degrees. Angles above 90 degrees (or even 80 degrees if you've got very strong opposing wind) are also only useful for self-destructive players.
When you are satisfied with your settings (did you take the wind into account, too?), then you should press 'OK' to fire your cannonball.
In most cases the cannonballs only hit the mountain or the walls of the opponent's castle. The effect is not too exciting; the cannonball creates a crater with a size proportional to the impact velocity. In case you hit the castle, there is also the chance that you killed some of the opponent's people.
Striking a cannon is more exciting; the cannon is destroyed with a big explosion. The same applies to the vane. If you hit the cannonball magazine or the treasure chamber, a certain amount of the content will be destroyed. In case you hit the powder magazine, the whole stock of powder will explode. And if you hit the king, you can congratulate yourself – in this case you've won the game!
The fine art of shooting is to destroy the shaft towers. This is a very difficult task. First, they are located right behind the mountain anyway, so that you need a big angle and a lot of powder to hit them. But additionally you often have to hit them multiple times until they explode. Here's a little hint: If you hit the towers from the side instead from the top, chances are higher that they will be destroyed.
In case two players are playing at the same level, there can be a dead-lock situation where neither player manages to hit the opponent's king. Especially when both players have a lot of people, shaft towers and lay a lot of bricks, it can happen that they get almost unbeatable and these games last forever.
To avoid such neverending games, there are some options in the settings menu which can be used to limit the duration of a party:
How can a game end? In the most likely case, one of the two kings gets hit by a cannonball. There is also the possibility that one of the kings surrenders. However, this is only the case if you do not have any cannons left, your treasure room is almost empty and your amount of people is also very low – so it is very unlikely that you can buy a new cannon in the near future. Finally there is the possibility that you run out of people. But this case only happens if you're imposing too high taxes for several rounds, so that all your people emigrate.
ballerburg-1.0.1/doc/de/ 0000755 0001750 0001750 00000000000 12145514531 014340 5 ustar thomas thomas ballerburg-1.0.1/doc/de/anleitung.html 0000644 0001750 0001750 00000035461 12145514531 017225 0 ustar thomas thomasBei dem Spiel Ballerburg geht es darum, dass sich zwei Burgherren mit dem Ziel gegenüber stehen, durch gezielte Kanonenschüsse den Gegner zu besiegen. Dabei haben die Spieler die Möglichkeit, durch Kauf von Fördertürmen Geld zu verdienen, vom Volk Steuern zu fordern und mit diesen Einnahmen zum Beispiel neue Geschütze und Munition zu kaufen.
Über die ESC-Taste erreichen Sie das Einstellungsmenü, in welchem Sie verschiedene Spielmodi auswählen können: Normalerweise kämpfen zwei Spieler gegeneinander. Weiterhin besteht die Möglichkeit, dass ein Spieler gegen einen Computer spielt. Dabei kann der Computer wahlweise auf der linken oder rechten Seite spielen. Schließlich können Sie auch zwei Computer gegeneinander spielen lassen. Da Sie den Modus während des laufenden Spieles ändern können, besteht zum Beispiel die Möglichkeit, dass Sie zwischendurch auch einmal den Computer für sich schießen lassen, oder dass Sie in einem aussichtslosen Kampf gegen den Computer durch vorübergehendes Umschalten auf 'Spieler gegen Spieler' Ihren Gegner durch eigene Entscheidungen schwächen.
Im Einstellungsmenü können Sie die Namen der menschlichen Spieler bestimmen. Die Namen der Computer legen Sie beim unter 'KI Strategie' fest. Beides kann auch während einer Partie geändert werden. Computer 1 und Spieler 1 spielen immer auf der linken Computer 2 und Spieler 2 auf der rechten Seite. Die Namen der Computer stehen gleichzeitig für eine bestimmte Strategie. Die Zahlen 1-4 unter 'KI Stärke' stellen die Treffsicherheit der Computerspieler dar. Dabei bedeutet 4, dass praktisch jeder Schuss ein Treffer ist. Die Strategien unterscheiden sich darin, dass die Computer den Zielen eine unterschiedliche Priorität geben, d.h. manche Computer schießen grundsätzlich auf Kanonen, wenn welche vorhanden sind, während andere zum Beispiel eher auf das gegnerische Geld zielen.
Tölpel : | Kein konkretes Ziel, versucht nur, die Burg irgendwie zu treffen. |
Dummel : | Geld vor Pulver/Kugeln vor König |
Brubbel : | Geld vor Kanonen vor König |
Wusel : | Geld, Pulver, Kugeln, Fördertürme, Kanonen, König: Alle mit gleicher Wahrscheinlichkeit |
Brösel : | Kanonen vor König |
Toffel : | Förderturme vor Kanonen vor König |
Rüpel : | Zielt nur auf den König. |
Desweiteren sind nur Wusel, Brösel, Toffel und Rüpel in der Lage, sich Fördertürme zu kaufen.
Nach Anklicken von 'Neues Spiel' können Sie für die beiden Seiten Burgen auswählen und anschließend mit 'OK' das Spiel beginnen. Sollten Sie nicht bereits die Burgendatei 'BALLER.DAT' erweitert haben, so stehen Ihnen 9 Burgen zur Verfügung. Bei gleichguten Spielern sollten Sie in der Regel auch gleiche Burgen auswählen, denn sie unterscheiden sich in der Stärke teilweise recht erheblich untereinander. Bei der Wahl von kleineren Burgen wird sich natürlich auch im allgemeinen die Gesamtspieldauer verkürzen.
Hier nun die Werte der Standard-Burgen:
Kanonen | Geld | Pulver | Kugeln | Volk |
---|---|---|---|---|
2 | 400 | 180 | 12 | 200 |
5 | 500 | 180 | 12 | 270 |
5 | 500 | 150 | 14 | 270 |
6 | 500 | 190 | 12 | 300 |
3 | 500 | 120 | 6 | 220 |
4 | 500 | 120 | 10 | 240 |
6 | 800 | 120 | 12 | 500 |
3 | 500 | 120 | 9 | 500 |
1 | 1000 | 120 | 12 | 300 |
Nachdem Sie nun mit 'Neues Spiel' das Spiel begonnen haben, werden die Burgen und der Berg gezeichnet. Sowohl die Lage der Burgen als auch das Aussehen und die Höhe das Berges sind (innerhalb eines gewissen Rahmens) zufällig. Die Burgen bestehen aus folgenden Teilen:
Durch die aktive Windanzeige sieht man, wer am Zug ist. Ist der Spieler im Besitz einer Windfahne, so wird sie im Kasten unten vergrößert gezeigt und außerdem die genaue Windgeschwindigkeit und -richtung angegeben.
Nach dem Starten des Spieles führen die Spieler immer abwechselnd Ihre Aktionen aus, bis einer gewonnen hat. Innerhalb eines Zuges kann der Spieler verschiedene Dinge machen: Nach Anklicken einer der Kammern für Pulver, Kugeln oder Geld wird der Besitz des Spielers angezeigt und man hat dann die Möglichkeit, auf dem Markt verschiedene Dinge zu kaufen. Mehr dazu wird im nächsten Abschnitt gesagt. Durch Anklicken des Königs können Sie erfahren, was Ihr Herrscher denn zu Ihren Erfolgen zu sagen hat.
Abgeschlossen werden kann der Zug durch zweierlei Möglichkeiten: Sollten Sie keine Kanone, nicht genügend Pulver bzw. Kugeln oder einfach keine Lust zum Schießen haben, so müssen Sie auf 'Fertig' am unteren Bildschirmrand klicken. Andernfalls wählen Sie die Kanone, mit der Sie schießen wollen, aus, stellen Winkel und Pulver ein und klicken auf 'OK'. (Näheres zum Schießen in Abschnitt 8)
Wenn Sie während Ihres Zuges auf eine der drei Kammern klicken, so erscheint eine Übersicht, auf die jetzt näher eingegangen werden soll. Unter 'Du hast' steht eine genaue Aufzählung über Ihren Besitz sowie über die Größe Ihres Volkes. Außerdem können Sie hier die Steuern, die Sie von Ihrem Volk fordern, durch Klicken auf die entsprechenden Pfeile einstellen. Bei hohen Steuern bekommen Sie natürlich mehr Geld als bei niedrigen. Allerdings kann Sie bei zu hohen Steuern ein Teil des Volkes verlassen. Bei niedrigen Steuern hingegen können Sie sich einer gewissen Zahl Einwanderer erfreuen. Um das ganze etwas interessanter zu machen, schwanken allerdings die Zahl der Ein/Auswanderer sowie die Einnahmen auch bei konstanten Steuern innerhalb einer gewissen Bandbreite. Außerdem, seien Sie gewarnt: Bei gar zu hohen Steuern, nehmen Ihre Einnahmen wieder ab. (Welches Volk hat schon Lust, Gewinne zu erwirtschaften, wenn es sowieso wieder alles abgeben muss.)
Der zweite Teil der Anzeige stellt den Markt dar. Hier haben Sie die Möglichkeit, gewisse Dinge zu kaufen oder auch Ihre Burg zu reparieren. Sie führen eine Aktion aus, indem sie einfach auf die entsprechende Bezeichnung klicken. Dies ist jedoch nur dann möglich, wenn der Eintrag aktiv ist. Sollte er nicht anwählbar sein, so liegt es entweder an mangelndem Geld oder an einem der nachfolgenden Gründe:
Beim Kaufen von Kugeln oder Pulver sollten Sie beachten, dass Sie nur soviel einkaufen können, wie in Ihre Kammern passt. Weiteres Anklicken der entsprechenden Menüpunkte verringert zwar nach wie vor das Geld um den angezeigten Preis, bringt aber keine neuen Kugeln oder Fässer! Ähnliches gilt für die Schatzkammer: Ist sie gefüllt, so können Sie auch mit den schönsten Einnahmen Ihr Vermögen nicht weiter steigern.
Der Kauf von Fördertürmen ist eine langfristige Investition. Pro Runde und pro Turm nehmen Sie ungefähr zwischen 40 und 70 Geldeinheiten ein.
Nun noch zum Anbauen: Wählen Sie diesen Punkt an, so stehen Ihnen 20 Steine zur Verfügung ( die verbleibenen werden unten angezeigt ), die Sie sofort alle anbauen müssen. Beachten Sie, dass Sie nicht 'irgendwo in der Luft' anbauen können, sondern von den vorhanden Wänden ausgehen müssen. Desweiteren brauchen Sie nicht auf den bösen Gedanken zu kommen, bei der Burg des Gegners zum Beispiel die Geschütze zuzumauern - das geht nämlich nicht, Sie können nur im Bereich Ihrer eigenen Burg bauen.
Zu den Preisen ist nur zu sagen, dass Sie alle jeweils in einem bestimmten Bereich schwanken und dass Sie teilweise unterschiedlich starken Sprüngen unterworfen sind. (Mehr möchte ich eigentlich nicht verraten, denn so können Sie noch immer wieder staunen, wie teuer doch Fördertürme sein können...)
Nach dem Anklicken einer Kanone haben Sie Winkel und Pulver einzustellen. Mit den einfachen Pfeilen stellen Sie in Einerschritten, mit den doppelten in Dreier- ( Pulver ) bzw. Zehnerschritten ( Winkel ) ein. Die Pulvermenge liegt zwischen 5 und 20 Einheiten. ( Wenn Sie insgesamt weniger als 20 Pulvereinheiten haben, liegt die Obergrenze automatisch auch niedriger. ) Pulvermengen im Bereich von 5 werden Sie eigentlich nur selten gebrauchen, nämlich nur dann, wenn Sie Ihre eigenen Fördertürme kaputt schießen wollen?!
Winkel können Sie im Bereich von 0 bis 180 Grad einstellen. Winkel über 90 (bei stärkerem Gegenwind auch schon über 80) und unter 10 Grad sind allerdings erfahrungsgemäß auch nur sehr bedingt brauchbar.
Wenn Sie schließlich mit Ihren Einstellungen zufrieden sind (haben Sie auch den Wind berücksichtigt?), können Sie mit 'OK' den Schuss auslösen.
Nachdem Sie in Abschnitt 8 lesen konnten, wie man schießt, möchte ich Ihnen nun verraten, was man denn so alles treffen kann: In der größten Zahl der Fälle wird die Kugel wohl nur den Berg oder die Mauern der Burg treffen. In diesem Fall passiert nicht viel: Es entsteht ein in der Tiefe der Aufprallgeschwindigkeit proportionales Loch. Sollten Sie die Burg getroffen haben, so können außerdem ein paar Leute der Bevölkerung sterben.
Interessanter wird es dagegen, wenn Sie eine Kanone treffen. Diese wird dann nämlich mit einer Explosion verschwinden. Gleiches gilt für die Windfahne. Treffen Sie die Kammern für Geld oder Kugeln, so geht ein bestimmter Betrag verloren. Ein Treffer in der Pulverkammer bewirkt, dass das gesamte Pulver explodiert. Wenn Sie den König treffen, ist das besonders effektiv - Sie haben dann nämlich gewonnen.
Die hohe Kunst des Schießens, Fördertürme zu zerstören, ist eine schwierige Angelegenheit. Mitunter sind sie sowieso schon so hinter dem Berg versteckt, dass sie nur mit steilen Schüssen und viel Pulver zu erreichen sind. Nun kommt aber auch noch hinzu, dass man häufig eine ganze Reihe von Schüssen braucht, um einen Turm zu zerstören. Hier ein kleiner Tip: Schüsse, die den Turm seitlich treffen, sind eher von Erfolg gekrönt.
Da sich bei gleichguten Spielern manchmal Patt-Situationen einstellten, in denen keiner es schaffte, den anderen zu besiegen, kann es zu dem Problem kommen, dass ein Spiel quasi endlos dauern konnte. Insbesondere durch viel Volk und häufiges 'Anbauen' kann es passieren, dass man praktisch unbesiegbar wird.
Für diesen Fall gibt es im Hauptmenü daher noch verschiedene Optionen, mit welchen sich die Spieldauer begrenzen lässt:
Wann ist das Spiel denn eigentlich zu Ende? Nun, ganz einfach: Der weit am häufigsten auftretende Fall ist, dass ein König getroffen wird. Es besteht jedoch auch die Möglichkeit, dass sich ein König von ganz alleine ergibt. Dies ist jedoch nur dann der Fall, wenn man keine Kanonen mehr besitzt, die finanziellen Mittel so bescheiden sind, dass man sich in absehbarer Zeit keine Kanone leisten können wird und auch das Volk aufgrund mangelnder Größe nicht die Hoffnung zulässt, durch Steuern genug Einkünfte zu schaffen. Die dritte, letzte und seltenste Möglichkeit für ein Spielende besteht darin, dass man kein Volk mehr hat, denn dann gibt es ja auch nichts mehr zu regieren. Dieser Fall tritt aber wirklich nur dann ein, wenn jemand sein Volk über längere Zeit mit gewaltigen Steuern zum Auswandern veranlasst hat.
ballerburg-1.0.1/doc/CMakeLists.txt 0000644 0001750 0001750 00000000667 12145514531 016521 0 ustar thomas thomas INSTALL(FILES de/anleitung.html en/manual.html DESTINATION ${DOCDIR}) add_custom_target(manpages ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/ballerburg.1.gz) add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/ballerburg.1.gz COMMAND gzip -c -9 ${CMAKE_CURRENT_SOURCE_DIR}/ballerburg.1 > ${CMAKE_CURRENT_BINARY_DIR}/ballerburg.1.gz DEPENDS ballerburg.1) INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/ballerburg.1.gz DESTINATION ${MANDIR}) ballerburg-1.0.1/doc/ballerburg.1 0000644 0001750 0001750 00000003131 12145514531 016151 0 ustar thomas thomas .\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH "BALLERBURG" "1" "2011-06-25" "Ballerburg SDL" "" .\" Please adjust this date whenever revising the manpage. .SH "NAME" ballerburg \- A castle combat game .SH "SYNOPSIS" .B ballerburg .SH "DESCRIPTION" Ballerburg is a castle combat game. Two players (which can be human or computer-controlled) try to destroy the opponent's castle with their cannons. .PP There are two ways to win the game: Either by directly hitting the opponents king with a cannonball, or by destroying enough of the opponents commodities so that the king capitulates automatically. .SH COPYRIGHT Copyright (C) 1987, 1989 Eckhard Kruse .br Copyright (C) 2010, 2011 Thomas Huth .PP This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. .PP This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. .PP You should have received a copy of the GNU General Public License along with this program. If not, see=max_rund )
{
static int h[2];
for (n=0;n<2;n++)
{
h[n]=ge[n]+pu[n]*p[4]/30+ku[n]*p[5]/2+(wx[n]>-1)*p[3]+vo[n]*4;
for (i=0;i<5;i++) if ( ft[n][i].x>-1 ) h[n]+=p[1];
for (i=0;i<10;i++) if ( ka[n][i].x>-1 ) h[n]+=p[2];
}
end=65+(h[1]