Ingo Ruhnke [Sun, 3 Aug 2014 04:49:40 +0000 (06:49 +0200)]
Merge branch 'master' of https://code.google.com/p/supertux
Ingo Ruhnke [Sun, 3 Aug 2014 04:42:05 +0000 (06:42 +0200)]
Exit loop when font definition contains more characters then the image has data to avoid crash
Ingo Ruhnke [Sun, 3 Aug 2014 04:01:38 +0000 (06:01 +0200)]
Rolled file back to version from master, due to improper merge
Ingo Ruhnke [Sun, 3 Aug 2014 04:00:20 +0000 (06:00 +0200)]
Fixed compiler warnings
Ingo Ruhnke [Sun, 3 Aug 2014 04:00:02 +0000 (06:00 +0200)]
Replaced old SDL1 surface flags with 0
Ingo Ruhnke [Sun, 3 Aug 2014 03:44:02 +0000 (05:44 +0200)]
Merge branch 'feature/sdl2'
Conflicts:
.gitignore
WHATSNEW.txt
data/fonts/zh-white-big.stf
data/fonts/zh-white.stf
data/images/engine/fonts/zh/shadow.png
data/images/engine/fonts/zh/white.png
data/images/powerups/egg/egg.sprite
data/images/tiles.strf
data/levels/bonus1/az.po
data/levels/bonus1/ne.po
data/levels/bonus1/sv.po
data/levels/bonus2/az.po
data/levels/bonus2/pt_BR.po
data/levels/incubator/az.po
data/levels/incubator/de.po
data/levels/incubator/nn.po
data/levels/incubator/pt_BR.po
data/levels/incubator/ru.po
data/levels/incubator/sv.po
data/levels/incubator/worldmap.stwm
data/levels/world1/ar.po
data/levels/world1/az.po
data/levels/world1/be.po
data/levels/world1/ca.po
data/levels/world1/cmn.po
data/levels/world1/cs.po
data/levels/world1/da.po
data/levels/world1/de.po
data/levels/world1/el.po
data/levels/world1/eo.po
data/levels/world1/es.po
data/levels/world1/et.po
data/levels/world1/fi.po
data/levels/world1/fr.po
data/levels/world1/hi_IN.po
data/levels/world1/hr.po
data/levels/world1/hu.po
data/levels/world1/it.po
data/levels/world1/ja.po
data/levels/world1/lt.po
data/levels/world1/nb.po
data/levels/world1/ne.po
data/levels/world1/nl.po
data/levels/world1/nn.po
data/levels/world1/pl.po
data/levels/world1/pt.po
data/levels/world1/pt_BR.po
data/levels/world1/ro.po
data/levels/world1/ru.po
data/levels/world1/sl.po
data/levels/world1/sv.po
data/levels/world1/tr.po
data/levels/world1/uk.po
data/levels/world1/uz.po
data/levels/world1/vi.po
data/levels/world1/zh_CN.po
data/levels/world1/zh_TW.po
data/levels/world2/az.po
data/levels/world2/cs.po
data/levels/world2/de.po
data/levels/world2/hu.po
data/levels/world2/nn.po
data/levels/world2/pt_BR.po
data/levels/world2/sv.po
data/locale/ar.po
data/locale/az.po
data/locale/be.po
data/locale/ca.po
data/locale/cmn.po
data/locale/cs.po
data/locale/da.po
data/locale/de.po
data/locale/el.po
data/locale/eo.po
data/locale/es.po
data/locale/et.po
data/locale/fi.po
data/locale/fr.po
data/locale/hi_IN.po
data/locale/hr.po
data/locale/hu.po
data/locale/it.po
data/locale/ja.po
data/locale/lt.po
data/locale/nb.po
data/locale/ne.po
data/locale/nl.po
data/locale/nn.po
data/locale/pl.po
data/locale/pt.po
data/locale/pt_BR.po
data/locale/ro.po
data/locale/ru.po
data/locale/sl.po
data/locale/sv.po
data/locale/tr.po
data/locale/uk.po
data/locale/uz.po
data/locale/vi.po
data/locale/zh_CN.po
data/locale/zh_TW.po
external/squirrel/squirrel/sqdebug.cpp
src/object/bonus_block.cpp
src/object/explosion.cpp
src/object/player.cpp
src/supertux/game_session.cpp
src/supertux/level.cpp
src/supertux/main.cpp
src/supertux/resources.cpp
src/video/sdl/sdl_renderer.cpp
src/worldmap/worldmap.cpp
Ingo Ruhnke [Sun, 3 Aug 2014 03:01:18 +0000 (05:01 +0200)]
Moved some aspect ratio calculations into video/util.cpp
Ingo Ruhnke [Fri, 1 Aug 2014 19:01:22 +0000 (21:01 +0200)]
Reimplemented magnification and aspect ratio handling
Tobias Markus [Fri, 1 Aug 2014 21:39:13 +0000 (23:39 +0200)]
Only rotate egg when its actually moving (velocity <> 0)
Ingo Ruhnke [Fri, 1 Aug 2014 18:02:14 +0000 (20:02 +0200)]
Fixed surfaces not getting properly converted to textures in OpenGL (i.e. wrong colors on worldmap)
Ingo Ruhnke [Fri, 1 Aug 2014 17:32:30 +0000 (19:32 +0200)]
Reverted
91c1517 and reinserted the old mouse cursor code
With SDL_RenderSetLogicalSize() gone the old mouse code works again
and it doesn't glitch the mouse pointer on magnification changes as
the new code does.
Ingo Ruhnke [Fri, 1 Aug 2014 17:25:17 +0000 (19:25 +0200)]
Replaced SDL_RenderSetLogicalSize(), removed PHYSICAL_SCREEN_WIDTH/HEIGHT, improved mouse handling when using magnification
Ingo Ruhnke [Fri, 1 Aug 2014 16:57:09 +0000 (18:57 +0200)]
Removed foobar from Renderer::to_logical(), it's no longer needed
Ingo Ruhnke [Fri, 1 Aug 2014 16:26:40 +0000 (18:26 +0200)]
Removed platform specific path magic and use SDL_GetBasePath() instead (untested)
Ingo Ruhnke [Fri, 1 Aug 2014 02:14:41 +0000 (04:14 +0200)]
Added fullscreen switching to SDLRenderer
Ingo Ruhnke [Fri, 1 Aug 2014 02:14:32 +0000 (04:14 +0200)]
Minor cleanup
Ingo Ruhnke [Fri, 1 Aug 2014 02:07:02 +0000 (04:07 +0200)]
Use better filtering for scaling in SDL
Ingo Ruhnke [Fri, 1 Aug 2014 01:48:24 +0000 (03:48 +0200)]
Clear the screen to avoid garbage in unreachable areas after we reset the coordinate system
Ingo Ruhnke [Fri, 1 Aug 2014 01:43:48 +0000 (03:43 +0200)]
Pass mouse coordinates to mouse pointer manually instead of SDL_GetMouseState(), see bug #2442 in SDL2
Ingo Ruhnke [Thu, 31 Jul 2014 21:51:14 +0000 (23:51 +0200)]
Cleaned up coordinate translation a little, SDL mouse handling is still broken and SDL_RenderGetViewport() doesn't seem to return proper values
Ingo Ruhnke [Thu, 31 Jul 2014 20:17:16 +0000 (22:17 +0200)]
Implemented window scaling in SDLRenderer, mouse input however breaks when scaling
Ingo Ruhnke [Thu, 31 Jul 2014 19:43:44 +0000 (21:43 +0200)]
Use SCREEN_WIDTH/HEIGHT instead of SDL_RendererGetViewport(), as logical coordinates might be different then physical
Ingo Ruhnke [Thu, 31 Jul 2014 19:27:38 +0000 (21:27 +0200)]
Implemented support for different blend modes in SDL
Ingo Ruhnke [Thu, 31 Jul 2014 19:12:03 +0000 (21:12 +0200)]
Implemented sprite rotations for SDLRenderer
Ingo Ruhnke [Thu, 31 Jul 2014 19:03:59 +0000 (21:03 +0200)]
Merged drawing code from SDLLightmap and SDLRenderer into helper class SDLPainter
Ingo Ruhnke [Thu, 31 Jul 2014 06:26:21 +0000 (08:26 +0200)]
Removed pointless check for screen mode change, as we are creating the window for the first and only time at that point
Ingo Ruhnke [Thu, 31 Jul 2014 06:21:23 +0000 (08:21 +0200)]
Implemented desktop_size discovery in GLRenderer
Ingo Ruhnke [Thu, 31 Jul 2014 05:58:04 +0000 (07:58 +0200)]
Fixed typo that made mouse clicks not function properly
Ingo Ruhnke [Thu, 31 Jul 2014 05:01:43 +0000 (07:01 +0200)]
Implemented fullscreen mode selection, OpenGL only for the moment
Ingo Ruhnke [Thu, 31 Jul 2014 04:25:58 +0000 (06:25 +0200)]
Reenabled vsync and some other OpenGL attributes
Ingo Ruhnke [Thu, 31 Jul 2014 04:02:55 +0000 (06:02 +0200)]
Fixed window resize in OpenGL and added window resize to SDL renderer
Ingo Ruhnke [Thu, 31 Jul 2014 03:23:41 +0000 (05:23 +0200)]
Fixed window title and icon, removed Renderer and Lightmap creation from DrawingContext and moved it to top-level init code
Ingo Ruhnke [Thu, 31 Jul 2014 03:21:32 +0000 (05:21 +0200)]
Implemented Texture color modification
Ingo Ruhnke [Thu, 31 Jul 2014 02:38:50 +0000 (04:38 +0200)]
Implemented SDLLightmap::get_light(), haven't tested it
Ingo Ruhnke [Thu, 31 Jul 2014 02:37:42 +0000 (04:37 +0200)]
Added PHYSICAL_SCREEN_WIDTH global variable, little ugly, but should do for now, still needs to be updated properly on window resize
Ingo Ruhnke [Thu, 31 Jul 2014 01:02:19 +0000 (03:02 +0200)]
Implemented basic lightmap rendering, still a bit of an incomplete hack job, drawing code should be merged with SDLRenderer
Ingo Ruhnke [Wed, 30 Jul 2014 20:11:37 +0000 (22:11 +0200)]
Print some debug info for the created SDL_Renderer
Ingo Ruhnke [Wed, 30 Jul 2014 18:55:31 +0000 (20:55 +0200)]
Removed unused GUI classes Button and ButtonGroup
Ingo Ruhnke [Wed, 30 Jul 2014 18:43:16 +0000 (20:43 +0200)]
Fixed text input in console, console itself doesn't handle unicode correctly, so weird stuff happens when pressing umlauts
Ingo Ruhnke [Wed, 30 Jul 2014 18:32:30 +0000 (20:32 +0200)]
Fixed crash when enabling console
Ingo Ruhnke [Wed, 30 Jul 2014 18:25:46 +0000 (20:25 +0200)]
Hooked up window resize event (not yet implemented in Renderer)
Ingo Ruhnke [Wed, 30 Jul 2014 18:20:51 +0000 (20:20 +0200)]
Implemented set_gamma()
Ingo Ruhnke [Wed, 30 Jul 2014 17:58:17 +0000 (19:58 +0200)]
Use fullscreen and resolution config in SDLRenderer
Ingo Ruhnke [Wed, 30 Jul 2014 17:57:56 +0000 (19:57 +0200)]
Removed OLD_SDL1 software rendering code from SDL_Renderer
Ingo Ruhnke [Wed, 30 Jul 2014 17:48:00 +0000 (19:48 +0200)]
Removed lots of OLD_SDL1 software rendering code from SDLTexture
Ingo Ruhnke [Wed, 30 Jul 2014 17:44:43 +0000 (19:44 +0200)]
Removed some OLD_SDL1 code
Ingo Ruhnke [Wed, 30 Jul 2014 17:38:33 +0000 (19:38 +0200)]
Fixed black borders in GL renderer
Ingo Ruhnke [Wed, 30 Jul 2014 17:37:52 +0000 (19:37 +0200)]
Removed unused SDL_Surface* screen; from GLLightmap
Ingo Ruhnke [Wed, 30 Jul 2014 16:58:52 +0000 (18:58 +0200)]
Fixed radius calculation for rounded rectangles
Ingo Ruhnke [Wed, 30 Jul 2014 16:57:03 +0000 (18:57 +0200)]
Fixed OpenGL renderer, starts now up and game seems playable
Ingo Ruhnke [Wed, 30 Jul 2014 16:43:17 +0000 (18:43 +0200)]
Implemented support for rounded rectangles
Ingo Ruhnke [Wed, 30 Jul 2014 06:02:57 +0000 (08:02 +0200)]
Implemented SDLRenderer::do_take_screenshot()
Ingo Ruhnke [Wed, 30 Jul 2014 05:52:57 +0000 (07:52 +0200)]
Implemented horizontal flipping in SDLRenderer
Ingo Ruhnke [Wed, 30 Jul 2014 05:31:13 +0000 (07:31 +0200)]
Implemented SDLRenderer::draw_inverse_ellipse()
Ingo Ruhnke [Wed, 30 Jul 2014 04:12:35 +0000 (06:12 +0200)]
More .gitignore
Ingo Ruhnke [Wed, 30 Jul 2014 04:12:13 +0000 (06:12 +0200)]
Implemented basic rendering operations, game is now playable again, rounded rectangles and other details still missing or broken
Ingo Ruhnke [Wed, 30 Jul 2014 04:09:47 +0000 (06:09 +0200)]
Removed unused "void Renderer::draw_text(const DrawingRequest& request);"
Ingo Ruhnke [Wed, 30 Jul 2014 03:11:25 +0000 (05:11 +0200)]
Added -Wno-unused-parameter to disable annoying compiler warning
Ingo Ruhnke [Wed, 30 Jul 2014 03:10:28 +0000 (05:10 +0200)]
Disabled some more code, game now starts up and plays music, no graphics yet, just a black screen
Ingo Ruhnke [Wed, 30 Jul 2014 01:28:59 +0000 (03:28 +0200)]
Made code compile, not work, with SDL2, old code that needs work is disabled and marked with "#ifdef OLD_SDL1"
Ingo Ruhnke [Wed, 30 Jul 2014 01:11:37 +0000 (03:11 +0200)]
AdAdded check for SDL2 to CMake
Ingo Ruhnke [Wed, 30 Jul 2014 01:11:21 +0000 (03:11 +0200)]
Fixed SDL2 include, should just be SDL.h
Ingo Ruhnke [Wed, 30 Jul 2014 01:09:45 +0000 (03:09 +0200)]
Purged SDL2 source code from the sourcetree, it's not needed
LMH [Thu, 24 Jul 2014 00:40:45 +0000 (14:40 -1000)]
Invincibility stars sparkle when close to Tux
LMH [Fri, 18 Jul 2014 21:32:25 +0000 (11:32 -1000)]
Added Bonus Island III
Populated with levels submitted to the bugtracker and previously part of the 'Mantis Valley' addon. In addition, several levels were moved from 'Incubator Island' as well. Criteria for moving from 'Incubator Island' were either the use of relatively steep slopes since slope mechanics still need work, and use of crystal tileset which still suffers from major tiling issues.
LMH [Fri, 18 Jul 2014 06:35:09 +0000 (20:35 -1000)]
Reduced the value of SWITCH_DELAY for magic blocks to prevent lanterns (and Tux) from prematurely passing through them while in free-fall
LMH [Fri, 18 Jul 2014 06:29:05 +0000 (20:29 -1000)]
Fixed a counting bug when using butt-jump on a multi-hit bonus block
LMH [Thu, 26 Jun 2014 00:13:54 +0000 (14:13 -1000)]
Frozen badguys can be killed with butt-jump
LMH [Wed, 25 Jun 2014 23:57:27 +0000 (13:57 -1000)]
Auto-run levels are automatically marked as solved.
This prevents players from being forced back into an auto-run level if they should abort without finishing. Resolves apparent problem in issue #28.
LMH [Sat, 14 Jun 2014 22:08:35 +0000 (12:08 -1000)]
Powerup: Iceflower improvements
Generalized code for changing frozen badguy sprite to iced, and added a default behavior for freezable badguys without iced graphics. Frozen badguys no longer unfreeze on touch. Added ice vulnerability to forest badguys.
Note: there are some mild bugs as a result of this change, which should be fixed in subsequent improvements to make Iceflower a more viable powerup.
165your4 [Sat, 14 Jun 2014 02:12:41 +0000 (16:12 -1000)]
Rope tiles; bug#1050
Tobias Markus [Mon, 12 May 2014 11:12:17 +0000 (13:12 +0200)]
More fixes, down to 4 errors
Tobias Markus [Mon, 12 May 2014 11:02:03 +0000 (13:02 +0200)]
More fixes, SetAlpha problems remaining
Tobias Markus [Mon, 12 May 2014 10:51:48 +0000 (12:51 +0200)]
More fixes
Tobias Markus [Mon, 12 May 2014 10:38:27 +0000 (12:38 +0200)]
More SDL2 fixes
Tobias Markus [Mon, 12 May 2014 10:20:49 +0000 (12:20 +0200)]
Fixing a few compiler errors, thanks to bluescreen_avenger at verizon dot net
Tobias Markus [Sat, 10 May 2014 10:53:58 +0000 (12:53 +0200)]
Correctly parse file:// urls
Tobias Markus [Sat, 10 May 2014 09:49:40 +0000 (11:49 +0200)]
Icebridge tiles improvements, fixes #1044, thanks to 165your4
CT. da'Bomb [Thu, 8 May 2014 20:46:49 +0000 (15:46 -0500)]
updated bonus1 worldmap to use the new snow tiles to the the path tiles issue. visuals can be improved now also
CT. da'Bomb [Wed, 7 May 2014 17:40:18 +0000 (12:40 -0500)]
fixed some stuff in village level.
CT. da'Bomb [Sun, 4 May 2014 22:35:11 +0000 (17:35 -0500)]
Fixed forest slope tiling issues in forest world except for key levels and some levels not in the worldmap.
CT. da'Bomb [Sun, 4 May 2014 22:16:19 +0000 (17:16 -0500)]
Fixed some tile issues in A Ghostly World, still needs attention.
CT. da'Bomb [Sun, 4 May 2014 16:09:44 +0000 (11:09 -0500)]
fixed some errors in arcticskies1.png background
Benjamin Leduc [Sat, 26 Apr 2014 16:23:10 +0000 (16:23 +0000)]
copyright update
Benjamin Leduc [Tue, 8 Apr 2014 23:57:06 +0000 (23:57 +0000)]
update language
Benjamin Leduc [Tue, 8 Apr 2014 23:47:42 +0000 (23:47 +0000)]
Merge branch 'master' of https://code.google.com/p/supertux
Because I want:w.
Benjamin Leduc [Fri, 4 Apr 2014 16:40:41 +0000 (16:40 +0000)]
update language
LMH [Thu, 3 Apr 2014 19:52:07 +0000 (09:52 -1000)]
Incubator Island: new level 'Into the Dark'
LMH [Thu, 3 Apr 2014 19:28:57 +0000 (09:28 -1000)]
Music: update to 'Clavelian March'
Benjamin Leduc [Wed, 26 Mar 2014 01:18:55 +0000 (01:18 +0000)]
update language
LMH [Thu, 13 Mar 2014 05:43:13 +0000 (19:43 -1000)]
Revert "Update to SQUIRREL 3.0.4"
This reverts commit
bc25f6fa2616df7e905fed68ceb4e3ebc186a623.
The reason for rolling back to squirrel 2.2.5 is that something in 3.0.4 is causing new worldmap save files to have the wrong structure resulting in level completion data not being saved for new games.
LMH [Thu, 13 Mar 2014 05:42:44 +0000 (19:42 -1000)]
Reverted egg image in first level
Tobias Markus [Tue, 11 Mar 2014 17:05:04 +0000 (18:05 +0100)]
Do not rotate sprite when we are dying
Tobias Markus [Mon, 10 Mar 2014 12:28:55 +0000 (13:28 +0100)]
Adding level filename to log debug
LMH [Sun, 9 Mar 2014 02:46:09 +0000 (16:46 -1000)]
Separated shading on egg from the rotating graphic to make the rolling egg look more natural.
LMH [Sun, 9 Mar 2014 01:48:13 +0000 (15:48 -1000)]
More explosion variety.
Explosions are randomly rotated to give them the appearance of being more unique. Gave explosions that do not hurt Tux a less-threatining graphic, and changed the hurting explosion graphic to one without vertical shading (adapted from the Cheeseman spin-off). All these graphics should be considered placeholders until something better, and more animated, becomes available.
LMH [Sat, 8 Mar 2014 20:46:57 +0000 (10:46 -1000)]
A more elegant approach to backflip animation.
Backflip no longer uses several images that have been previously rotated, instead a single image is used and the sprite is rotated.
LMH [Sat, 8 Mar 2014 19:53:47 +0000 (09:53 -1000)]
Alternative approach to rotating egg powerup.
Instead of using successive images of the egg rotated at different angles, a single egg image is used and rotated dependent on horizontal displacement. This significantly reduces the number of images used, and also shortens the code a bit.
Tobias Markus [Mon, 3 Mar 2014 17:48:46 +0000 (18:48 +0100)]
Try to use hardware surfaces instead of software ones
Tobias Markus [Mon, 3 Mar 2014 17:24:31 +0000 (18:24 +0100)]
Fixing OpenGL compiler warning since Mavericks