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
Ricardo Cruz [Tue, 22 Jun 2004 12:34:14 +0000 (12:34 +0000)]
Added slope tiles.
Doesn't work that well, maybe they shouldn't have the solid attribute.
SVN-Revision: 1507
Ricardo Cruz [Tue, 22 Jun 2004 12:20:22 +0000 (12:20 +0000)]
Don't show "by", in case the author name is blank.
SVN-Revision: 1506
Ryan Flegel [Mon, 21 Jun 2004 21:21:01 +0000 (21:21 +0000)]
- 'typo' fix
SVN-Revision: 1505
Ricardo Cruz [Sun, 20 Jun 2004 17:43:26 +0000 (17:43 +0000)]
Activate key was not been saved.
SVN-Revision: 1504
Ricardo Cruz [Sun, 20 Jun 2004 14:50:21 +0000 (14:50 +0000)]
A couple of fixes on Door class:
- door images were being stored for each object (IMO door game object, should be putted together with the others. This way, wouldn't be needed to add stuff into resources.cpp directly, but to load_objects_gfx() func);
- animation was not working properly (could be added to Sprite one time animations).
SVN-Revision: 1503
Ingo Ruhnke [Wed, 16 Jun 2004 00:40:42 +0000 (00:40 +0000)]
- moved level subsets into their own file
- changed level subsets so that they do a readdir() instead of iterating ovre level1, level2,.. until error, this should also allow abitary level file names
SVN-Revision: 1502
Ingo Ruhnke [Tue, 15 Jun 2004 22:56:42 +0000 (22:56 +0000)]
- moved levelsubset into an own file
SVN-Revision: 1501
Ingo Ruhnke [Tue, 15 Jun 2004 22:38:52 +0000 (22:38 +0000)]
- added option to start in window mode
SVN-Revision: 1500
Ingo Ruhnke [Tue, 15 Jun 2004 16:29:44 +0000 (16:29 +0000)]
- make use of new bgtiles
SVN-Revision: 1499
Ingo Ruhnke [Tue, 15 Jun 2004 16:16:46 +0000 (16:16 +0000)]
- added second paralax tiles
SVN-Revision: 1498
Ingo Ruhnke [Tue, 15 Jun 2004 14:29:32 +0000 (14:29 +0000)]
paralax scrolling test level
SVN-Revision: 1497
Ingo Ruhnke [Tue, 15 Jun 2004 14:28:44 +0000 (14:28 +0000)]
- fixed background tiles
SVN-Revision: 1496
Ingo Ruhnke [Tue, 15 Jun 2004 14:27:34 +0000 (14:27 +0000)]
- quick&dirty fix for paralax scrolling tilemap layers
SVN-Revision: 1495
Marek Moeckel [Tue, 15 Jun 2004 14:21:21 +0000 (14:21 +0000)]
Added Dutch translation file written by Frank van der Loo
SVN-Revision: 1494
Ingo Ruhnke [Tue, 15 Jun 2004 12:20:53 +0000 (12:20 +0000)]
- added background tiles for snow
SVN-Revision: 1493
Ingo Ruhnke [Tue, 15 Jun 2004 12:18:59 +0000 (12:18 +0000)]
- change subimage loading syntax to be more usefull, ie. now its (images "somefile" (region "somefile" 0 0 32 32") "someotherfile")
SVN-Revision: 1492
Ingo Ruhnke [Mon, 14 Jun 2004 22:56:17 +0000 (22:56 +0000)]
- moved gradient fix over into surface.h, removed texture.h
SVN-Revision: 1491
Ingo Ruhnke [Mon, 14 Jun 2004 22:45:24 +0000 (22:45 +0000)]
- moved tilemanager into its own class
- renamed texture.h to surface.h
SVN-Revision: 1490
Ryan Flegel [Mon, 14 Jun 2004 22:13:50 +0000 (22:13 +0000)]
- fixed gradient crash bug
SVN-Revision: 1489
Ingo Ruhnke [Mon, 14 Jun 2004 22:08:01 +0000 (22:08 +0000)]
- fixed the bouncybrick artifact bug
- replaced plain tile-id integer with a hopefully lightwight struct
- replaced a few Tile* with Tile& to make it more clear that Tilemap::get() always returns a valid tile
- added support for (grid x y width height) for the .stgt file format, can be used to load multiple tiles from a single image
SVN-Revision: 1488