Slashdot Mirror


Freya Reaches 2.0 Beta Release

mandrake*rpgdx writes "Freya, a game programming environment for the Lua programming language, reaches 2.0 beta this week. Freya allows you to program cross platform games in the programming language Lua. It sports speeds 2x-10x faster than PyGame, and contains a built in map engine, pixel perfect collision detection, support for many graphics and sound formats including Ogg Vorbis and different MOD formats. Right now the beta release is looking for people to test the Linux version."

50 comments

  1. Lua takes off? by jon855 · · Score: 1

    I wonder how long will it be until Lua really takes off? Well if they take off at the wrong time, they might as well could miss Mars... :|

    --
    May /. rule the /.ing realm
    1. Re:Lua takes off? by Anonymous Coward · · Score: 0
      http://www.lua.org/uses.html

      Looks like it's already passed Mars and is well on it's way to Jupiter :)

    2. Re:Lua takes off? by jon855 · · Score: 1

      Oh boy maybe they were trying for Jupiter already?! Oh wow I did not expect that out of Lua...

      --
      May /. rule the /.ing realm
  2. Games... where are the games... by advocate_one · · Score: 2, Insightful

    I wanna see some games to play and hack with and see if it's even worth pulling down the stuff to write my own... the games page is empty... and the screenshots aren't exactly inspiring...

    --
    Donald 'Duck' Dunn: We had a band powerful enough to turn goat piss into gasoline.
  3. Still being worked on. by mandrake*rpgdx · · Score: 3, Informative

    I'm working on one and some others are too. But right now teh Freya community is spread thin through 4 or 5 other message boards. This site has only been up for a week. So I'm trying to gather and bring together all of the disperate coders under this one roof. You can always download it and give it a shot.

    1. Re:Still being worked on. by advocate_one · · Score: 3, Interesting
      "You can always download it and give it a shot.""

      It would help if the dependencies would compile... fblend 0.4 is the problem so far...

      In file included from src/x86/trans16.s:15:
      src/x86/trans.inc:128:7: warning: no newline at end of file
      gcc -x assembler-with-cpp -c src/x86/trans15.s -o obj/unix/release/x86/trans15.o
      -I. -Isrc -Iinclude
      In file included from src/x86/trans15.s:15:
      src/x86/trans.inc:128:7: warning: no newline at end of file

      [then no problems until the end]

      src/x86/2xstretch.s: Assembler messages:
      src/x86/2xstretch.s:177: Error: junk `(%esi)movq ' after expression
      src/x86/2xstretch.s:177: Error: suffix or operands invalid for `prefetcht0'
      make: *** [obj/unix/release/x86/2xstretch.o] Error 1

      Turns out it's a missing semi-colon on at the end of line 184 of 2xstretch.s. And that's supposed to be the three year old stable release!!!!!!! oh and I had to stick a new line at the end of the last line of trans.inc as well

      I've stopped for a while to let my head unwind... the readme for alfont is all geekspeak to me...

      --
      Donald 'Duck' Dunn: We had a band powerful enough to turn goat piss into gasoline.
  4. Also Torque by BrookHarty · · Score: 4, Informative

    Torque from GarageGames also has some new SDK's out. Not free for but 100 bux for the engine and 50 for the RTS pack, you can make some cool freeware games. Unless I read it wrong, you only have to license if you make over 250K..

    BTW, I didnt care for torque when it came out in Tribes2, buggy and early release. But they kept working on it, adding new features, and the new Beta engine they showed off even have really good plantlife, the grass was amazing. And the RTS kit and content packs make it easy to do some really cool FPS's.

    But for Freya, I've always wonder why not as many Bardstale old style RPG's, easy to do, and looks like a good use of it. And I bet lot lighter than the torque engine.

    (Also Torque engine compiles for linux/osx and windows, so you get cross platform games)

  5. snazzy by Gizmoguy · · Score: 1

    Well that takes away some of the pain. Souns cool!!!

    --
    -- There are 10 types of people in the world: Those who understand binary, And those who don't.
  6. World of Warcraft by rit · · Score: 4, Interesting

    Blizzard Software's new hit, the MMORPG "World of Warcraft", has a fully programmable and extendable UI. Using XML described UI enhancements, and a backing application, you can actually add all sorts of things - i've even seen someone add multiplayer chess that you can play with other players with the same UI extensions.

    What is the programming language they use for the UI?

    You guessed it. LUA.

    It's pretty cool, if you ask me :)

    1. Re:World of Warcraft by BrookHarty · · Score: 2, Funny

      Ya, they already have fishing bots written in LUA for World of Warcraft, thats why they turned fishing off in some areas. People where selling the fish for gold, then selling the gold on ebay.

      Not bad for 1 week, and already bot'ed.

    2. Re:World of Warcraft by dbullock · · Score: 1

      WOW did it right.

      --
      http://www.bullnet.com
    3. Re:World of Warcraft by Anonymous Coward · · Score: 1, Interesting

      I'm pretty sure the bots were using an external program to feed a mouse click over the bobber, since the lua scripts do not have access to the information (nor are they able to select a world object in any fashion).

      On the other hand, the lua bots might be used to navigate, which I believe is doable.

  7. Freya will run on Linux and OSX by mandrake*rpgdx · · Score: 1

    When 2.0 is out of beta. Right now there are a few floating point errors on Linux for some of the examples, and some of the libs need changed to work on OSX, but other than that it's heading there. Bard's Tale style- that would be neat. I myself is working on a hybrid zelda-roguelike kind of game using it.

  8. Newbie Question... by Shadow+Wrought · · Score: 1

    I have absolutely zero programming experience, but am setting myself up to start learning. One of the things I want to do is to actually make some of the game ideas I have real. Would this be a good place to start?

    --
    If brevity is the soul of wit, then how does one explain Twitter?
    1. Re:Newbie Question... by ash*embers · · Score: 2, Insightful

      If you think that you'd like to hash out a quick and dirty game, you have 2 options:

      1) take some basic and intermediate classes at your local university or technical college. Then look at some game programming options then and only then, like Game Institute or something like that afterwards.

      2) Get comfortable with an advanced presentations program like Flash or Liquid Media which at present handle enough options to put some simple games together. It will have even more options to manipulate 3D environments in the near future, so I would say this is a real possibility for you, since it saves the programming pain. You sacrifice the flexibiltiy of a real game engine and have to work with the constraints of a presentation. Still very workable IMHO.

    2. Re:Newbie Question... by thebra · · Score: 1

      I learned some C++ and used the allegro game library, I think the website is allegro.cc It's probably a bit higher learning curve, but you can make better games. There is also a 3D version but I don't have any experience with it.

    3. Re:Newbie Question... by zarthrag · · Score: 2, Informative

      At the zero level, I'd like to give lua a resounding "no". Learn a "mid-low level" language such as c++ or even java. Lua is a scripting language that's *embedded* in your c/c++ application - that is, it's originally meant to allow you to easily use for configuration and stuff - not for writing standalone apps. It's use in game development (homeworld 2 used it, I know) is superb because you can do your AI programming and stuff outside of your game engine using easily edited files.

      --
      Why can't all fpga/microcontroller manufacturers just release free optimizing compilers???
  9. Maybe. by mandrake*rpgdx · · Score: 3, Informative

    Lua, like Python are both easy to learn programming languages and take less time to learn than C or C++ or Java. But, if you are not keen on learning even a simple proreamming langauge Game Maker might be a better choice. But, if you want a good stepping stone to video game programming, Freya does speed things up.

  10. w00t by mandrake*rpgdx · · Score: 1

    I really think Lua is the choice for an embeddable scripting language. After using it for Freya, I will always promote it.

  11. What's it built on? by shredwheat · · Score: 3, Interesting

    The "jab" at Pygame got me interested. Trying to determine what libraries this is built on, but not seeing it immediately. It looks like a great set of features for now, congrats. How does this compare to LuaSdl?

    As the Pygame author, it's fun to see what other projects are doing in similar fields. Now I need to determine what benchmark was used to determine the 2x. :-) I admit Pygame's been dragging over the summer, but trying to gear up for a new release before the end of the year.

    1. Re:What's it built on? by shredwheat · · Score: 2, Interesting
      Self reply, after further information found. It appears Allegro is the base of this, along with several supporting library. I was a little let down when I read this part of the documentation

      The first is the limit of resolution. The only resolution you have available is 320x240x16bpp. The second is how input is sent to and from the user. Freya uses a virtual joystick design (with meta keys for input from the keyboard) that makes the keyboard act like a joystick. In 2.0 mouse support has been added as well.
    2. Re:What's it built on? by webfiend · · Score: 1

      Resolution limit of 320x240, eh? It looks like Pygame is still safe for now, except possibly in the retro-gamer arena :-)

  12. Other SDKs by Umbral+Blot · · Score: 1

    Does anyone have a list or can at least rattle off any other gave development sdks there are for other interpteted languages (besides java). For example does ruby have any? how about lisp?

    1. Re:Other SDKs by Anonymous Coward · · Score: 0

      Ruby has high-quality opengl bindings (fairly fast) and Ruby/DL allows using other libraries much more easily than SWIG/XS. OpenGL isn't a game library, but it can do a heck of a lot.

    2. Re:Other SDKs by voodoo1man · · Score: 1
      Does anyone have a list or can at least rattle off any other gave development sdks there are for other interpteted languages (besides java). For example does ruby have any? how about lisp?
      Before I provide you with useful links, I'm obligated to be a pedantic pain in the ass and point out that:
      1. Languages aren't "interpreted." Their implementations may be.
      2. There aren't any interpreters for Java - the politically correct term is virtual machines.
      3. The information I am about to provide is really off-topic for the original thread (something that greatly annoys me about Slashdot because it happens so often), so please treat it accordingly.

      That being said, I know of two such projects in nicely working state for Common Lisp. CL-SDL provides a set of raw wrappings around SDL (and OpenGL from there), a bunch of handy utility functions on top of that, and many examples and demos. I've used it, and it is basically like using SDL in C (so you get the best of both worlds). There is also Kenny Tilton's Cello, which uses his very, very slick constraint engine to drive OpenGL, Imagemagick, and he says he has OpenAL working too (I'm not sure how relevant it is anymore, though - cross-platform audio is definitely a problem compared to video). I haven't used it yet, and it's not specifically targeted at games.

      There is Isis, a new dialect of Lisp developed by the pointy-headed researchers at the MIT Media Lab for multimedia. In addition to OpenGL, GLUT, SDL, and X11 bindings, it has audio through ALSA, and comes with video capture utilities, and video and image processing tools, networking stuff, etc. That makes it Linux only though. I've installed it but haven't had time to play around too much, but it seems that it has pretty much anything you'd want!

      --

      In the great CONS chain of life, you can either be the CAR or be in the CDR.

  13. Yeah. by mandrake*rpgdx · · Score: 4, Informative

    I was originally going to opt for other resolutions (some people are complaining about that), but I want something that's retro gaming specific. And I can push out more speed this way and optimizing things a bit.

    The speed test was done by writing a small demo in both and running them on a 350mhz. No offense, but I designed Freya because Pygame was moving to slow for me. And, I didn't know enough about SDL to do anything to help it.

    If I had known SDL, this might be different. It is faster than LuaSDL, but the makers of it even admit that it's not for gaming but more for multimedia apps.

    The secret to Freya's speed is in it's limatations (and how much faster Lua is to Python. When I get around to porting Freya to Python, it will probably run at the same speed or slower than PyGame).

    1. Re:Yeah. by Anonymous Coward · · Score: 0

      it's limatations

      "its".

  14. one of the things with Freya by mandrake*rpgdx · · Score: 1

    Is that I plan on making it easy to port to languages other than Lua. To the point of where you can just run SWIG for the target languages.

    There is Sphere for Javascript, but other than that and PyGame and Ika (Python as well), I don't see any other scripting language friendly gaming lib's.

    1. Re:one of the things with Freya by Umbral+Blot · · Score: 1

      well when you do make it easy to port I would be glad if you dropped me a line at: pschombe AT ics DOT uci DOT edu

    2. Re:one of the things with Freya by mandrake*rpgdx · · Score: 1

      Will do. Should be around January 2005.

  15. Also, SDL Lua is now part of LuaX by mandrake*rpgdx · · Score: 1

    http://luaforge.net/projects/luax/

    I didn't really mean for that to be jab at Pygame. The two are completely different projects with different goals.

    1. Re:Also, SDL Lua is now part of LuaX by shredwheat · · Score: 1

      No worries. I'm glad to see more high quality environments available for this sort of thing. Pygame is definitely not all things to all people, (but it is great for some)! I like the "non-frameworky" design you have so far. Good luck on getting your Python bindings together too. I'll feel better having somewhere to refer people when Pygame doesn't fit their needs.

  16. Freya is built on allegro by mandrake*rpgdx · · Score: 1

    Yup. It basically combines a lot of good allegro lib's (like DUMB, DUMBOGG, etc) and extends them to Lua. It's pretty effective as a fast and easy way to make games.

  17. I've not had any speed issues with Pygame... by failrate · · Score: 1

    I even ran a simple demo for myself with over 100 sprites flying across the screen without any slowdown.

    My current game framework hasn't even made it to Alpha, yet, so there's no optimizations to speak of, and it's actually running too fast for the final gameplay.

    --
    Voodoo Girl is the bomb!
  18. I'm talking about a larg scale game by mandrake*rpgdx · · Score: 1

    I had made with PyGame. It was going to be a Chrono Trigger style game and used it's own Map system and etc. After awhile, it began to slow down. I think Python and PyGame are good for small games running on faster systems, but on anything less than 1ghz I had problems with. And a lot of people are still running on 700-800mhz pentuims.

    Anything of decent size for a game, and I don't think PyGame holds up. Not yet anyway.

    1. Re:I'm talking about a larg scale game by Anonymous Coward · · Score: 0

      it's own Map system

      "its".

  19. which isn't to say I don't think it could stand up by mandrake*rpgdx · · Score: 1

    PyGame is still in it's infancy, and if it wasn't for PyGame I would never have even thought about doing something like this.

  20. Re:which isn't to say I don't think it could stand by Anonymous Coward · · Score: 0

    I decided not to use any scrolling in my game since that's where PyGame gets killed.

    Lots of people have had success with OpenGL and PyGame for sound and input, I know, but I think it'd really help if PyGame included OpenGL compatability out of the box. Probably won't happen until SDL does that though.

  21. Lua by JabberWokky · · Score: 1
    Lua is a fantastic language for embedding... even if you have no interest whatsoever in game programming, it is worth a download to play with the system.

    --
    Evan

    --
    "$30 for the One True Ring. $10 each additional ring!" -- JRR "Bob" Tolkien
  22. I should have mentioned by mandrake*rpgdx · · Score: 2, Informative

    But I thought it was mentioned on Fblend's website- the stable version won't run in Linux, you need the latest unstable version.

    I think it's here-> yup

    Anyway, here's some really good stuff on getting everything *but* dumb and dumbogg running on Linux (and he also made it really easy to get it runnning on arch linux): here

    Hope that helps.

    1. Re:I should have mentioned by advocate_one · · Score: 1
      it's the beta that won't compile under Linux...

      Oh fer heck's sake... that's just too geeky... And I'd gotten to grips with ./configure, make and make install, but that's several steps too far... so to install Freya, I've got to fix the dependencies??? why haven't those fixes been passed up to those projects already??? sitting on the details in an out of the way forum is not helping matters.

      --
      Donald 'Duck' Dunn: We had a band powerful enough to turn goat piss into gasoline.
  23. I didn't know... by JessLeah · · Score: 1

    she had reached 2.0 beta ;)

  24. Re:which isn't to say I don't think it could stand by Anonymous Coward · · Score: 0

    it's infancy

    "its".

  25. I guess not. by mandrake*rpgdx · · Score: 1

    Sorry about that. I'm going to contact the fblend author.

    1. Re:I guess not. by advocate_one · · Score: 1
      "Sorry about that. I'm going to contact the fblend author."

      thanks... :) I was in danger of losing things back there...

      --
      Donald 'Duck' Dunn: We had a band powerful enough to turn goat piss into gasoline.
  26. Yeah they are both named after the same thing by mandrake*rpgdx · · Score: 1

    One the names for the Nordic Godess's of earth (being that she has a gajillion names- like Jord and Frigg). FF9 is full of mother-earth Goddess references. The world they live on is Gaia, they visit a planet called Terra, Freija, etc etc

  27. Please don't try this... by a_hofmann · · Score: 1

    ...at home. Seriously, recommending C++ or Java as introductory languages is IMHO a really bad idea. Both languages suffer from design problems that will take a lot of fun from the learning experience.

    C++ is probably the worst choice besides C or Assembler (not talking about Braindead et al :) for learning a new language. With manual memory management, heavy generic programming (templates) and mostly speed-optimized libraries (easy interfaces vs. performance) C++ is the heavy machine gun of languages that can be very difficuly to handle...

    Java does sufficently abstract low-level aspects of programming and thus is often used as introductory language, but in my experience teaching it at my university I noticed one huge problem that's very difficult to get over: the massive SDK, with it's miles deep object hierarchies, doesn't make sense for people not yet thinking in object oriented terms (arguably it does for the rest ;). It's too strict in this sense, at least for learning purposes. Take a look at the Java version of Hello world, does this look intuitive?

    Lua might not be a good choice either, as it is very lightweight (missing some nice functionality you might better get a grip of early on).

    Personally I would recommend Ruby (the cleanest language around) or Python (also very clean, with more mature community support) for a start. Both offer everything necessary to develop computer games...

  28. Ummm why did this make slashdot? by pyman · · Score: 1, Troll
    It's kind of surreal seeing this article make slashdot...

    The library is limited to 320x240 resolution, and simulates a joystick using keypress events! This is obviously a toy project of the article submitter. Do the editors bother checking the background of articles anymore?

    The poster then has the audacity to compare the library favorably to pygame, (and poke fun at it) which supports anything SDL can do. That means any resolution your video card can do, not just 320x240.

    The speed comparison is also irrelevant. It is simply a comparison of Allegro and SDL, not Freya and pygame. Anyone serious about speed avoids SDL and opts for an OpenGL accelerated backend anyway...

    Sw.

    --
    a ^= b; b ^= a; a ^= b;
  29. who knows. by mandrake*rpgdx · · Score: 1

    It's also a comparison of Lua and Python as well. Lua is much faster than Python. And it's got quite a following now, people who want to use it to make retro games. I'm suprised it made it to slashdot- I've been submitting stories for quite a while now (none to do with Freya, however) and been rejected quite a bit. I'm very glad they put it up, and a lot of people really like the engine and it's capibilities.

    1. Re:who knows. by Anonymous Coward · · Score: 0

      It's important to remember that the guy who created Freya is an ACCOMPLISHED NOVELIST who wrote the "First Classic of the New Century," a book he himself has described as "push[ing] the boundries as to [sic] what seperates poetry from prose." (http://www.amazon.com/exec/obidos/tg/detail/-/097 0384041/qid=1102199967/sr=8-1/ref=sr_8_xs_ap_i1_xg l14/104-6443788-3040703?v=glance&s=books&n=507846)

      Not only that, he's the creator of little gems like this: http://forums.rpgdx.net/viewtopic.php?t=1100

      I find it baffling that anyone could fail to take someone like that seriously. I mean, he's completed like 10-15 incomplete RPGs, easily.

      I mean, come on, compared to vanity publishing and