Mother of all gravity games Screenshot A 2D gravity game combining the idea/fun of SpaceTaxi, GravityForce, etc ...

Moagg combines several game types of other genres like races, search & rescue, seek & destroy et cetera into a 2D gravity game. You are the pilot of a small space ship and have to navigate through different levels.

Besides the gravity that drags you down, there are other obstacles like laser ports, magnets, black holes, cannons, rockets, tanks and grinders.

License: free
Requirements: Java 1.5

Sound:Play in X:Play in Console:Multiplayer:Network Play:3D Acceleration:Source Available:
yesyesnonononoyes
Suggest an update

Comments

...
the mother??? come on!
The tarball I downloaded have a suffix .tar.bz2 but it is a .tar.gz actually.
Re: Wrong file suffix posted by slash2 on Feb 5 2004 1:50 AM
Oops, yes. Sorry for that. The next release hopefully will have a "make archive" option to avoid these kinds of mistakes...
I see the ugly squares instead of letters in the menus :-((.
Re: No letters, just the squares posted by slash2 on Feb 5 2004 1:57 AM
Can you please give me some information about your system?
  • Which Linux distribution/version are you using?
  • Which versions of the following are you using:
    • XFree86
    • libsdl
    • libfreetype
    • libparagui
PS: A friend of mine had the same problem. But I'm not quite sure what he did (library updates or something like that), to solve it...
Re: No letters, just the squares posted by sinister on Feb 5 2004 3:03 PM
My distro is AltLinux Master-2.2 (Mandrake-based). XFree86 4.2.1.1; libsdl 1.2.5 (is this a problem?); freetype 2.1.2; libparagui 1.0.3.
Re: No letters, just the squares posted by slash2 on Feb 6 2004 2:15 AM
Well, I'm using libsdl 1.2.5 here on my Debian/sid box too. But the libfreetype version I use is 2.1.7. Further, I use the libparagui 1.0.4, you can download on moagg's website in the download section. (Debian/sid only provides version 1.0.2, which doesn't work "officially" with moagg anymore).
Re: No letters, just the squares posted by sinister on Feb 7 2004 2:51 PM
I can't find version 2.1.7 of the libfreetype, the latest is 2.1.5: http://sourceforge.net/project/showfiles.php?group_id=3157
Re: No letters, just the squares posted by agranig on Feb 7 2004 4:52 PM
Re: No letters, just the squares posted by sinister on Feb 8 2004 7:24 AM
The game is working OK with libfreetype 2.1.7 (but it breaks my Qt -3.1.1 somehow, so I'll roll back to the older libfreetype anyway :-( ). Good game BTW, all you need is a better levels :-)
and would get 5 stars if sound and levels would be polished a little
Re: Hey, this rocks posted by zz9pluralzalpha on Feb 20 2004 12:16 PM
Quote from chagelog:

# Added framework for background music playback.
# Polished some levels a little.

hmmm...
Re: Hey, this rocks posted by agranig on Feb 20 2004 7:37 PM
Of course we try to satisfy our users... when they like to have better sound, they get... when the like to have better levels, they get too... but hey, everyone is welcome to contribute :o)
Getting this thing to compile on SuSE Professional 9.0 (with a liberal attempt at getting the right libraries) required more effort than it was worth.
Re: Compiling posted by slash2 on Feb 24 2004 11:33 AM

Sad to hear. Can you tell me, what problems you had?

IMHO, the only rather "nasty" thing is to get a working libparagui. However, if you use the paragui-tarball from Moagg's homepage, there shouldn't be much hurdles left...

Re: Compiling posted by rlk on Mar 14 2004 6:53 AM
Several of SuSE 9.0's packaged libraries don't meet the requirements. libSDL is at 1.2.5. libxml2 is at 2.5.10. libfreetype2 is at 2.1.4. libparagui is at 1.0.2. libSDL_gfx is not provided at all. Updating one or two of these is not such a problem, but jumping through all these hoops just for one game is a bit much.

I loved Space Taxi, I loved Gravity Force, and chances are I'd like this one as well if I could get the fonts working. Static binary, please...

I did get to try it some by looking at screenshots to figure out what the various menus was supposed to say, and noticed another show-stopping bug (apart from the no text thing): The game slows down to half speed whenever the screen is scrolling. You should fix that.

Re: Mother of all gravity games posted by agranig on Mar 13 2004 4:25 PM

As noted below, fonts work with freetype 2.1.7. We know it's a little tricky to make this beast work fully functional, and we have been looking and asking for package maintainers since this project started.

However, we're also aware of the scrolling problem (see TODO at http://cvs.sourceforge.net/viewcvs.py/moagg/moagg/TODO?view=markup ), and unfortunately we've no idea why this phenomenon occures on some systems. It doesn't seem to be a moagg-specific issue, because it also occures for example at "gravitywars" on such systems. Some people reported that it disappeared after a kernel update, but we can't track this down because on our current development machines it doesn't occure (in fact it was an issue on my machine at my former company [AMD Athlon900 with ATI-Rage-128], but I don't have access to it anymore).

Btw, if the statusbar and the controls menu aren't displayed properly, check out the latest CVS version, because that fixes came a few hours too late to get into 0.6...

Re: Mother of all gravity games posted by trick on Mar 13 2004 6:12 PM

Unfortunately I can't use Freetype 2.1.7, as that breaks all kinds of stuff. Making a static binary isn't hard to do at all, and it'll probably make many people happy =) . (If you do decide to make a static binary available, please offer it in a rpm-less form as well for us without rpm =) .)

For the slowdown-bug... I've got a Pentium III 500 Mhz (...) with 256 Mb RAM, and a NVidia GeForce 3 Ti200 (64Mb) gfx card with Nvidia's drivers (v.4496, render accel enabled), running kernel 2.6.3 (gentoo-r1).

Re: Mother of all gravity games posted by slash2 on Mar 15 2004 4:18 AM

Andy created an archive containing the static binary and all data files, that can be downloaded at http://moagg.sourceforge.net/files/moagg-0.6.1-static.tar.bz2

The next official release however is expected to come as three archives: The source, the data files and a statically linked binary. I promise. :-)

Re: Mother of all gravity games posted by trick on Mar 15 2004 5:32 AM

Great! Text in the menus and a working statusbar really adds to the game ;)

Thank you!

Thanks for the static build. It runs well under SuSE 9.0 x86_64.

This game is very well done. It's challenging and fun. I did not play through all of the levels, but it is obvious there is a great deal of variety to be seen, and some very deviously difficult gameplay to be had. The game is clearly feature-complete, so I have no qualms about rating it on its gameplay, rather than its status. I'm giving it five stars. I want to try to encourage continued development. It's unique and good and it can only get better.

I suggest some visual indication before a barrier turns on or a SAM fires. Most of the time, when I approached such an obstacle, I hovered waiting for it to cycle before I moved past it, because I didn't know if it would cycle and kill me. I'd rather know at a glance how much time I have. Plus, hey it gives you an opportunity to implement like a pretty glow effect or something.

Also, consider a timer. Some players might enjoy completing a level as quickly as possible, and seeing this rewarded in a high score list.

Re: Very nice posted by agranig on Mar 20 2004 9:56 AM

I think it's just challenging to look out for SAM batteries, cause they're mostly rather hidden. Adding some sort of indication would just halve the surprise :o)

As you also may have noticed, the amount of fuel goes into the score after finishing a level. So, generally said, the faster you are, the higher will be the score (of course you'll be faster while needing more fuel with permanent active thrust, but I don't think you'll pass a lot of levels by that :o)

Re: Very nice posted by anonymous on Jun 24 2004 4:16 AM
nothing to do with the game, which is great. but when I visit this page on happy penguin I hear funky music going on about 'mushroom'. really. it was quite a shock.
0.7 segfaults when loading configuration files.
Re: segfaults posted by straver on Mar 27 2004 1:17 PM
* I fixed the segfault by removing line #596 in XML.cpp.
* then I got an errormessage saying that $HOME/.moagg/score.xml was missing so I had to create it and add:
highscore
/highscore
(they should be within tags, just couldn't write them out because they are taken as faulty html)

* Then it worked :-)
Re: segfaults posted by slash2 on Mar 27 2004 1:58 PM

Sorry for the inconveniences. Indeed, it seems, that there's a missing file in moagg-0.7-data.tar.bz2, which leads to a SegFault when starting up moagg.

Solution 1: Create the file "moagg-0.7/cfg/user/score.xml" or "~/.moagg/score.xml" with the following content manually (as you already described):

<highscore>
</highscore>

Solution 2: Download the fixed data tarball called moagg-0.7.1-data.tar.bz2.

Binary release works fine for me, and the game is indeed pretty feature-complete, and neither are there any obvious bugs.

However, I must admit as I get older my patience with difficult games like this gets less and less, and for me this game is just a bit too hard. Perhaps I'm in the minority here, and if you get lots of other comments from people saying they like the challenge, then by all means keep it as it is.

A couple of suggestions that would nonetheless make the game annoy me rather less:

  • 1. Allow a tiny bit of leeway with regard to having your ship facing the right way on landing. Maybe it's not so bad with a gamepad, but with a computer keyboard getting it aligned perfectly vertical seems very fiddly.
  • 2. Very slightly increase the maximum allowed landing speed.

Re: Mother of all gravity games posted by agranig on Mar 30 2004 11:38 AM
I agree that the contrast between different levels within a mission regarding the difficulty is sometimes too big, and some new features like tanks etc. are embedded in levels at the end of the missions, so lots of people won't ever see them :o)
We will rework the missions before releasing 1.0.

There will also be the possibility to resume a mission at the last reached level with resetted score in the next release. A basic implementation already exists in CVS.

Regarding the alignment of the ship: just press the magic "down" key :o)
You can of course set another key in the controls menu.

Re: Mother of all gravity games posted by slash2 on Mar 30 2004 11:44 AM

1. You didn't read the README file. :-) You can use "Cursor Down" to align the ship for landing.

2. Take the source, open libMoaggCore/src/MovingObjects.cpp, play around with the values for the SHIP_MIN_LANDING_VELOCITY and SHIP_MAX_LANDING_VELOCITY macros somewhere around line 522, and tell me which values you prefer.

Re: Mother of all gravity games posted by James Gregory on Mar 30 2004 2:59 PM
1. I can't find a readme file anywhere in my MOAGG directory, maybe you forgot to include it in the binary distribution?

But yes, thank you, the down key is definitely a Good Thing.

2. I'm afraid I can't be bothered with that right now...

Thanks anyway, a very well executed game.

Re: Mother of all gravity games posted by slash2 on Mar 31 2004 8:38 AM
1. *doh* ... Another thing to be fixed for the next release. :-)
I think the score should reflect how fast you complete a level.
Re: score posted by agranig on Mar 30 2004 11:47 AM
The score already reflects the amount of fuel left after completing a level (and also limits the time you can fly around). I'm not quite shure whether an additional timer would add some kind of challenge to the game...
Re: score posted by straver on Mar 30 2004 12:26 PM
It's much harder to race through a cavelevel then to play it safe but the safe way takes less fuel so I think it's unfair. If you deliver the packages faster you should also be rewarded.
Re: score posted by slash2 on Mar 31 2004 8:43 AM

OK, what about some kind of a time bonus, starting with an initial value, which is continuously shrinking to zero every second or so. Further, I would make the initial value and the speed-of-shrink configurable via the level-file, so there might even be levels without any time bonus...

What do you think?

Re: score posted by straver on Mar 31 2004 11:06 AM
sounds good
+1 star because of the down key.
Re: Mother of all gravity games posted by James Gregory on Apr 12 2004 11:41 AM
+1 star for making it remember where you got up to
Re: Mother of all gravity games posted by anonymous on Apr 12 2004 12:36 PM
Now you can restart from whichever level you last reached, and lives don't really matter, you needn't now ever succesfully rescue crates - you can just pick them up, crash your ship and then go for the next set of crates.

Perhaps you should make it such that crates reappear, unrescued, if you crash whilst transporting them back to your home launchpad?

Re: Mother of all gravity games posted by straver on Apr 13 2004 5:06 AM
Note that some levels will be extremly hard then.
Re: Mother of all gravity games posted by slash2 on Apr 13 2004 9:43 AM

> ... you can just pick them up, crash your ship and then go for the next set of crates.

Well, yes. But in the long term, you won't make a good highscore entry this way (assuming of course, that there are much more levels to play...)

> Perhaps you should make it such that crates reappear, unrescued, ...

You get points for picking up crates and twice the points for bringing them back. If you crash, you lose the latter. IMHO the crates shouldn't reappear, because then you would get the pick-up points a second time.

Re: Mother of all gravity games posted by James Gregory on Apr 13 2004 11:55 AM
Well, personally I play games to complete them/get as far as I can rather than to get a high score, it would be nice if the game could cater for both styles of play (points and level completion).

And as for the second point, it could be solved simply by removing the pickup bonus.

Re: Mother of all gravity games posted by James Gregory on May 2 2004 1:25 PM
NB I completed all the levels yesterday, and I found "Mission 1 - Level 8" by far the hardest in the game, it took me ages. Was I missing something or is that level meant to be really hard? After that everything else in Mission 1 was relatively rather easy.

Some of Slash's Snakepit was also quite hard, but unlike Mission 1 level 8 it always seemed like I could do it if I had just "one more go", I think I liked those levels most, it seemed like maybe the most work had gone into them. The ice one is only two levels big...

Re: Mother of all gravity games posted by anonymous on May 2 2004 11:36 PM
NB I completed all the levels yesterday, and I found "Mission 1 - Level 8" by far the hardest in the game, it took me ages. Was I missing something or is that level meant to be really hard?

Congratulations! Well, zero-g levels of course are harder than the other ones, because one has to take advantage of the inertia of the ship, as well as the gravity field of the black hole (if there is one) to successfully land on platforms...

The ice one is only two levels big...

Because Andy only made two of them. ;-)

BTW, about one week ago, I released a new version of moaggedit (a Qt-based map editor). So if anyone has spare time left to design some maps and levels, feel free to send them to me.

Sorry but I don't like the game by design. 3 stars because the game engine is well coded.
$ ./moagg/moagg
Initializing SDL ...done.
Initializing sound system ...done.
Initializing tile structures ... done.
Initializing surfaces ... done.
Initializing configurations ... Error initializing the game!
Cannot lstat() file '/home/users/pp/tokaj.avi': Value too large for defined data type.

The game will not run if there is a big file (>2GB) in my home directory. I can move the file somewhere else, but why is it scanning my $HOME in the first place ???
Re: problem posted by anonymous on Jun 8 2004 1:18 AM
The game will not run if there is a big file (>2GB) in my home directory. I can move the file somewhere else, but why is it scanning my $HOME in the first place ???

First, moagg tries to locate the data files in $prefix/share/games/moagg, where $prefix defaults to /usr/local. If the data files are not found, the directories ".." and "." will be scanned (see libMoaggCore/src/Configuration.cpp).

I suggest either to install moagg via "make install", or to start the binary out of the moagg subdirectory with "./moagg".

Re: problem posted by anonymous on Jun 8 2004 2:29 PM
Thanks for your reply but it does not help. I modified libMoaggCore/src/System.cpp function DirectoryPImpl::read() like this:
(...)
            try {
                SYSTEM_CALL::lstat(file.c_str(), &statEntry);

m_entries.push_back(Entry(*dirEntry, statEntry)); } catch (SyscallException e) { std::cerr << "Warning: " << e << std::endl; kill(0,SIGSTOP); } (...)

And run it with gdb to find out where it stops. Here is the backtrace:
Initializing configurations ... Warning: Cannot lstat() file '/home/users/pp/tokaj.avi': Value too large for defined data type

Program received signal SIGSTOP, Stopped (signal). 0x40355291 in kill () from /lib/libc.so.6 (gdb) bt #0 0x40355291 in kill () from /lib/libc.so.6 #1 0x080a1d1f in DirectoryPImpl::read(char const*) (this=0x839d198, name=0xbfffff09 "/home/users/pp") at libMoaggCore/src/System.cpp:452 #2 0x080a283c in Directory::read(char const*) (this=0xbffff400, name=0xbfffff09 "/home/users/pp") at libMoaggCore/src/System.cpp:559 #3 0x080a278f in Directory (this=0xbffff400, name=0xbfffff09 "/home/users/pp") at libMoaggCore/src/System.cpp:546 #4 0x08067d1b in PlayerConfiguration (this=0x84a8520) at libMoaggGame/src/PlayerConfiguration.cpp:696 #5 0x08068bad in PlayerConfiguration::create() () at libMoaggGame/src/PlayerConfiguration.cpp:787 #6 0x0804ef40 in main (argc=1, argv=0xbffff544) at moagg/main.cpp:68

I am still not sure why does it stat every item in my $HOME, but I am sure it does not depent on whether I install the game or not, nor from which directory I run it. Line numbers correspond to version 0.10 of moagg

Re: problem posted by slash2 on Jun 9 2004 1:16 AM
I am still not sure why does it stat every item in my $HOME, but I am sure it does not depent on whether I install the game or not, nor from which directory I run it. Line numbers correspond to version 0.10 of moagg

First, I misread your posted message output. This error occurs, when your local moagg configuration (located in the ~/.moagg directory) is read. So indeed, it doesn't matter from which directory moagg is started.

Second, can you please try to add a '-D_FILE_OFFSET_BITS=64' to the CPPFLAGS of the Makefile? I wonder, if this works (until I have a better solution).

Third, I can't provide a "quick" solution now. But I added an entry to the TODO list to review the internals of the Directory class. Hopefully, the next release will solve your problem...

Re: problem posted by anonymous on Jun 9 2004 5:58 AM
Second, can you please try to add a '-D_FILE_OFFSET_BITS=64' to the CPPFLAGS of the Makefile? I wonder, if this works (until I have a better solution).

It works, thanks!
This game is really good! Keep up the great work!
[Embedded Flash application deleted by moderator]
Re: Mother of all gravity games posted by slash2 on Jun 23 2004 10:05 AM
Thanks. But it would be even better, if there were much more levels. Any volunteers out there, that can create and send me some? :-)
Re: Mother of all gravity games posted by rlk on Jun 23 2004 11:15 AM
Sneaky use of flash there, Anonymous?
Re: Mother of all gravity games posted by tjwhaynes on Jun 23 2004 12:01 PM
I'll say. Thankfully dear old Adblock showed me where the Flash bug was, and I've now blocked it. No more freaking "badger... badger..." going off all the time.

Cool game btw :-)

I'm playing it a lot, and enjoying it, but I'm hitting a bunch of very annoying twinges that make it frustrating.
  • Whenever playing a level with a playfield larger than one screen, the screen scrolls. The problem is the scrolling halves the speed of the game, making it pretty unsteady.
  • There's no summary of what to do in a level. The first time I hit al evel where you're trying to pick up the little boxes, I had no clue what to do. I completed the level without picking up the boxes, and had no idea why the level didn't end.
  • A preview or 'small view' of the level while playing would be a huge win. I spend time killing ships until I understand what I'm supposed to do.
My platform is Debian testing on a PIII-850.
dbs.homeport.org
Re: Not too bad, but needs some fine tun posted by slash2 on Jul 26 2004 1:34 PM
Whenever playing a level with a playfield larger than one screen, the screen scrolls. The problem is the scrolling halves the speed of the game, making it pretty unsteady.

This is a known issue as described in Debian bug #254761. The real problem is, that we are not able to reproduce this bug on our machines here, which lie in a range of a P3-500 up to an Athlon XP 1800.

You can try to disable the "Full Framerate" option in the menu Options -> Graphics. This will halve the framerate, when a scrolling has to be done.

If this makes no difference, it would be nice if you can compile the source of moagg yourself. I would send you a debugging-patch to track down the actual part that is causing the slowdown. Please contact me, if you want to help me with this. As I said, we were not able to reproduce this on any of our machines...

There's no summary of what to do in a level. The first time I hit al evel where you're trying to pick up the little boxes, I had no clue what to do. I completed the level without picking up the boxes, and had no idea why the level didn't end.

Just take a look into the README file. ;-) Anyway, some kind of "in-game level descriptions" are already planned and will come in one of the next releases. Just give us some time...

Re: Not too bad, but needs some fine tun posted by anonymous on Jul 28 2004 7:37 PM
I don't see a menu Options->Graphics, I just have Player, Controls and Sounds. Feel free to drop me mail at '[email protected]' and I can try various patches.
i saw the game today, downloaded it, tried it and visited the Homepage. I saw that there is the need for new graphics and i said to myself: "why not try to do some nice GFX for that game ?!" . I added slash to my ICQ and told him about that. And here i am. in the next days i'll do some demo-gfx for it and show them on my homepage (which is actually under reconstruction) -> http://people.freenet.de/titanwing (an english version will be available within the next update) ... please have a look at the link on my page, there you will find some GFX-examples of what i can do with pencil&paper (damn, i have to train more and get more gfx-skill) XD
I have the same problem with slow-down on scrolling levels, The problem only occurs using the kernel 2.6 series, vanilla and other patched versions, with an without the preemptive option, on Gentoo. The game runs fine on 2.4 kernel, and I compile the game against the linux 2.4 headers if it helps. BTW, 5 stars! only lack better GFX! And sorry my english, i'm brazilian!

I'm inclined to give it just 2 stars, but I'll give it 3 for "potential." Kudos for creating a game where you could recreate just about any of the classic gravity games as one of the levels. It has a large assortment of level objects and "traps" to choose from. All in all, an excellent product of a two-man team. If I were to rate the game based on "achievement per team member", I'd give this game a 4.

But rating it as a game (that is, how much fun it is to play and so forth), it only gets a 2. Overall, the phrase I would use to describe the game is: "sterile, harsh, and unforgiving, like a cubiform robot sent from a 50s sci-fi movie to destroy mankind."

If the authors want MOAGG to be more than "the union of all sets of features from earlier gravity games," what it needs most is some personality. Some style. Some love. Something to differentiate it from any other given gravity game compilation. In short, it needs to go beyond the product of two programmers. What this boils down to is: distictive, quality artwork and sound; intuitive user interface; and some unique and "zany" level elements. It needs to step away from "generic gravity game" and proclaim, "If anyone else tried to recreate me, they would fail, because I am a reflection of my authors' distinctive personalities." That is, to become a work of art.

In many ways, MOAGG is typical of an open-source game, a product of a community mostly made up of programmers. The stereotypical example of such a programmer is someone who prefers the controlled, logical, impersonal world of the computer over the chaotic, personal world outside the computer. A stereotypical programmer is skilled in use of a logic machine (and inherits some of the computer's "cold precision"), and not learned in aesthetics, art, psychology, or the other person-oriented skills. Thus, what he produces is precise, logical, and algorithmic like a computer, but is lacking in how it engages people.

So to reiterate, if the authors want MOAGG to be truly notable, they need to depart from the world of the computer and focus on the user. Perhaps the easiest way to do this is to seek out the input of non-programmers, particularly those non-programmers who are dedicated to person-orieted skills, and act on that input.

Re: Has potential, needs personality posted by slash2 on Apr 18 2005 1:32 PM
Kudos for creating a game where you could recreate just about any of the classic gravity games as one of the levels. It has a large assortment of level objects and "traps" to choose from.

Thanks.

If the authors want MOAGG to be more than "the union of all sets of features from earlier gravity games," what it needs most is some personality. Some style. Some love. Something to differentiate it from any other given gravity game compilation.

I agree with you. The problem is, that I can't take care of everything. So I hoped that other people will help me e.g. with the artwork stuff (creating really "cool" looking tiles, levels, etc.), as moagg grows. But unfortunately, there wasn't as much feedback as I expected...

Anyway, thanks for your comments. You speak from my soul...

Re: Has potential, needs personality posted by jacius on Apr 18 2005 6:10 PM
I agree with you. The problem is, that I can't take care of everything. So I hoped that other people will help me e.g. with the artwork stuff (creating really "cool" looking tiles, levels, etc.), as moagg grows. But unfortunately, there wasn't as much feedback as I expected...

There's too much knowledge in the world for any one person to learn it all, so community contribution is a great way to "broaden" the game. I'm glad to see that the web page is set up to facilitate this, with the list of what volunteers can help with. You might even try breaking it up even further (individual tasks like "New ship graphics in this format and size: ...") to make it more inviting to "impulse" contributors (people who want to help, but are afraid of commitment, as it were).

Feedback can often be slow coming (Rubygame, my main project, in about 6 months has gotten 3 one-shot email queries and 1 person who is willing to help if I can get it to work for his machine). At risk of alternately contradicting and paraphrasing The Cathedral and the Bazaar, I think there's a critical mass that a project needs to reach before it really takes off. Although it's more about interest than about lines of code, or something like that. Perhaps an apt analogy is that of catching a small fish to use as bait to catch a larger fish: the author puts some interest and attention into a project, and then throws it out into the open waters and tries to catch more interest and attention.

I'll see what I can do about graphics (I fancy myself an artist). I haven't played around with the level editor yet, but if it's not possible already, I think now would be a good time to program the structuring for single materials which have more than one tile image as part of it. What I'm thinking specifically are:

(1) a big chunk of material with different graphics at the edges than in the middle (with square tiles, each material would need at least 9 images, possibly 13, to do this properly: four with 1 edge (N,E,S,W sides), four with 2 edges (NE,SE,SW,NE corners), and to make it really nice, 4 with 3 edges (N,E,S,W "peninsulas") and 1 with all four edges (a 1-tile "island")). Ideally, the level designer wouldn't have to specify "the tile at location X,Y is the left edge image from the dirt material", but instead "this picture is the left edge image for the dirt material" and let the level editor figure out that the tile at X,Y is a left edge. If you've seen or can get a hold of the level editor from Warcraft2 or 3 or Starcraft, you'll see what I mean. If you put a tile of material A next to a tile of material B, it uses a different image than if both tiles had been the same material.

(2) a material with some variation in tile graphics (perhaps just placed by the artist, perhaps automatically generated) . (For example, a dirt material might have the occasional "dirt with rock in it" tile.)

Make the scaffold for that in code, and I should be able to quickly fill it with some artwork. :)

