Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

LuMM PSP

From GameBrew
LuMM - Lua Map Maker
Lummpsp.png
General
AuthorMerick
TypeOther
Version0.9
LicenseMixed
Last Updated2007/03/24
Links
Download
Website
Source

This is a basic 2D tile map editor for Lua games.

Features

  • Edit map in 3 layers:
    • Base layer - The basic map area.
    • Object layer - Assign a number value to the current tile area.
    • Overlay layer - This layer is for images that the player can walk behind, or images with transparency that you want to be drawn over the base layer, I.E. putting an image of a lamp post in front of a house.
  • Save/Load map data to a .map file.

Controls

Menus:

D-Pad Up/Down - Change selection

Start - Select

Text input for create new project:

L - Numbers

R - Shift

D-Pad Up - Backspace

Start - Accept name

Analog and Buttons - Select letter

Map edit mode:

Start - Bring up system menu

D-Pad - Change current map position

Square - Set tile/object code

Cross - Erase tile/object code

R - Cycle through layers

In base layer or overlay layer:

Hold Triangle+Tap D-Pad - Select tile

Hold Triangle+Tap L - Cycle through loaded tile sheets

In object layer:

Triangle/Circle - Change number for object code

Screenshots

lummpsp2.png

lummpsp3.png

Changelog

v0.9

  • Found out that the version of Lua Player that I was using would sometimes crash & freeze the PSP when loading images, so I've gone back to using Cool's mod 3.
  • I've re-done the tile system to use tile sheets instead of loose tiles and have added a function to let you create a list of tile sheets to use.
    • Only works with tile sheets where the tiles are all square, have the same size, and do not have any borders between them.
    • In order to display the tiles correctly, you must now set the tile size to the exact size of the tiles in the tile sheets.
  • The format of the map table has been changed.
  • Controls have changed, see below.
  • Have added options to save the map as screenshots in PNG format.
    • The images created will be named as the project name followed by the x and y positions of each screen and will be located in the project folder.

v0.6 2007/03/19

  • Fixed a small bug in the save menu.
  • Empty map locations are now set to nil.
  • Modified map drawing routines; drawing speed should now be noticeably faster on larger-sized maps.

v0.5 2007/03/15

  • LuMM is now a stand-alone app, using Soulkiller's mod of Cool's mod 3. (http://forums.evilmana.com/index.php?topic=526.0)
  • This function increases the speed of blitting images for tile maps, but there is a bug that prevents transparencies, so I'm currently only using it for the map base layer.
    • Image.startBlit()
      • Call this function to begin blitting. You MUST do this in order to make fastBlit calls.
    • Image:fastBlit(x, y, image [subX, subY, width, height,] alpha)
      • This is the function that you call in between Image.startBlit and Image.endBlit. It's pretty much exactly the same thing as a normal Image:blit call, and the arguments for it are the same.
    • Image.endBlit()
      • Call this function to end blitting. Image:fastBlit functions may not be called after this unless a new call to Image.startBlit() is made.
  • Small change in control layout for menus: all menus now use the Start button to accept selection.
  • My previous method of referencing tile images was inadequate; any changes to the files in the tile folder would completely alter the order in which the images were referenced. To fix this, I've now made it so that the tile images are referenced by the image filenames.
  • I've also made the tile loading function more intelligent: it will now only attempt to load files that actually are images (only .jpg and .png).
  • Added a view-checking function to the map base layer so that it only blits the tiles that are actually inside the current viewing area.
  • Added a description of the map table format to this readme.

Credits

File browser edited from Tactical Penguin's demo

Uses cancan's version of the Danzeff OSK for text input

tablesave functions - author unknown but found at: http://lua-users.org/wiki/SaveTableToFile

The sample tile sheets included were found on http://www.gaminggroundzero.com/home.html

Special thanks to everyone at QJ.net, Evilmana, and PSP3d who help me figure some of this stuff out.

External links

Advertising: