NAVIGATION >>
HOME API TOOLS FORUM REPORT BUGS
:. SDL Framework (SDLFW)
SDLFW is a cross-platform framework from the powerful SDL library to create your own 2D games with the Lua programming language.
It's easy-to-use, free, open-source, and works on Windows and Linux.

SDLFW is licensed under the LGPL license allows anyone to freely download, copy, use, modify, and redistribute SDLFW, proviso that any modification and/or extension to the source code is made publicly available under the terms of LGPL.

:. Main Features
  • Fast application development through Lua scripting language
  • Support for multiple image formats
  • TrueType font rendering support
  • Provides input from the keyboard, mouse, and joystick
  • Provides a simple API to query the capabilities of the sound card
  • Complex audio functions, mainly for sound mixing
  • Provides a clean, simple, and reliable time and timer API
  • Provides an API for reading and playing tracks on a CDROM
  • Networking support
  • Provides a thread API that looks like a simplified version of pthreads
  • Is small, portable, and reliable
:. What's New in This Version?
  • Added support to SDL_resize
    • Easily resize images / surfaces
    • High quality Lanczos3 interpolation
  • Added support to SDL_collide v1.1
    • Perfect collision tests between surfaces
    • Bounding box collision checks
    • Circle intersection routines
  • Added support to SDL_zip v1.0
    • Support to ZIP files with password
    • Support to password encryption
:. Example
main.lua
local function main()
  -- Initialize SDL video   if ( SDL_Init(SDL_INIT_VIDEO) < 0 ) then     print( "Couldn't initialize SDL: " .. SDL_GetError() )     return 1   end
  -- Set the window caption   SDL_WM_SetCaption( "SDLFW - Hello World", nil )
  -- Create a new window   local screen = SDL_SetVideoMode( 512, 384, 16, SDL_SWSURFACE )   if ( screen == nil ) then     print( "Unable to set the video mode: " .. SDL_GetError() )     SDL_Quit()     return 1   end
  -- Get the global event   local event = SDLFW_GetGlobalEvent()
  -- While the user hasn't quit   local done = false   while ( done == false ) do     -- While there's an event to handle     if ( SDL_PollEvent(event) ) then       -- If the user has X out the window       if ( event.type == SDL_QUIT ) then done = true end     end
    -- Swaps screen buffers     SDL_Flip( screen )
    -- Wait a specified number of milliseconds before returning     SDL_Delay( 1 )   end
  -- Make sure SDL cleans up before exit   SDL_Quit()
  return 0 end
main()
:: CURRENT VERSION

1.6

Mar / 2014
:: PLATFORMS SUPPORTED
:: DOWNLOAD
:: DONATE
SDLFW needs your support, please donate 1 dollar or more to make this project better.
:: POWERED BY
:: VISITORS
:: CONTACT AND FEEDBACK
Game
Developer


Eduardo David Correa
CorEduard@Programmer.net

@CorEduard - Twitter
/user/CorEduard-Reddit
/r/lua-Discussion of Lua
SDLFW.sf.net Except where otherwise noted, content on this site is
licensed under a Creative Commons Attribution 3.0 License.
{"cc_re__cc_re__cc_by_3_0": ["ing=\"0\"  width=\"100%\"><tbody><tr><td align=\"left\" valign=\"top\" width=\"100%\">\r\n  <table bgcolor=\"#354463\" border=\"0\" cellpadding=\"0\" cellspacing=\"10\" width=\"100%\"><tbody><tr>\r\n  <td align=\"left\" valign=\"middle\" class=\"infohead\">\r\n\r\n    <a href=\"http://sdlfw.sourceforge.net/\" target=\"_self\"><strong>\r\n    SDLFW.sf.net</strong></a>\r\n\r\n  </td><td align=\"right\" valign=\"middle\" width=\"100%\" class=\"infohead\">\r\n\r\n    Except where otherwise noted, content on this site is <br />\r\n    licensed under a\r\n    <a href=\"http://creativecommons.org/licenses/by/3.0/\" target=\"_blank\">\r\n    Creative Commons Attribution 3.0 License</a>.\r\n\r\n  </td><td align=\"right\" valign=\"middle\" width=\"100%\">\r\n\r\n    <a href=\"http://creativecommons.org/licenses/by/3.0/\" target=\"_blank\">\r\n    <img src=\"site/images/cc88x31.png\" border=\"0\" align=\"top\" alt=\"\" title=\"Creative Commons Attribution 3.0 License\" /></a>\r\n\r\n  </td></tr></tbody></table>\r\n  </td></tr></tbody></table>\r\n\r\n  </td></tr></tbody></table>\r\n</td></tr></tbody></table>\r\n<!-- End Main Table -->\r\n\r\n</body></html>\r\n", "\"left\" valign=\"middle\" class=\"infohead\">\r\n\r\n    <a href=\"http://sdlfw.sourceforge.net/\" target=\"_self\"><strong>\r\n    SDLFW.sf.net</strong></a>\r\n\r\n  </td><td align=\"right\" valign=\"middle\" width=\"100%\" class=\"infohead\">\r\n\r\n    Except where otherwise noted, content on this site is <br />\r\n    licensed under a\r\n    <a href=\"http://creativecommons.org/licenses/by/3.0/\" target=\"_blank\">\r\n    Creative Commons Attribution 3.0 License</a>.\r\n\r\n  </td><td align=\"right\" valign=\"middle\" width=\"100%\">\r\n\r\n    <a href=\"http://creativecommons.org/licenses/by/3.0/\" target=\"_blank\">\r\n    <img src=\"site/images/cc88x31.png\" border=\"0\" align=\"top\" alt=\"\" title=\"Creative Commons Attribution 3.0 License\" /></a>\r\n\r\n  </td></tr></tbody></table>\r\n  </td></tr></tbody></table>\r\n\r\n  </td></tr></tbody></table>\r\n</td></tr></tbody></table>\r\n<!-- End Main Table -->\r\n\r\n</body></html>\r\n"]}