Bookstore

Recent

Author Topic: 2D isometric map  (Read 6596 times)

Neuromancer

  • New Member
  • *
  • Posts: 38
    • My personal website
2D isometric map
« on: September 04, 2007, 01:42:18 pm »
Hi,

Do you know if there is a component aimed to display a simple 2D isometric map for Lazarus ? I found many components but only for Delphi (DirectX). Else is it possible to display such a map using a TImage ?

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3541
RE: 2D isometric map
« Reply #1 on: September 04, 2007, 02:33:52 pm »
If you are doing something interactive, like a game, I would suggest creating a TCustomControl descendent, and paint on it, as explained here:

http://wiki.lazarus.freepascal.org/Developing_with_Graphics#Motion_Graphics_-_How_to_Avoid_flickering

The TCustomControl approach should be efficient enougth for most uses. If you are building something that really needs a lot of performance, then consider using OpenGL. There are some OpenGL controls for Lazarus.

Neuromancer

  • New Member
  • *
  • Posts: 38
    • My personal website
2D isometric map
« Reply #2 on: September 04, 2007, 03:43:22 pm »
I found the this sample code but it lacks of comments. So I don't really understand it, althougth it seens very interesting. Could someone help me ?

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 975
    • Burdjia
2D isometric map
« Reply #3 on: September 04, 2007, 05:43:49 pm »
You should visit Pascal Game Development web site.
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal