AGen

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: AGen

Post by kikito »

Felipe Budinich wrote:

Code: Select all

display:create ( "My Window", 800, 600, 32, true ) --Window caption ( i guess), Resolution, Color Depth, Fullscreen (or Vsync)

my_sprite = Sprite ( ) -- ????? The kind of stuff that makes you wonder, Why would i want to do this? We are doing text right?
display.viewport:add_child ( my_sprite ) -- ????

my_font = Font ( )
my_font:load_system ( "Arial", 18 ) -- Chose a font, and pick it's size

my_sprite.canvas:set_font ( my_font )
my_sprite.canvas:write ( "Hello world!" )
Wow. Talk about verbosity.

Still, I wish Ivan luck.
When I write def I mean function.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: AGen

Post by bartbes »

From what I can tell by looking at it, everything seems necessary, actually, the process goes like this:
  • Create a window
  • Create an FBO
  • Add it to the window
  • Create the font object
  • Set the actual font to use
  • Set the font used by the FBO
  • Draw text on the FBO
As opposed to:
  • Draw text to the screen
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: AGen

Post by kikito »

By verbose I mean that the character-per-useful-action ratio is too big. Lots of explicit actions are so common they should be shortcutted.

I would have done something like this:

Code: Select all

display:create( "My Window", 800, 600, 32, true ) -- Create a default bitmap + canvas when you do this.
display:set_system_font ( "Arial", 18 ) -- Create and set. Use the default canvas. Return the font
display:write ( "Hello world!" ) -- same here: use the default canvas again.
... which is pretty much what LÖVE does.
Last edited by kikito on Tue Aug 10, 2010 1:36 pm, edited 1 time in total.
When I write def I mean function.
User avatar
StoneCrow
Party member
Posts: 199
Joined: Sat Apr 17, 2010 9:31 am
Location: Wales the land of leeks and leaks
Contact:

Re: AGen

Post by StoneCrow »

Scrupp seems kinda interesting ,
the forum is dead as a dodo and the manual confused me
(i read it after waking up, probably not a good idea)

i wonder why ivan didnt use love to make chains?
though well done creating his own engine and then getting his first game on steam!! aswell as to IGF
Dull but sincere filler.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: AGen

Post by Robin »

kikito wrote:... which is pretty much what LÖVE does.
Although the first two lines are implicit.
Help us help you: attach a .love.
User avatar
Lap
Party member
Posts: 256
Joined: Fri Apr 30, 2010 3:46 pm

Re: AGen

Post by Lap »

I found Agen first and even though Love didn't have a camera system I chose it over Agen. Not having a big community was one of the main reasons.
User avatar
ivan
Party member
Posts: 1719
Joined: Fri Mar 07, 2008 1:39 pm
Contact:

Re: AGen

Post by ivan »

Felipe Budinich wrote:I'll take a wild guess and I'll say that it is a Löve "branch" with some windows-only libraries on top.
Not at all. AGen was programmed entirely from scratch. However, we have exported several Lua modules such as Box2D, MicroPather and so on.
From what I remember, with Love you draw geometry in Lua every frame.
With AGen you create a "scene" (a tree of sprites and layers) and they persist throughout time so you don't have to redraw them each frame.
Using the canvas object you can create complicated geometry (buffered and triangulated by the engine) and share it across multiple sprites.
The latter approach allows Z-ordering and culling to be handled by the engine.
Love has it's own advantages such as a helpful community of developers. :)
Also, Love's interface is closer to the rendering hardware so you can do some fancy rendering stuff that would be slower in AGen.
i wonder why ivan didnt use love to make chains?
We actually started work on the engine before we had heard about Love.
Thanks anyways though, we are currently working on a new title that we hope will be playable for this year's IGF (Oct 18th).
User avatar
thelinx
The Strongest
Posts: 852
Joined: Fri Sep 26, 2008 3:56 pm
Location: Sweden

Re: AGen

Post by thelinx »

ivan wrote:From what I remember, with Love you draw geometry in Lua every frame.
With AGen you create a "scene" (a tree of sprites and layers) and they persist throughout time so you don't have to redraw them each frame.
Hey, 0.7.0 has framebuffers!

Fraaammmee buffeerrss!
User avatar
Chief
Party member
Posts: 101
Joined: Fri Mar 12, 2010 7:57 am
Location: Norway, 67° north

Re: AGen

Post by Chief »

"supports the playback of MPEG-1 movies", Me like. :huh:

Love still wins tho'
User avatar
Jasoco
Inner party member
Posts: 3655
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: AGen

Post by Jasoco »

MPEG-1? What the heck is that? I've never seen an MPEG-1. Even DVD's and TV broadcasts are MPEG-2.

I wouldn't mind if Löve could play Vorbis videos like it can play OGG audio.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 17 guests