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
Ingo Ruhnke [Mon, 14 Jun 2004 21:39:58 +0000 (21:39 +0000)]
- fixed bounce code a bit, should now be useable, bounce high might still need tuning
SVN-Revision: 1487
Ingo Ruhnke [Mon, 14 Jun 2004 18:34:25 +0000 (18:34 +0000)]
- added jumping from badguys (hold jump pressed while jumping on one)
SVN-Revision: 1486
Ingo Ruhnke [Mon, 14 Jun 2004 18:10:37 +0000 (18:10 +0000)]
- fixed indention and some variables that crossed switch-statements and lead to warnings
SVN-Revision: 1485
Ingo Ruhnke [Sun, 13 Jun 2004 22:42:13 +0000 (22:42 +0000)]
- fixed argument-shadowing issue 'this->w vs w'
SVN-Revision: 1484
Duong-Khang Nguyen [Sun, 13 Jun 2004 22:24:06 +0000 (22:24 +0000)]
removed obsolete AM_CONFIG_HEADER
SVN-Revision: 1483
Ingo Ruhnke [Sun, 13 Jun 2004 22:05:22 +0000 (22:05 +0000)]
- fixed configure.ac's AM_CONFIG_HEADER issue
SVN-Revision: 1482
Ingo Ruhnke [Sun, 13 Jun 2004 21:57:08 +0000 (21:57 +0000)]
dummy makefile to ease compilation under emacs a bit
SVN-Revision: 1481
Duong-Khang Nguyen [Sun, 13 Jun 2004 21:48:16 +0000 (21:48 +0000)]
added CONFIG_HEADER and fixed minorest bugs :)
SVN-Revision: 1480
Ingo Ruhnke [Sun, 13 Jun 2004 18:31:37 +0000 (18:31 +0000)]
- some code to figure out the internal format for opengl mode, makes 16bit color mode look much better
SVN-Revision: 1479
Benjamin P. Jung [Sun, 13 Jun 2004 17:56:43 +0000 (17:56 +0000)]
- Ooops! After having b0rked supertux.stgt: fixed it again.
SVN-Revision: 1478
Ingo Ruhnke [Sun, 13 Jun 2004 17:54:28 +0000 (17:54 +0000)]
- read gravity has real, instead of int
SVN-Revision: 1477
Benjamin P. Jung [Sun, 13 Jun 2004 17:50:26 +0000 (17:50 +0000)]
*** empty log message ***
SVN-Revision: 1476
Benjamin P. Jung [Sun, 13 Jun 2004 17:47:17 +0000 (17:47 +0000)]
- Added jungle12-{1..4}.png
SVN-Revision: 1475
Benjamin P. Jung [Sun, 13 Jun 2004 17:40:41 +0000 (17:40 +0000)]
- Added a 2nd trampoline (to be used as a non carryable, thus having 'fixed' position)
SVN-Revision: 1474
Marek Moeckel [Sat, 12 Jun 2004 21:13:34 +0000 (21:13 +0000)]
Improved (?) ice bullet physics
Fixed design bug in level 11: tux could jump over the ending sequence which then wouldn't be played - code should be changed to generally prevent that from happening
SVN-Revision: 1473
Ricardo Cruz [Sat, 12 Jun 2004 16:07:12 +0000 (16:07 +0000)]
Optimized gradient when top color is the same as the bottom one.
SVN-Revision: 1472
Ricardo Cruz [Sat, 12 Jun 2004 15:48:50 +0000 (15:48 +0000)]
Fixed the scrolling issue. Forgot that the DrawingContext used by gradient was global and so keep the translation point with the scrolling.
Gradient caching should work just fine now.
SVN-Revision: 1471
Ricardo Cruz [Sat, 12 Jun 2004 15:42:24 +0000 (15:42 +0000)]
Passed color mask from screen SDL_Surface to the gradients cache one. This fixes the slowness.
Still, there are problems when scrolling. This looks like some background issue, but dunno where.
SVN-Revision: 1470
Marek Moeckel [Fri, 11 Jun 2004 22:55:56 +0000 (22:55 +0000)]
Added new music - a remix of the fortress tune we can use for boss levels in world 2.
It's work in progress; I think it sounds strangely bizarre, but somehow cool.
I'd really appreciate feedback on this one, so please listen in and tell me what you think.
SVN-Revision: 1469
Benjamin P. Jung [Fri, 11 Jun 2004 17:57:09 +0000 (17:57 +0000)]
- added 2 new "temporary jungle" tiles and changed jungle{1..3}.png
SVN-Revision: 1468
Ricardo Cruz [Thu, 10 Jun 2004 18:28:11 +0000 (18:28 +0000)]
Fixed translation.
SVN-Revision: 1467
Benjamin P. Jung [Thu, 10 Jun 2004 18:14:42 +0000 (18:14 +0000)]
- fixed the size of jungle2.png and jungle3.png (it's now 32*32px as supposed to!)
SVN-Revision: 1466
Benjamin P. Jung [Thu, 10 Jun 2004 17:58:09 +0000 (17:58 +0000)]
- Added (temporary) jungle tiles
SVN-Revision: 1465
Marek Moeckel [Thu, 10 Jun 2004 16:03:17 +0000 (16:03 +0000)]
Door animation implemented - doors now open when activated
It still has bugs and it's coded rather dirty. Someone please have a look at it - see door.cpp for details.
SVN-Revision: 1464
Ricardo Cruz [Thu, 10 Jun 2004 15:50:01 +0000 (15:50 +0000)]
Ignore the gradient Surface (cache) when in OpenGL (as asked by Ryan).
SVN-Revision: 1463
Ricardo Cruz [Thu, 10 Jun 2004 14:09:49 +0000 (14:09 +0000)]
This is an implementation that creates a gradient Surface, in order to speed up the gradient drawing.
But it is working even slower in SDL, and doesn't work at all in OpenGL.
Just committed, in the hope that someone finds the problem.
SVN-Revision: 1462
Ricardo Cruz [Thu, 10 Jun 2004 13:54:20 +0000 (13:54 +0000)]
Tweaked pause level name text.
Would be neat if the draw_text() at DrawingContext would allow formatted text. Would just need a parser, and would avoid all these hacks.
SVN-Revision: 1461
Ryan Flegel [Wed, 9 Jun 2004 21:36:03 +0000 (21:36 +0000)]
- updated es.po
SVN-Revision: 1460
Ryan Flegel [Wed, 9 Jun 2004 19:56:00 +0000 (19:56 +0000)]
- fixed memory leak
SVN-Revision: 1459
Ryan Flegel [Wed, 9 Jun 2004 19:15:22 +0000 (19:15 +0000)]
- fixed memory leak
SVN-Revision: 1458
Ricardo Cruz [Wed, 9 Jun 2004 17:32:49 +0000 (17:32 +0000)]
Added level's name when in pause.
SVN-Revision: 1457
Marek Moeckel [Wed, 9 Jun 2004 17:04:13 +0000 (17:04 +0000)]
Improved the door tile (see test/level11 for demo)
added an animated door (sprite name is "openingdoor"), needs to be added to the code
SVN-Revision: 1456
Ricardo Cruz [Wed, 9 Jun 2004 11:41:50 +0000 (11:41 +0000)]
Fixed aligment of Coins with Lives.
SVN-Revision: 1455
Ingo Ruhnke [Wed, 9 Jun 2004 11:00:43 +0000 (11:00 +0000)]
fixed underline
SVN-Revision: 1454
Ryan Flegel [Wed, 9 Jun 2004 05:23:20 +0000 (05:23 +0000)]
- did some C++ifying. let's try to follow suit :)
SVN-Revision: 1453
Ryan Flegel [Wed, 9 Jun 2004 04:43:15 +0000 (04:43 +0000)]
- just doing some C++ifying
SVN-Revision: 1452
Ryan Flegel [Wed, 9 Jun 2004 03:43:03 +0000 (03:43 +0000)]
- removed SDL_Flip() line.. was causing a crash on exit
SVN-Revision: 1451
Ryan Flegel [Wed, 9 Jun 2004 02:47:55 +0000 (02:47 +0000)]
- fixed some memory leaks
SVN-Revision: 1450
Ricardo Cruz [Tue, 8 Jun 2004 22:21:11 +0000 (22:21 +0000)]
Replaced uint32_t by Uint32. Has to be done, since *BSD do not ship with stdint.h.
Please, remove stdint.h checking from the automake.
SVN-Revision: 1449
Ryan Flegel [Tue, 8 Jun 2004 22:15:31 +0000 (22:15 +0000)]
- removed background from gradients test level
SVN-Revision: 1448
Ryan Flegel [Tue, 8 Jun 2004 22:08:41 +0000 (22:08 +0000)]
- updated TODO
SVN-Revision: 1447
Ryan Flegel [Tue, 8 Jun 2004 22:07:59 +0000 (22:07 +0000)]
- fixed powerup bumping
SVN-Revision: 1446