Tobias Gläßer [Sun, 25 Jul 2004 19:03:36 +0000 (19:03 +0000)]
- Major changes in Setup-API.
- Moved all sound handling into SoundManager,
which became a singleton.
SVN-Revision: 1620
Tobias Gläßer [Sat, 24 Jul 2004 11:50:09 +0000 (11:50 +0000)]
SuperTux lib became a bit more independend of SupeTux.
SVN-Revision: 1619
Tobias Gläßer [Thu, 22 Jul 2004 19:07:51 +0000 (19:07 +0000)]
Had to change the #includes of dependend headers from "dir/header.h" to "../dir/header.h", so those 'dependencies' work correctly, if you want to use those headers from $(includedir) so to speak in a 3rd party projects.
SVN-Revision: 1618
Tobias Gläßer [Thu, 22 Jul 2004 19:04:45 +0000 (19:04 +0000)]
Headers should now be correctly handled and get installed in $(includedir)/supertux/ .
SVN-Revision: 1617
Tobias Gläßer [Wed, 21 Jul 2004 19:40:09 +0000 (19:40 +0000)]
Fixed typo.
SVN-Revision: 1612
Tobias Gläßer [Wed, 21 Jul 2004 16:51:53 +0000 (16:51 +0000)]
The SuperTux library features a SuperTux namespace now.
+ minor Bugfixes and cleanups
SVN-Revision: 1611
Tobias Gläßer [Wed, 21 Jul 2004 11:56:48 +0000 (11:56 +0000)]
Introduction of SuperTux namespace.
Added comments to Button and ButtonPanel classes.
SVN-Revision: 1610
Ryan Flegel [Tue, 20 Jul 2004 22:55:50 +0000 (22:55 +0000)]
- fixed compile error
SVN-Revision: 1609
Tobias Gläßer [Tue, 20 Jul 2004 20:33:14 +0000 (20:33 +0000)]
fixed type :) yeah, the really important commit today! :)
SVN-Revision: 1608
Tobias Gläßer [Tue, 20 Jul 2004 20:28:28 +0000 (20:28 +0000)]
Improved comments.
SVN-Revision: 1607
Tobias Gläßer [Tue, 20 Jul 2004 20:24:47 +0000 (20:24 +0000)]
Added comment.
SVN-Revision: 1606
Tobias Gläßer [Tue, 20 Jul 2004 20:21:16 +0000 (20:21 +0000)]
little comments improvements
SVN-Revision: 1605
Tobias Gläßer [Tue, 20 Jul 2004 20:18:18 +0000 (20:18 +0000)]
added comments
SVN-Revision: 1604
Tobias Gläßer [Tue, 20 Jul 2004 20:05:34 +0000 (20:05 +0000)]
added comments
SVN-Revision: 1603
Tobias Gläßer [Tue, 20 Jul 2004 19:41:29 +0000 (19:41 +0000)]
added comments
SVN-Revision: 1602
Tobias Gläßer [Tue, 20 Jul 2004 18:07:30 +0000 (18:07 +0000)]
and here comes the shrinked ;) Makefile.am
SVN-Revision: 1601
Tobias Gläßer [Tue, 20 Jul 2004 18:06:14 +0000 (18:06 +0000)]
one forgotten #include change
SVN-Revision: 1600
Tobias Gläßer [Tue, 20 Jul 2004 18:04:49 +0000 (18:04 +0000)]
mainly changed #includes to work with the new SuperTux library
SVN-Revision: 1599
Tobias Gläßer [Tue, 20 Jul 2004 18:02:58 +0000 (18:02 +0000)]
forgot removing it
SVN-Revision: 1598
Tobias Gläßer [Tue, 20 Jul 2004 18:02:00 +0000 (18:02 +0000)]
these two files are needed for libtool support
SVN-Revision: 1597
Tobias Gläßer [Tue, 20 Jul 2004 18:00:43 +0000 (18:00 +0000)]
update for new SuperTux library
SVN-Revision: 1596
Tobias Gläßer [Tue, 20 Jul 2004 17:59:37 +0000 (17:59 +0000)]
misc stuff goes here. It is at least temporarly needed to realize the SuperTux library.
SVN-Revision: 1595
Tobias Gläßer [Tue, 20 Jul 2004 17:58:34 +0000 (17:58 +0000)]
removed them in favour of their new live in the SuperTux library
SVN-Revision: 1594
Tobias Gläßer [Tue, 20 Jul 2004 17:53:43 +0000 (17:53 +0000)]
removed in favor of the new library
SVN-Revision: 1593
Tobias Gläßer [Tue, 20 Jul 2004 17:51:39 +0000 (17:51 +0000)]
Generated SuperTux libtool library containing more general source, that could prove useful for other applications/games.
Caution: It's not yet SuperTux independed, more work on this will follow, that's just the first step.
The file structure isn't fixed, better ideas will surely find there way in it!
SVN-Revision: 1592
Ricardo Cruz [Tue, 20 Jul 2004 13:18:39 +0000 (13:18 +0000)]
Norwegian Nynorsk translation by Karl Ove Hufthammer!
SVN-Revision: 1591
Ricardo Cruz [Sat, 17 Jul 2004 16:20:33 +0000 (16:20 +0000)]
Just changed the name of a worldmap flag.
SVN-Revision: 1586
Ricardo Cruz [Sat, 17 Jul 2004 13:14:20 +0000 (13:14 +0000)]
Optmized code for reading level's name. Instead of loading the all levels, just parses now the title.
Both worldmap loading and contrib menu generating were optmized.
I couldn't time the worldmap loading speedup, since it was already instantaneously in my machine. But the contrib menu takes less than 1 sec versus the 4 seconds (and a few ms) of the old code.
SVN-Revision: 1585
Ricardo Cruz [Fri, 16 Jul 2004 19:39:00 +0000 (19:39 +0000)]
French translation by Frederic Rodrigo!
SVN-Revision: 1584
Ricardo Cruz [Fri, 16 Jul 2004 19:24:25 +0000 (19:24 +0000)]
Converted map to use special-tile .
SVN-Revision: 1583
Ricardo Cruz [Fri, 16 Jul 2004 19:23:02 +0000 (19:23 +0000)]
Added music and specified to open CREDITS after this.
SVN-Revision: 1582
Ricardo Cruz [Fri, 16 Jul 2004 19:22:26 +0000 (19:22 +0000)]
Implemented a new special-tile field that should replaced the depricated level field in world maps.
Also extended display_text_file().
special-tile can have the following flags:
[integer] x / y - necessary to say where the tile is located
[string] extro-filename - read the given file *
[integer] swap-x / swap-y - say coordinates for swapping *
[string] map-message - show a message in the world map viewer
[string] goto-world - change the world to the given one *
[boolean] flip-level - flip vertically the level (of course, only works when there is a level)
[boolean] exit-game - quit game *
[string] level - feed a level to this tile
* - if there is a level, open it only if the level is successful
SVN-Revision: 1581
Ricardo Cruz [Fri, 16 Jul 2004 19:15:00 +0000 (19:15 +0000)]
Read the first 5 chars, not the all string of LANG.
SVN-Revision: 1580
Ricardo Cruz [Fri, 16 Jul 2004 19:14:14 +0000 (19:14 +0000)]
Removed note for the using of UTF-8.
Lisp parser has problems with it.
SVN-Revision: 1579
Ricardo Cruz [Thu, 15 Jul 2004 19:57:53 +0000 (19:57 +0000)]
Ooops, looks like i removed a level entry...
SVN-Revision: 1578
Ricardo Cruz [Thu, 15 Jul 2004 19:50:54 +0000 (19:50 +0000)]
Made a note for translators to use charset UTF-8.
SVN-Revision: 1577
Ricardo Cruz [Thu, 15 Jul 2004 19:47:33 +0000 (19:47 +0000)]
Spanish translation by DemoNight!
SVN-Revision: 1576
Marek Moeckel [Thu, 15 Jul 2004 16:30:47 +0000 (16:30 +0000)]
All 26 levels should now be ready for 800x600.
SVN-Revision: 1575
Ricardo Cruz [Wed, 14 Jul 2004 09:46:19 +0000 (09:46 +0000)]
Merged the two worldmap and level subset contrib menu.
In the future, it would be a good idea to make level subset dealing with both levels and worldmaps.
SVN-Revision: 1573
Tobias Gläßer [Tue, 13 Jul 2004 19:11:04 +0000 (19:11 +0000)]
Fixed gcc3.4.x compilation.
SVN-Revision: 1572
Ricardo Cruz [Tue, 13 Jul 2004 10:59:16 +0000 (10:59 +0000)]
Added poEdit to po editors. Thanks to Karl Ove Hufthammer.
SVN-Revision: 1571
Marek Moeckel [Tue, 13 Jul 2004 07:47:30 +0000 (07:47 +0000)]
Fixed some design bugs in some of the contributed bonus levels
SVN-Revision: 1570
Ricardo Cruz [Mon, 12 Jul 2004 22:04:26 +0000 (22:04 +0000)]
Ooops, forgot to change something after testing.
SVN-Revision: 1569
Ricardo Cruz [Mon, 12 Jul 2004 22:03:18 +0000 (22:03 +0000)]
Damn strlen() crashes when NULL is passed. Fixed.
SVN-Revision: 1568
Ricardo Cruz [Sat, 10 Jul 2004 21:01:09 +0000 (21:01 +0000)]
Added place idea to TODO.
SVN-Revision: 1566
Ricardo Cruz [Sat, 10 Jul 2004 14:22:59 +0000 (14:22 +0000)]
Replaced USE_ALPHA/IGNORE_ALPHA by booleans.
Should have been done long ago.
SVN-Revision: 1565
Ricardo Cruz [Sat, 10 Jul 2004 14:07:33 +0000 (14:07 +0000)]
Added background image.
SVN-Revision: 1564
Ricardo Cruz [Sat, 10 Jul 2004 14:07:04 +0000 (14:07 +0000)]
display_text_file() now reads the background image from the file.
SVN-Revision: 1563
Marek Moeckel [Sat, 10 Jul 2004 11:09:43 +0000 (11:09 +0000)]
Fixed some bugs I just created in the worldmaps :)
SVN-Revision: 1562
Marek Moeckel [Sat, 10 Jul 2004 10:59:00 +0000 (10:59 +0000)]
Made Tux' starting position on the world map settable in the stwm file
(In Worldmap class, Tux is initialized at the end of load_worldmap, I hope this doesn't cause trouble elsewhere)
Updated levels and worldmap accordingly
SVN-Revision: 1561
Ricardo Cruz [Fri, 9 Jul 2004 23:26:48 +0000 (23:26 +0000)]
Updated and commented the TODO.
SVN-Revision: 1560
Ricardo Cruz [Fri, 9 Jul 2004 22:16:50 +0000 (22:16 +0000)]
Fixed crash when LANG system's variable is not defined.
SVN-Revision: 1559
Marek Moeckel [Fri, 9 Jul 2004 18:53:11 +0000 (18:53 +0000)]
added new music, a second forest tune
sounds very similar to the first one, because i used the same instruments.
the tune might need some more work, so i guess i'll change that some time
happy listening :)
SVN-Revision: 1558
Ricardo Cruz [Fri, 9 Jul 2004 18:18:45 +0000 (18:18 +0000)]
Added title.
SVN-Revision: 1557
Ricardo Cruz [Fri, 9 Jul 2004 18:18:11 +0000 (18:18 +0000)]
Shows map's title, not filename, in menu.
SVN-Revision: 1556
Ricardo Cruz [Fri, 9 Jul 2004 14:43:44 +0000 (14:43 +0000)]
Added worldmap choosing from command-line and menu.
Contributed maps must be in data/levels/worldmap, included the ones run from the command-line.
It is possible to feed maps with absolute path, but it is just a hack that converts them to relative paths to the worldmap folder. I did this, in order to make it possible for someone to add a mime-type for Konqueror as 'supertux --worldmap' and press a .stwt file from worldmap dir.
About the Contrib Worlds menu, we might consider just making one Contrib menu, and make levels from different folders to create dynamically a map.
Till that day, let's keep this menu.
SVN-Revision: 1555
Marek Moeckel [Fri, 9 Jul 2004 12:04:41 +0000 (12:04 +0000)]
Fixed an "invalid tile" bug in one of the bonus levels
SVN-Revision: 1554
Ricardo Cruz [Fri, 9 Jul 2004 11:07:41 +0000 (11:07 +0000)]
Ooops, looks like I removed a line.
SVN-Revision: 1553
Ricardo Cruz [Fri, 9 Jul 2004 10:58:41 +0000 (10:58 +0000)]
Updated LEVELDESIGN to reflect the new level format.
SVN-Revision: 1552
Ricardo Cruz [Fri, 9 Jul 2004 10:40:21 +0000 (10:40 +0000)]
Resized extro.jpg to 800x600, otherwise end screen has problems.
Kept the other as extro640.jpg.
SVN-Revision: 1551
Ricardo Cruz [Fri, 9 Jul 2004 10:38:58 +0000 (10:38 +0000)]
Fixed aborting behavior.
SVN-Revision: 1550
Ricardo Cruz [Thu, 8 Jul 2004 15:05:01 +0000 (15:05 +0000)]
Added a couple of lines to TRANSLATORS.
SVN-Revision: 1549
Ricardo Cruz [Thu, 8 Jul 2004 11:41:03 +0000 (11:41 +0000)]
Tranlated test subset.
SVN-Revision: 1548
Ricardo Cruz [Thu, 8 Jul 2004 11:40:40 +0000 (11:40 +0000)]
Let title and description of subsets to be translatable.
By the way, is description field really needed? Why not just get rid of it?
SVN-Revision: 1547
Ricardo Cruz [Thu, 8 Jul 2004 10:31:27 +0000 (10:31 +0000)]
Changed Marek's translations de_DE to de.
German is country independent, right?
SVN-Revision: 1546
Ricardo Cruz [Thu, 8 Jul 2004 10:11:59 +0000 (10:11 +0000)]
Just down-cased a word.
SVN-Revision: 1545
Ricardo Cruz [Thu, 8 Jul 2004 10:11:08 +0000 (10:11 +0000)]
I18N:
- Also check without country code. ie. Germany is the same for German and Austria.
- Only check for translation when the code asks for. (translatable flag)
SVN-Revision: 1544
Marek Moeckel [Thu, 8 Jul 2004 08:35:14 +0000 (08:35 +0000)]
Translated level titles to German
Some more work on the bonus castle
SVN-Revision: 1543
Ricardo Cruz [Wed, 7 Jul 2004 23:45:47 +0000 (23:45 +0000)]
Translated Icyland world name to Portuguese (European).
SVN-Revision: 1542
Ricardo Cruz [Wed, 7 Jul 2004 23:44:54 +0000 (23:44 +0000)]
Translated level's titles to Portuguese (European).
SVN-Revision: 1541
Ricardo Cruz [Wed, 7 Jul 2004 22:48:48 +0000 (22:48 +0000)]
Just translated level's title of the first 4 levels.
SVN-Revision: 1540
Ricardo Cruz [Wed, 7 Jul 2004 22:47:52 +0000 (22:47 +0000)]
Formatted files in the right order.
Included European Portuguese translation.
SVN-Revision: 1539
Ricardo Cruz [Wed, 7 Jul 2004 22:47:06 +0000 (22:47 +0000)]
Fixed the translating of the shown text files.
SVN-Revision: 1538
Ricardo Cruz [Wed, 7 Jul 2004 19:19:19 +0000 (19:19 +0000)]
Added support for data files internationalization by a simple 3 lines code in lispreader's read_string().
To translate a level's title to European Portuguese, I would look at:
(title "Hello World!")
and add:
(title-pt_PT "Ol� Mundo!")
Also, made display_text_file() using lispreader (to make it i18n too). Unfortunately, there is a crash of lisp_reader in my system (not related), so I wasn't able to give it a try.
data/*.txt files also need updating to work. Else, it should just skip it, without crashing.
SVN-Revision: 1537
Ricardo Cruz [Wed, 7 Jul 2004 17:56:47 +0000 (17:56 +0000)]
Changed --debug-mode for --debug.
SVN-Revision: 1536
Ricardo Cruz [Wed, 7 Jul 2004 17:56:01 +0000 (17:56 +0000)]
Instead of setting the level to be flipped from the level file, it is now passed through the world.
This way we can make a level designed to be played the two ways, and then the put them in the world map one after the other.
I have played the castle level flipped, and I've to say it is soo damn cool! It is like you were playing a completely different level.
It is also possible to set levels to be flipped by using --debug (this will be temporary).
SVN-Revision: 1535
Marek Moeckel [Wed, 7 Jul 2004 17:39:14 +0000 (17:39 +0000)]
Started work on the bonus island castle
It's not yet finished, and it's _huge_ :)
(It uses vertical and full horizontal scrolling, so it's not playable with 0.1.1)
SVN-Revision: 1534
Ricardo Cruz [Wed, 7 Jul 2004 15:01:46 +0000 (15:01 +0000)]
Test level for the vertical flip. Castle level (26).
SVN-Revision: 1533
Ricardo Cruz [Wed, 7 Jul 2004 11:39:35 +0000 (11:39 +0000)]
Added vertical flipping to levels!
To enable it, add to the level file (flip #t) .
SVN-Revision: 1532
Marek Moeckel [Tue, 6 Jul 2004 22:42:29 +0000 (22:42 +0000)]
Added (experimental) world map for the bonus pack
SVN-Revision: 1531
Marek Moeckel [Tue, 6 Jul 2004 20:28:45 +0000 (20:28 +0000)]
Found some more contrib levels I missed before
SVN-Revision: 1530
Marek Moeckel [Tue, 6 Jul 2004 20:01:09 +0000 (20:01 +0000)]
Removed obsolete level directories
Added the bonus pack directory, containing 12 levels for the bonus level pack
SVN-Revision: 1529
Ricardo Cruz [Fri, 2 Jul 2004 15:14:48 +0000 (15:14 +0000)]
Allow creation of Tilemap and Door objects by feeding them with info.
SVN-Revision: 1528
Matthias Braun [Fri, 2 Jul 2004 15:12:48 +0000 (15:12 +0000)]
save spawnpoints
SVN-Revision: 1527
Ricardo Cruz [Thu, 1 Jul 2004 15:25:02 +0000 (15:25 +0000)]
Found the evil bug that was causing the tilemap to not differ interactive, foreground or background tiles, in the new level format.
It was really simple: there were two variables with the same name! A local string in parse() and an integer in the Tilemap class, both called layer.
Dunno why g++ didn't report any warning...
I think spawn points are not being saved. Matze, could you do that? :)
SVN-Revision: 1526
Ricardo Cruz [Thu, 1 Jul 2004 13:39:26 +0000 (13:39 +0000)]
Changes:
- testing for existing sector in badguy;
- made flying object and trampoline's gfx accessible;
- added sprite and badguys surface pointer return func.
SVN-Revision: 1525
Ricardo Cruz [Tue, 29 Jun 2004 17:47:36 +0000 (17:47 +0000)]
Added hidden state to mouse cursor.
Also forgot to free gray text when added it. Shame on me! :)
SVN-Revision: 1522
Ryan Flegel [Tue, 29 Jun 2004 17:31:30 +0000 (17:31 +0000)]
- added specfile from Peter Astakhov
SVN-Revision: 1521
Ricardo Cruz [Tue, 29 Jun 2004 13:00:43 +0000 (13:00 +0000)]
Changes:
- Font now supports drawing effect;
- Level saving now works. Still has flaws:
o Spawn points are not saved;
o Tilemaps do not know differ foreground/background. Matze, Can you have a look at this?
- Other minor stuff.
SVN-Revision: 1520
Matthias Braun [Tue, 29 Jun 2004 12:12:24 +0000 (12:12 +0000)]
use a more efficient datastructure in lisp_free
SVN-Revision: 1519
Matthias Braun [Mon, 28 Jun 2004 22:01:29 +0000 (22:01 +0000)]
changed lisp_free to an iterative algorithm
SVN-Revision: 1517
Ricardo Cruz [Mon, 28 Jun 2004 17:12:34 +0000 (17:12 +0000)]
When a menu is disabled, it now uses Benjamin's gray fonts!
SVN-Revision: 1516
Benjamin P. Jung [Mon, 28 Jun 2004 12:43:02 +0000 (12:43 +0000)]
Added a gray font (for disabled menu entries).
SVN-Revision: 1515
Ricardo Cruz [Mon, 28 Jun 2004 11:30:27 +0000 (11:30 +0000)]
A few changes to make the code ready for the new level editor.
Major changes:
- Level's save() works. Still doesn't save the game properly.
- added a set_drawing_effect() for DrawingContext. Will apply it to the following drawings. Works with pop/push_transform.
SVN-Revision: 1514
Ricardo Cruz [Fri, 25 Jun 2004 11:54:37 +0000 (11:54 +0000)]
Moved drawing line code from drawing_context back to screen.
The SDL code has the following issues:
- it writes right away to the screen. Not waiting for the updating screen call.
- it is extremly slow, since our screen is a hardware surface.
Would be neat to have a draw_line func in drawing_context, but looks like it will have to wait.
SVN-Revision: 1513
Ricardo Cruz [Wed, 23 Jun 2004 10:18:00 +0000 (10:18 +0000)]
Moved line drawing from screen to drawing_context.
SVN-Revision: 1512
Ricardo Cruz [Wed, 23 Jun 2004 10:17:25 +0000 (10:17 +0000)]
Missing include. Was only included, cause it was on leveleditor.h.
SVN-Revision: 1511
Ricardo Cruz [Tue, 22 Jun 2004 12:43:42 +0000 (12:43 +0000)]
Should fix the joystick bug, when the user changes joystick port or something.
SVN-Revision: 1510
Ricardo Cruz [Tue, 22 Jun 2004 12:35:23 +0000 (12:35 +0000)]
Added two slopes to test level 7.
SVN-Revision: 1509
Ricardo Cruz [Tue, 22 Jun 2004 12:34:55 +0000 (12:34 +0000)]
Added slope graphics.
SVN-Revision: 1508