Re: Has potential, needs personality posted by jacius on Apr 18 2005 7:19 PM
I've taken a look at the tile graphics which come with MOAGG, and it looks like it's even more complex than my idea! It certainly seems adequate... perhaps too adequate? ;)
Re: Has potential, needs personality posted by slash2 on Apr 19 2005 11:05 PM

Originally, it was intented to be similar to the map-concept of the original Gravity Force game. By the time it grew by supporting multiple layers including seperate alpha- and brightness-effects for each layer.

In future versions I also plan to support maps, that consist of two PNG-images: one for the background and one for the foreground. This shouldn't be too difficult to implement and maps may be easier to be drawn by "artist" people, that don't want to fumble around with tiles... ;-)

I'd like to try out moagg, but it doesn't work with paragui 1.1.x (as is stated in the instructions, btw). I'm curious if it's going to change, because I don't want to install two versions of paragui on my system (and some games require 1.1.x).
Last release was April 17th, 2005.

I liked this game a lot, before the scrolling bug made it too annoying to play. I mainly wish that bug could be fixed. (I've tried looking at the source and messing with it but I don't really have a clue).

As for graphics you might consider stealing x-moto's graphics engine (it seems suitable, though I don't really know what would be involved).

Re: Is development dead? posted by slash2 on Feb 22 2007 11:17 AM

To make it short: Yes, for nearly two years now. :-(

@xmoto: Initially I never wanted to use OpenGL for rendering because I wanted moagg to work also on "weak" computers without an OpenGL-capable graphics card.

@scrolling: In case that you mean that the game slows extremely down when scrolling is involved, I unfortunately never was able to reproduce this bug on any machine that I tried. The right place in the code to start debugging however would be libMoaggGui/src/PlayGroundMenu.cpp in PlayGroundMenu::do_playGroundFullUpdate(). The video update for non-scrolling frames lies in PlayGroundMenu::do_playGroundRelativeUpdate(). What's happening in the "full update" method is that the full visible part of the shadow surface (lying in memory, holding the whole level including the ship and other objects) gets fully blitted to the video surface. Either this or the next line (where the video surface gets "really" updated to the screen) must be some kind of bottleneck on some systems. But as I said, I was never able to find out why...

:(
Re: java? posted by anonymous on Dec 27 2007 7:47 PM
Grow up.
Re: java? posted by anonymous on Dec 27 2007 7:52 PM
Grow up, use C.
Re: java? posted by slash2 on Dec 28 2007 8:32 AM
Well, why not? My opinions are:
  • Java is far not that slow as it sounds.
  • There's no development environment for C/C++ coming close to Eclipse
  • During development I indeed had some performance issues which however I was able to solve. But I had similar issues with the old Moagg (SDL) too.
  • The new level scripting (based on Mozilla Rhino) is far more powerful than anything you could achieve with C / Lua (for example).
Re: java? posted by anonymous on Dec 29 2007 9:40 PM
Men, first of all, Eclipse supports C++. Secondly - I used to use Eclipse for about 1 year - and now I think that GNU Emacs is better for developement.
Re: java? posted by slash2 on Dec 30 2007 7:55 AM

I know that CDT exists. And originally (in the 0.x versions) moagg actually was based on C++ and SDL. Further I used to use xemacs for hacking. My conclusion is that this just sucks in comparison to Java. Of course this is just my opinion and we could discuss technology issues forever. So let's leave it at that and just tell me, if you like the game itself or not. ;-)

PS: The old C++/SDL source code of moagg is still available on CVS @ Sourceforge. Feel free to use it / reuse it / take it over (respecting the GPL of course). But I will continue moagg's development with the Java version.

Re: java? posted by draeath on Jan 12 2008 10:27 PM
Real men use a text editor. Personally I use vim, but you are welcome to vi, vile, or heck even emacs.
Re: java? posted by DaVince on Jan 24 2008 3:45 PM
Article about Java's speed and memory usage compared to other languages

Now grow up and stop whining about "how Java is slow and/or bad".

in your run.sh if JAVA_HOME is undefined you should assume something like /usr or search for Java don't leave the user with an error message. Eclipse for example goes hunting for Java on the system: If JAVA_HOME is declared then

$ eclipse
using specified vm: /usr

When undeclared

$ eclipse
searching for compatible vm...
  testing /usr/lib/jvm/java-gcj...not found
  testing /usr/lib/kaffe/pthreads...not found
  testing /usr/lib/jvm/java-6-sun...found
Re: JAVA_HOME posted by richardj on Dec 28 2007 12:54 PM

I just fiddled with run.sh it now works on my system Ubuntu 7.10 properly. The problem was although java exists as a command calling ! -x "$JAVACMD" when $JAVACMD=java fails because -x looks for a file in a path but there is no path. Another way to fix that would be to find the path to the java executable with whereis java but that requires more work.

#!/bin/sh
# ----------------------------------------------------------------------------
# Moagg2 Start Up Batch script
#
# Required ENV vars:
# ------------------
#   JAVA_HOME - location of a JDK home dir
# ----------------------------------------------------------------------------

if [ -z "$JAVACMD" ]
then
	if [ -n "$JAVA_HOME"  ]
	then
		JAVACMD="$JAVA_HOME/bin/java"
                if [ ! -x "$JAVACMD" ]
                then
	                 echo "Error: JAVA_HOME is not defined correctly."
	                 echo "  We cannot execute $JAVACMD"
	                 exit 1
                fi
	else
		JAVACMD=java
	fi
fi

if [ -z "$JAVA_HOME" ]
then
	echo "Warning: JAVA_HOME environment variable is not set."
fi

exec "$JAVACMD" \
	"-Dlog4j.configuration=file:log4j.properties" \
	-jar jar/moagg-1.90.jar
Re: JAVA_HOME posted by slash2 on Dec 29 2007 8:08 AM
Thanks. Actually I just took the original "mvn" script from Maven2 as template for the run.sh script. It looks like Debian has extended this script with a find_java function. So before reinventing the wheel, I'll just copy this script again and leave out the Maven2-specific stuff...
Whoa, cool. ~10x more memory usage, >2x more CPU time used and now it also needs JVM. Really, all those recent JAVA projects here just look as theit authors desperately try to prove that Java is suitable for games. Actually it's just an overkill and disrespect to users.

And benefits? - Portability? For opensource application, yes. Not funny. - Performance? Not funny either. It may be close (but still not equal) to C/C++ in terms of speed, but memory waste is terrific. - Development speed? May be noticeable in enterprise projects, but here... I think all the time you spend on rewriting in in Java could be spent more wisely.

Only excuses, like that `java's not so slow'. Also, I really don't understand why Lua is not enough for this project. You can also use python for scripting.

Anyway, I'm not trying to troll, I just don't understand. The key word is `overkill'.

Re: Mother of all gravity games posted by slash2 on Jan 8 2008 7:47 PM
Whoa, cool. ~10x more memory usage,

Not true. Don't mess up RSS with VSZ. If i start up both moaggs on my machine and look at the RSS, I get 61984 kB for moagg2 and 21032 kB for moagg1. So it's actually less than 3 times more "real" memory usage. I can live with that. :-)

and now it also needs JVM.

Well, at least I have not seen a computer lately which did NOT have a Java runtime installed. :-)

