| 1 |
#!/usr/bin/perl |
| 2 |
# **************************************************************************** |
| 3 |
# |
| 4 |
# Frozen-Bubble Level Editor |
| 5 |
# |
| 6 |
# Copyright (c) 2002 - 2004 Kim Joham and David Joham <[k|d][email protected]> |
| 7 |
# |
| 8 |
# This program is free software; you can redistribute it and/or modify |
| 9 |
# it under the terms of the GNU General Public License version 2, as |
| 10 |
# published by the Free Software Foundation. |
| 11 |
# |
| 12 |
# This program is distributed in the hope that it will be useful, |
| 13 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 |
# GNU General Public License for more details. |
| 16 |
# |
| 17 |
# You should have received a copy of the GNU General Public License |
| 18 |
# along with this program; if not, write to the Free Software |
| 19 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 20 |
# |
| 21 |
# |
| 22 |
# ***************************************************************************** |
| 23 |
# |
| 24 |
# Design & Programming by Kim Joham and David Joham, October 2002 to January 2003 |
| 25 |
# Email - [k|d]joham at yahoo.com |
| 26 |
# |
| 27 |
# ***************************************************************************** |
| 28 |
|
| 29 |
use SDLx::App; |
| 30 |
use Games::FrozenBubble::Config; |
| 31 |
use Games::FrozenBubble::Stuff; |
| 32 |
use Games::FrozenBubble::LevelEditor; |
| 33 |
|
| 34 |
$FPATH = $Games::FrozenBubble::Config::FPATH; |
| 35 |
$FLPATH = $Games::FrozenBubble::Config::FLPATH; |
| 36 |
|
| 37 |
# command line options modified from frozen-bubble code |
| 38 |
local $_ = "@ARGV"; |
| 39 |
|
| 40 |
/-h/ and die 'Usage: [OPTION]... |
| 41 |
-h, --help display this help screen |
| 42 |
-cb, --colourblind use bubbles for colourblind people |
| 43 |
-ls<filename>, |
| 44 |
--levelset<filename> directly start with the specified levelset name |
| 45 |
-l<#n>, --level<#n> directly start the n-th level |
| 46 |
-fs, --fullscreen start in fullscreen mode |
| 47 |
'; |
| 48 |
|
| 49 |
/-cb/ || /-co/ and $colourblind = 1; |
| 50 |
$FBLE::levelset_name = /-ls\s*(\S+)/ || /-levelset\s*(\S+)/ ? $1 : 'default-levelset'; |
| 51 |
$FBLE::curr_level = /-l\s*(\d+)/ || /-level\s*(\d+)/ ? $1 : 1; |
| 52 |
$FBLE::command_line_fullscreen = to_bool(/-fs/ || /-fullscreen/); |
| 53 |
|
| 54 |
my $app = SDLx::App->new(icon => "$FPATH/gfx/pinguins/window_icon_penguin.png", |
| 55 |
title => 'frozen-bubble level editor', |
| 56 |
width => 640, height => 480); |
| 57 |
|
| 58 |
Games::FrozenBubble::LevelEditor::init_setup('stand-alone', $app->surface()); |
| 59 |
Games::FrozenBubble::LevelEditor::handle_events(); |
| 60 |
|
| 61 |
__END__ |
| 62 |
|
| 63 |
=encoding UTF-8 |
| 64 |
|
| 65 |
=head1 NAME |
| 66 |
|
| 67 |
frozen-bubble-editor - a level editor for Frozen Bubble |
| 68 |
|
| 69 |
=head1 SYNOPSIS |
| 70 |
|
| 71 |
frozen-bubble-editor [OPTION]... |
| 72 |
|
| 73 |
=head1 DESCRIPTION |
| 74 |
|
| 75 |
This editor lets you manipulate level-sets, in which you can add, remove |
| 76 |
and modify levels thanks to a mouse-oriented interface (there are also |
| 77 |
many interesting keyboard shortcuts). The interface is very |
| 78 |
straightforward: click on the written planches on the left an right parts |
| 79 |
of the screen to perform the relevant actions, and on the level area to |
| 80 |
change the bubble color; use the "void" bubble (or right-click) to |
| 81 |
remove a bubble. |
| 82 |
|
| 83 |
=head1 OPTIONS |
| 84 |
|
| 85 |
=over |
| 86 |
|
| 87 |
=item B<-h>, B<--help> |
| 88 |
|
| 89 |
show command-line options summary |
| 90 |
|
| 91 |
=item B<-fs>, B<--fullscreen> |
| 92 |
|
| 93 |
start in fullscreen mode |
| 94 |
|
| 95 |
=item B<-ls> I<FILENAME>, B<--levelset> I<FILENAME> |
| 96 |
|
| 97 |
directly start with the specified levelset name |
| 98 |
|
| 99 |
=item B<-l> I<NUMB>, B<--level> I<NUMB> |
| 100 |
|
| 101 |
directly start the level number I<NUMB> |
| 102 |
|
| 103 |
=item B<-cb>, B<--colourblind> |
| 104 |
|
| 105 |
use special bubbles for colourblind people |
| 106 |
|
| 107 |
=back |
| 108 |
|
| 109 |
=head1 KEY SHORTCUTS |
| 110 |
|
| 111 |
The following key shortcuts are available during level edition: |
| 112 |
|
| 113 |
=over |
| 114 |
|
| 115 |
=item B<F1> |
| 116 |
|
| 117 |
displays the help dialog |
| 118 |
|
| 119 |
=item B<p>, B<h>, B<left> |
| 120 |
|
| 121 |
previous level |
| 122 |
|
| 123 |
=item B<n>, B<l> , B<right> |
| 124 |
|
| 125 |
next level |
| 126 |
|
| 127 |
=item B<up> |
| 128 |
|
| 129 |
first level |
| 130 |
|
| 131 |
=item B<down> |
| 132 |
|
| 133 |
last level |
| 134 |
|
| 135 |
=item B<a> |
| 136 |
|
| 137 |
append level |
| 138 |
|
| 139 |
=item B<i> |
| 140 |
|
| 141 |
insert level |
| 142 |
|
| 143 |
=item B<d> |
| 144 |
|
| 145 |
delete level |
| 146 |
|
| 147 |
=item B<]> |
| 148 |
|
| 149 |
move level right |
| 150 |
|
| 151 |
=item B<[> |
| 152 |
|
| 153 |
move level left |
| 154 |
|
| 155 |
=item B<j> |
| 156 |
|
| 157 |
jump to level (after B<j>, enter level number, then B<Return>) |
| 158 |
|
| 159 |
=item B<o> |
| 160 |
|
| 161 |
open levelset |
| 162 |
|
| 163 |
=item B<s> |
| 164 |
|
| 165 |
save levelset |
| 166 |
|
| 167 |
=item B<f> |
| 168 |
|
| 169 |
toggle fullscreen |
| 170 |
|
| 171 |
=item B<q>, B<Escape> |
| 172 |
|
| 173 |
quit |
| 174 |
|
| 175 |
=back |
| 176 |
|
| 177 |
During dialogs, you may use B<Return> to accept and B<Escape> to cancel. |
| 178 |
|
| 179 |
=head1 AUTHOR |
| 180 |
|
| 181 |
Written by Kim Joham and David Joham <[k|d]joham at yahoo.com>. |
| 182 |
Integration work by Guillaume Cottenceau <guillaume.cottenceau at free.fr>. |
| 183 |
This manual page was written by Guillaume Cottenceau. |
| 184 |
|
| 185 |
Visit official homepage: L<http://www.frozen-bubble.org/> |
| 186 |
|
| 187 |
=head1 SEE ALSO |
| 188 |
|
| 189 |
frozen-bubble |
| 190 |
|
| 191 |
=head1 COPYRIGHT |
| 192 |
|
| 193 |
Copyright © 2002, 2003 Kim Joham and David Joham <[k|d]joham at yahoo.com>. |
| 194 |
|
| 195 |
This is Free Software; this software is licensed under the GPL version 2, as published by the Free Software Foundation. |
| 196 |
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |