tiles

Isometric Screen to Map

I'm trying to figure out how I can get the correct "active" tile under the mouse when I have "ramp" and +1 height tiles (see picture below). When my world is flat, everything works no problem. Once I add a tile with a height of say +1, along with a ramp going back to +0, my screen -> map routine is still looking as if everything is ...

NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder

I am trying to run sample tiles example given here Below is my POM.xml: <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.tiles...

Tiles framework low performance

I built a Spring MVC web app with TilesViewResolver, but the performance is poor, very slow. In a benchmark Tiles is sevent times slower than JSP. Is there any way to improve this? ...

<tiles:insertTemplate> is slow

There seems to be an overhead in when included file is very large. This has nothing to do with the contents of the file, just its size, the file has nothing but commented out text <tiles:insertTemplate template="/WEB-INF/very/large/file/with/nothing/but/comments.jsp"> </tiles:insertTemplate> Time to insertTemplate is proportionate ...

Is it possible to fade in Google Maps v3 Tiles?

I'm using the Google Maps V3 Javascript API. I want the tiles to fade in like they do on an iPhone. Anyone know how to do this? ...

References/examples on design and implementation of graphical tiles?

Remember the game Civilization, where there was a large scrollable map with different behavior of some tiles. Or in Google Maps there is also a map where tiles are loaded with Ajax. Where can I find more information on tiles classes (in C++)? How does a class hierarchy look like to implement a scrollable canvas with tiles? ...

Struts1.x and tiles1.1 problem

Hi folks, I am trying to integrate struts 1.x with tiles 1.1 but I am facing problems! Here's snippet of struts-config.xml: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_3.dtd"&gt; <struts-...

How to get one more datapoint beyond the requested data-range in core-data?

I'm working on an iPhone app which graphs a large database, accessed through core-data, in a line-chart. I'm using a tile-based approach to rendering this graph. The distance between datapoints is irregular. Each tile uses a predicate to retrieve the data that is relevant for that tile: NSPredicate* predicate = [NSPredicate predicat...

JS: how to algorithmically highlight a diamond-shaped selection of x/y coordinates?

If given an array of arrays creating an n x n map of tiles, is there a way to loop through an algorithm that would highlight tiles which form a diamond shape? (the key problem is not to hardcode it, so it could work for any sized map) For example: if the map was 5x5 tiles like so: XXXXX XXXXX XXXXX XXXXX XXXXX How could an algorithm ...

Modify Web App layout

I am making changes to an existing web app project which currently has web pages for ONE LAYOUT, say, for example, BLACK. My layout blackpage1.jsp is made up by assembling Struts Tiles - title, header, footer. My current layout blackpage1.jsp looks like: tiles:insert title tiles:insert header tiles:insert footer I would...

spring 2.5.6 tiles integration

I have been searching to determine what is required to integrate Tiles and Spring 2.5.6. So far the integration has not been successfully. I tried to make use of the version of Tiles that is included with the Spring bundle (V2.0.4) and the latest version and still does not seem to work. I get the following error from JBoss: org.sprin...

Apache Tiles : change template page at runtime

Hi all, I have a question : suppose that in a spring MVC 3.0 enviroment i manage Views with Tiles : I have a xml file with definitions of all views. Every view extends a specific template. I have two templates : one for rendering a completeDOM () and one for partialDOM (.....).The problem is, there are some views that can be retrieved i...

2D grid water/liquid simulation (platformer tile based).

Hello. I have a grid based game (platformer) where I've based everything on tiles. I have tiles that are solid and liquid. I'm trying to find of a good way to make water tiles simulate water in a rough way. At the moment I have the current system: When a water tile is added above another water tile, it adds 1 to the water tile below. ...

Tilera cross compilation - Any idea about this Error: unknown asm constraint letter

We are getting these constraint errors wherver OSAF calls like m_NCS_SEL_OBJ_ZERO(&nSelObjSet) is called in our code. This is while cross compiling using tilera compiler - tile-g++. With g++ it always compiles fine. Any pointers would be helpful. Note: m_NCS_SEL_OBJ_ZERO is a macro and replaced by FD_ZERO Sample Code: // initialise a...