tiles

Manipulating image tiles on iPhone

Hello friends can you please help me in creating image tiles on iPhone How to store the and how to manipulate them while handling touch... ...

Best way to show the user full name in a JSP header file with a spring/struts framework?

I have a JSP struts application that uses Spring to integrate with the services/dao/database. Basically, struts uses spring to get the data from the DB, it builds the form and forward them to the JSP files. I have a header file that is injected in each JSP file using Tiles. I would like to show "Welcome John Doe" on each page inside th...

Max square size for unknown number inside rectangle

If I have a set of tiles (squares) which can be any number and they are to fill a container (rectangle) of an unknown size how do I work out the maximum size of the tiles without having any of them overlap. So if I have 2 tiles and the rectangle is 100 * 100 then the max tile size is 50 * 50. This would also be the max size of tile if ...

Overview rpg tiled space

I'm trying to make it where the character is in a tile and when they move up or down it moves to the next tile but I'm not sure how to do that. Right now, I have it set up where the character moves by pixels but I want it to move by 1 square. The code right now is this, and it works, but it's glitchy in pixel mode. I believe if it was...

When to use a View Preparer for Tiles

I'm new to JSP and Tiles, as well as Java. We are currently replatforming our site using these, but I am confused as to when something should be put into a view preparer vs coming from the controller. For example, the current page I am working on will have a tile for pagination, including the content type (X of Y content-type). My origi...

Apache Tiles 2.1 - How to prevent inherited list attributes from getting duplicated?

I'm working on a project using Apache Tiles 2.1. I am running into an issue where extending templates with list attributes is creating duplicates of those list items... one set of duplicates for each level of inheritance. As an example, here is the base definition, and the page it would produce: <definition name="base" template="so...

Tiling rectangles seamlessly in WPF

I want to seamlessly tile a bunch of different-colored Rectangles in WPF. That is, I want to put a bunch of rectangles edge-to-edge, and not have gaps between them. If everything is aligned to pixels, this works fine. But I also want to support arbitrary zoom, and ideally, I don't want to use SnapsToDevicePixels (because it would compro...

Could this tile blitter get any faster?

When I make a tile-based map editor in C#, I tend to iterate over the X,Y axes and call Graphics.DrawImage() to blit a single tile in place, from a tileset Bitmap onto a map Bitmap. This process takes several seconds to complete, so I only do it once when loading a new map or changing its tileset. Any edits from there on are relatively f...

Servlet page decoration: Do people use Tiles, Sitemesh, or something else?

I've used Tiles and Sitemesh for a number of years and while I personally prefer the Sitemesh style page decoration, I generally don't see a lot of mention of Sitemesh or Tiles on the Internet. Do people use Tiles and/or Sitemesh actively, or are there other libraries that have taken over in this capacity? ...

Struts/Spring with Tiles error-page

I'm still a newbie, and I'm not sure how else to implement custom error pages. I'm using tiles, and I believe this project has the struts2 and spring framework mangled together. I did the basic stuff in my web.xml: <error-page> <error-code>404</error-code> <location>/WEB-INF/jsps/404error.jsp</location> </error-page> Works p...

Connection reset exception while using Apache Tiles and Weblogic 9.2

We are using Apache Tiles to stitch the pages into a given JSP template. The applicatoin is built and deployed using Weblogic 9.2 In deployment environment we started facing the issue, where the following error is logged in our log file, 2009-06-23 10:50:41,984 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuni...

Loading and saving a tile based game in Java. XML or TXT?

Hi all. For some time I've been making a 2d tile based sim game, and it's going well! Thanks to this site and its kind people (You!), I have just finished the path-finding part of the game, which is fantastic! THANK YOU!... Anyway, to the question. At present, the test level is hard-coded into the game. Clearly I need to re-work this. M...

Tiling a asynchronously loaded image - stuck between an <img> and a background URL

For a site with a lot of small thumbnail images, I wanted to use a placeholder gif while each image was loading. This requires code like the following: $('.this_img').each(function(){ var $this_img = $(this); var $this_src = $(this).find('.sliderImage:first').attr('src'); var img = new Image(); // wrap our new image in jQuery...

How do I tile and overlay images in WPF?

I'm very new to WPF and trying to port an application from VB6 to C# and XAML. What I need to do now is create one big image out of a number of small ones, arranged like a series of "tiles." Some of these smaller ones will have overlays superimposed on them. In VB6, accomplishing both the tiling and overlaying would simply be a matter ...

How can I call a tiles page directly from a JSP?

Hi there, I was wondering how I can call directly a tiles page from a jsp. Thanks in advance. ...

iPhone load map offline tiles

Hello, i'm trying to start a project that will present a map and drop some pins for the museums in my town. I played with map kit and route-me from Cloudmade so i'm not a stranger to them. I want to try something like OffMaps does, to use maps offline but i want to provide the tiles from the start. I downloaded the tiles from OpenStree...

Struts 2 integration with Tiles issue

I started to integrate struts 2 with tiles on IntelliJ environment. I searched several tutorial on the web, but I still see some wierd symbol not found issue. This is the web.xml: <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xs...

Tile-based Collision Detection problems in 2-D iPhone game

SETUP: I'm working on a 2-D tile-based game (bird's eye view) for iPhone. The app reads in a tile-d (.tbx) tilemap file of tiles with a 'blocked' property of either true or false to represent whether or not the hero can move through the tile. I iterate over each tile in the map and create a 2-dimensional C array representing tile rows an...

TiledLayer equivalent in Android

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML? ...

Tile-based Game Engine or Framework for the iPhone?

I'm planning to build a simple tile-based RTS (Real-Time Strategy) game for the iPhone and iPod touch. Is there an existing game engine or framework that I could use? If so, where can I find it? ...