Regarding moagg: I decided to continue development in spring 2007, but thought very long about whether to continue the C++/SDL-based 0.18 version or moving to Java (or even to something different). I decided to go with Java because of the following reasons:

  • There was no Windows or Mac version of moagg (at least no official one I know of). Why should I exclude these people from playing my game? With Java, I now create a single ZIP file for the releases and it just works.
  • I remember spending pretty much time in hunting down SegFaults in the old moagg. In Java I sometimes produce NullPointerExceptions whatoever too (of course). But IMHO Java has just better (free) tools for Debugging, Profiling, Testing, etc.
  • After what I can say now, the development speed with Java _is_ faster than in C++. This saves some of my leisure time, which is good. :-) Of course I know that I "lost" much time during the actual migration to Java. On the other hand, moagg 1.92 has some cool new features, which would have taken much time to hack into 0.18 too.
  • I wanted a better concept for level scripting. Yes, lua is nice (I had a closer look at 'blinkensisters', a friend mine wrote, and even had a detailled talk to him about scripting), but scripting Java (with whatever language) is just no comparison to it. Just look at the source code and you will see...

PS: I used to like C and C++ very much. But the more time I spend with Java (and the tool chains around it), the more I hate C++ for being ... just so complicated. Don't forget that the old moagg WAS based on C++/SDL, so I believe that I know what I'm talking about when comparing C++ with Java. :-)

PS2: This is just my opinion and of course I respect if someone has a different opinion. So just tell me if you actually like the game or not, OK? ;-)

Re: Mother of all gravity games posted by anonymous on Jan 20 2008 9:31 PM
I don't have JRE installed. And I'm proud of that:P just 3 times more... Cool. If you don't care about game using 3times more memory and you want to make it portable, why don't you write it in C and just prepare files to be run on virtualbox or other emulator?:P When I write something that could be called 'a game' I use ruby(or python): if I decide to waste gamers' machines resources I want to save my time. With ruby it's possible, with java not. Code in java is just horrible! Java is something like VB, it sucks. I've played moagg1 and it's a nice game. moagg2 perhaps is good too, I don't know, as I've said I don't have JRE. Anyway good luck and just don't care about ppl like me:P
Re: Mother of all gravity games posted by DaVince on Jan 21 2008 9:33 PM
Stop nagging and start enjoying games, will you?
Re: Mother of all gravity games posted by anonymous on Jan 22 2008 6:45 AM
Perhaps the game designer decided to go with JAVA for easier dynamics? Not everyone's a master with gnuc/C++. I think its an interesting and fun game regardless of the memory usages.
I must say version 1.92 is a great improvement over 1.90 the music really adds to the game, making it much more fun to play. It also seems easier to play. I also had problems with run.sh in this version. This error was on line 29 caused by the line being cropped to fit to an editors EOL. Looks like this in what I downloaded
             JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/${JA
VA_VERSION}/Home
I just made it all on one line and it worked. Some things I think that could be improved in your game.
  • Game could show what containers your ship is carrying in the status bar
  • When going beyond 640x480 resolution the in-game menu slows down, pressing the arrow keys to navigate the menu has a delay before you see the change. Also when you up the resolution you can see more of the cave but I think you should keep the same virtual size and just scale up the graphics.
  • More levels, or more specifically some easier ones.
  • Plot lines to some of the levels, giving you a story as you play each level
  • In game level editor
  • Maybe try sound effects to see if they are ok. At this stage the game seems fine without them
  • Make ready made packages for some systems. Installers for Windows, packages for a few different Linux Distros.
Great game I would say it is like 90% complete. As in 100% complete is what you would expect from an A-grade commercial title.
Re: Version 1.92 posted by slash2 on Jan 13 2008 8:26 AM
run.sh

I think I'll strip down the run.sh script again (similar to the run.bat for Windows) to the bare minimum: Use JAVA_HOME. If not present or pointing to an illegal location, try to execute "java" directly (requiring the binaries/links in /usr/bin, /usr/local/bin or a different directory in the PATH).

Game could show what containers your ship is carrying in the status bar

Check. Also showing the current weapon and multi-shooter would be a good idea, like in maelstrom for example.

More levels, or more specifically some easier ones. Plot lines to some of the levels, giving you a story as you play each level

This also was a problem until 0.18, because designing "good" levels is very much work and unfortunately I don't have the spare time to do everything on my own. So my focus always was on the tutorial levels trying to demonstrate all features of moagg including things you can do with scripting.

In game level editor

A Qt-based map editor exists (moaggedit). But currently I'm developing a plugin for tiled (http://mapeditor.org/) that is able to load and store moagg map files. Regarding the level files (XML) I don't think it's a good idea to make some kind of in-game editor, because as soon as scripting is involved, a text/xml-editor of your choice ought to be the better environment.

What's currently also missing is a way of adding custom levels to a binary release package without the need of checking out moagg's source code or hacking/copying the levels into the moagg JAR. I'll have to address this in one of the next releases...

Thanks for your feedback.

For me since you added fullscreen to moagg I can't get fullscreen to work. When I select it and restart the game I end up with a java dialog that says
ERROR: Entering FullScreen Mode
Caused by: java.lang.RuntimeException: Full Screen Exclusive Mode is not supported

Why would I be getting this error? I'm running Ubuntu, maybe my Java Run-time doesn't support this.
Also with the increased screen resolutions and the lag in the menu. I noticed that if you change the timer from GTGE to System the lagginess goes away.
Re: Full screen doesn't work on Ubuntu posted by anonymous on Jan 22 2008 5:04 PM
I read that the latest version of x is making java apps not work properly. Have you updated x in the last week?
Re: Full screen doesn't work on Ubuntu posted by slash2 on Jan 23 2008 6:08 PM
Why would I be getting this error? I'm running Ubuntu, maybe my Java Run-time doesn't support this.

Fullscreen doesn't work on my Linux box (Debian sid) too.

Also with the increased screen resolutions and the lag in the menu. I noticed that if you change the timer from GTGE to System the lagginess goes away.

I decided to go with the GTGE timer as default, because the SYSTEM timer leads to a very jerky game flow on my WinXP laptop. So it seems to strongly depend on the target system, which timer is best for the game.

BTW, could you please explain in more detail what you mean with "lag in the menu"? Thanks in advance.

Re: Full screen doesn't work on Ubuntu posted by richardj on Jan 25 2008 8:49 AM
When you press the down arrow for instance it may take several seconds for it to be recognised. I have to keep pressing the key. If you hold it down it shows a delay but it is never constant. It changes all the time, sometimes it is 1/4 sec sometimes several seconds.

For instance at 1024x768 Resolution on the select game type screen it just took 13 seconds of holding the down key to get from "tutorial" to "back". Up and enter are affected as well. As well as the section where you enter the player name. Once in the game things are fine though.
Re: Full screen doesn't work on Ubuntu posted by richardj on Jan 25 2008 8:59 AM
Also if you press the key and release immediately it still registers that key press. There is just a delay between it registering it and the result of the menu change. If you try and be smart and press down twice, it only registers the first press. The only time I ever remember a menu doing anything like that was when I accidentally used a OpenGL transparency in a menu on a system without enough processing power to handle it.
Re: Full screen doesn't work on Ubuntu posted by slash2 on Jan 25 2008 7:20 PM
Thanks for the explaination. Unfortunately I have absolutely no idea yet what might cause this. And since I have no computer in range showing this behavior, it might become a bit difficult for me to try out misc. things... :-(
Re: Full screen doesn't work on Ubuntu posted by slash2 on Jan 26 2008 1:26 PM
In the meantime we were able to solve this issue. A fix is available in SVN and will be included in the next release.
Very nice game. What's more to say? Just try it!:P
-1 star for memory usage
The game is unplayable due to the controls not responding. The graphics are OK and the animation flows smoothly, and the game worked well for a Java program, but the controls make it unplayable.
Re: Poor controls posted by slash2 on Feb 14 2008 9:06 PM

Hi. Could you please give me some additional information about this issue? I really would like to know what you exactly mean with "controls not responding". Do you mean that pressing or releasing a key is totally ignored? ...or delayed for some time? ...or something else?

Just a wild guess: Could you try to switch the game timer from 'GAGE' to 'SYSTEM'? (this can be done in the menu: Settings -> System -> Timer).

Thanks in advance.

Re: Poor controls posted by elcugo on Feb 15 2008 5:47 PM
Thanks! That helped a lot. Still controls are a bit dumb, rotating slightly will make your ship explode. At least now is playable.
Re: Poor controls posted by slash2 on Feb 16 2008 10:54 AM

Does nobody read the mission descriptions of the tutorial levels? ;-)

Hint: Use the 'Cursor Down' key to align the ship vertically for landing.

Log in or register to rate this game or post a comment.