Lightweight GUI libraries?

it is open source! as you can see, on the homepage there is the old
source code for the 2004 final release.
im currently heavily into finishing a new 2007 release - please give me
some time to make everything stable. before that its just a waste of
time to port a beta with dozens of bugs.

Sorry about that, I didn’t see any source download on the project’s homepage.

another thing is: i WANT to have the "single executable, no install"
feature: all resources shall be appended to the .exe (or the linux
binary). why? becaus tetris is a casual game. the gamers should just
download and run. no installation, no unzipping, no hassles.

is it possible to append data to a linux executable binary without linux
complaining that the binary afterwards is invalid?

There was a similar discussion about this on the list about half a
year ago, IIRC. There is no perfect way to achieve this, but
personally my favorite solution to your problem is to include the
resources directly into your program as global char arrays. Unlike
this messy appending business you’re currently using, it’s fully
platform-independent, but has a memory usage cost because the
resources will end up being all loaded into memory along with the
program.

and same question goes for macos? is it possible there?

Actually there’s no need for that at all! You’re going to love this:
Mac OS X uses an “application bundle” model for representing programs,
where all aspects of a program (binary + resources) are stored in a
specially flagged folder that appears as a single file under the
Finder (file manager). Double-clicking this folder runs the program,
as simple as that. Basically, almost all Mac applications appear to be
a single file to the end user. It’s really great.On 1/13/07, Andre Krause wrote:

  • SR

Andre Krause wrote:

is it possible to append data to a linux executable binary without linux
complaining that the binary afterwards is invalid?

and same question goes for macos? is it possible there?

I don’t know, but the point is moot because a Mac OS X application is
not just an executable. It’s a “bundle”, i.e. a folder structure (that
is displayed as if it was a file in the Finder) containing the
executable and all its necessary support files. See
http://developer.apple.com/documentation/CoreFoundation/Conceptual/CFBundles/index.html.
So you just throw your resource files in
Gravytris.app/Contents/Resources/, the path to which you can find using
[[[NSBundle mainBundle] resourcePath] fileSystemRepresentation] (that’s
Objective-C/Cocoa, probably there’s also a C/CoreFoundation way if you
don’t want to introduce an ObjC file into your project).

-Christian

another thing is: i WANT to have the "single executable, no install"
feature: all resources shall be appended to the .exe (or the linux
binary). why? becaus tetris is a casual game. the gamers should just
download and run. no installation, no unzipping, no hassles.

is it possible to append data to a linux executable binary without linux
complaining that the binary afterwards is invalid?

This works on Linux. We have some example code in PhysicsFS to append a
.zip file to a binary, and then treat the binary itself as a compressed
filesystem with good random access file lookup (seeking in compressed
files inside the .zip is, of course, not so good…I have plans to fix
that later). You don’t have to use PhysicsFS, the idea is still sound.

Please note that on Linux, there isn’t an equivalent of Windows .exe
files where the user can download and double click it to run…you’ll
have to set the executable bit before they can do so in any case.

and same question goes for macos? is it possible there?

Probably, but on OS X, you can ship it in a .dmg image, which can
automatically unpack and leave a directory on their desktop…the
directory will look like an application icon to the user, but you’ll
have a full filesystem behind the scenes. Set it up right and it’s one
click to download, double click to run, no hacks.

–ryan.

Andre Krause wrote:

Simon Roby wrote:

Alvin wrote:

have a look at my current beta ( a tetris with a gravity gun :slight_smile: ) ,
there you can see how nice fltk integrates with opengl and sdl:

http://www.coreloop.com/dump/gravytris.exe

Is the source code for gravytris compilable under Linux? I don’t have Windows
and would like to try out your game.

Thanks,

Alvin


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

sorry, i the current version is not compiled yet for linux and it would
take alot efforts to do, but i will make it soon.
but you can download a linux version of gravytris from year 2004 (but no
sounds and textures) to get an idea how it looks like (but this old
version misses alot of features)

The big $10k question everybody’s thinking about but are too afraid to ask:
Why isn’t your game open source? Your game’s homepage
(http://www.gravytris.de/) has a donate button so my guess is you’re
not planning on selling it, so why keep it non-free? Why do we have to
wait for you to port it to whatever platform we’re interested in when
you can simply let us do it for you, free of charge?

it is open source! as you can see, on the homepage there is the old
source code for the 2004 final release.
im currently heavily into finishing a new 2007 release - please give me
some time to make everything stable. before that its just a waste of
time to port a beta with dozens of bugs.

another thing is: i WANT to have the "single executable, no install"
feature: all resources shall be appended to the .exe (or the linux
binary). why? becaus tetris is a casual game. the gamers should just
download and run. no installation, no unzipping, no hassles.

is it possible to append data to a linux executable binary without linux
complaining that the binary afterwards is invalid?

and same question goes for macos? is it possible there?


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

i dont think linux and osx have the same problems as windows with
installing and uninstalling applications like windows does. windows
usually gets a corrupt registry after a while. as replied already, osx
has a folder for the application. the user just drags it to
/Applications, the then to remove drags it to the trash. i think
dependent libs can go in that folder or /Library. while i have been a
linux user for over 4 years, i havent developed a large application that
isnt a single binary, except config files are in etc or ~.

matt>> On 1/12/07, Andre Krause wrote:

On Friday 12 January 2007 12:10, Andre Krause wrote: