FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

arc.tilemap
Goto page Previous  1, 2
 
Post new topic   Reply to topic     Forum Index -> ArcLib
View previous topic :: View next topic  
Author Message
clayasaurus



Joined: 21 May 2004
Posts: 857

PostPosted: Fri Nov 06, 2009 7:47 pm    Post subject: Reply with quote

Oh, well if that's the case there is no point using Camera unless you have it tranform the world Surprised

fwiw Camera has code in it to get the mouse position after transform
Back to top
View user's profile Send private message AIM Address
SirAlaran



Joined: 19 Feb 2007
Posts: 84
Location: Silicon Valley

PostPosted: Sat Nov 07, 2009 3:12 pm    Post subject: Reply with quote

clayasaurus wrote:
Oh, well if that's the case there is no point using Camera unless you have it tranform the world Surprised


That's what I figured. I will be using it for the tilemap extension though. It will simplify the drawing code quite a bit there.
_________________
Current projects: Project Fermitas, Arctographer tile map editor, Arclib game library.
Gentoo | Textadept
Back to top
View user's profile Send private message
SirAlaran



Joined: 19 Feb 2007
Posts: 84
Location: Silicon Valley

PostPosted: Wed Nov 11, 2009 12:01 am    Post subject: Reply with quote

SirAlaran wrote:
clayasaurus wrote:
Oh, well if that's the case there is no point using Camera unless you have it tranform the world Surprised


That's what I figured. I will be using it for the tilemap extension though. It will simplify the drawing code quite a bit there.


I just got it working... The docs should really mention that you need to call
Code:

cam.setProjection(0, arc.window.getWidth(), arc.window.getHeight(), 0);

before using camera.open() so that the camera won't completely destroy your drawing code. Should I just put that call into the Camera's default constructor? It seems to be the expected behavior from the example given in the camera module's doc comment.
_________________
Current projects: Project Fermitas, Arctographer tile map editor, Arclib game library.
Gentoo | Textadept
Back to top
View user's profile Send private message
clayasaurus



Joined: 21 May 2004
Posts: 857

PostPosted: Wed Nov 11, 2009 2:44 pm    Post subject: Reply with quote

You can do that, and if the user wants a different one they will just specify after constructor.
Back to top
View user's profile Send private message AIM Address
SirAlaran



Joined: 19 Feb 2007
Posts: 84
Location: Silicon Valley

PostPosted: Thu Nov 12, 2009 12:52 am    Post subject: Parallax and Tilemap extensions Ready Reply with quote

I've checked the Parallax and TileMap code into SVN. They are complete with the exception of not supporting animations. (Something I may add later, but am not making a high priority)

Quick links to the code:
http://dsource.org/projects/arclib/browser/trunk/arc/x/level/parallax.d
http://dsource.org/projects/arclib/browser/trunk/arc/x/level/tilemap.d

Examples:
http://dsource.org/projects/arclib/browser/trunk/examples/level/tilemapdemo.d
http://dsource.org/projects/arclib/browser/trunk/examples/level/parallaxdemo.d

The graphics files needed for these demos have been added to the testbin. See the file "copyright.txt" in the corresponding folders for redistribution information. If needed, I can put the forest parallax into the public domain.
_________________
Current projects: Project Fermitas, Arctographer tile map editor, Arclib game library.
Gentoo | Textadept
Back to top
View user's profile Send private message
elkano



Joined: 19 Jun 2009
Posts: 24

PostPosted: Thu Nov 12, 2009 7:22 am    Post subject: Reply with quote

I got this on compilation:
Code:

arc/x/level/level.d(34): module tilemap cannot read file 'arc/level/tilemap.d'

There is a 'x.' missing in this import, easy to fix Smile.
Back to top
View user's profile Send private message
SirAlaran



Joined: 19 Feb 2007
Posts: 84
Location: Silicon Valley

PostPosted: Thu Nov 12, 2009 10:00 am    Post subject: Reply with quote

elkano wrote:
I got this on compilation:
Code:

arc/x/level/level.d(34): module tilemap cannot read file 'arc/level/tilemap.d'

There is a 'x.' missing in this import, easy to fix Smile.


Well, that file is a) mostly empty and b) broken. Just stick to the ones I linked to for now.
_________________
Current projects: Project Fermitas, Arctographer tile map editor, Arclib game library.
Gentoo | Textadept
Back to top
View user's profile Send private message
clayasaurus



Joined: 21 May 2004
Posts: 857

PostPosted: Fri Nov 13, 2009 11:48 am    Post subject: Reply with quote

You linked to the latest trunk. I fixed the trunk, just try and make sure the code you commit to the trunk compiles.
Back to top
View user's profile Send private message AIM Address
SirAlaran



Joined: 19 Feb 2007
Posts: 84
Location: Silicon Valley

PostPosted: Sun Nov 15, 2009 6:03 pm    Post subject: Reply with quote

Bad news: I seem to have gotten my installed version of Tango messed up. Anything that uses Format() dies. (This includes common things like Stderr.formatln(). Not good.)

Good news: This
_________________
Current projects: Project Fermitas, Arctographer tile map editor, Arclib game library.
Gentoo | Textadept
Back to top
View user's profile Send private message
SirAlaran



Joined: 19 Feb 2007
Posts: 84
Location: Silicon Valley

PostPosted: Tue Dec 01, 2009 10:28 pm    Post subject: Reply with quote

I just updated the level demos and the level extensions in svn. You can now load a tile map with a multi-layered parallax background from a file. Updates to the map editor (And the long-promised 0.3 release) are coming soon.
_________________
Current projects: Project Fermitas, Arctographer tile map editor, Arclib game library.
Gentoo | Textadept
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> ArcLib All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group