Author Topic: Tiling with Drawing Areas  (Read 558 times)

Technopeasant

  • Newbie
  • *
  • Posts: 17
    • Homepage
Tiling with Drawing Areas
« on: June 30, 2011, 11:35:11 PM »
I am working on making a terrain and texture model for my 2D engines, and I am making some progress with regards to making re-sizable textures - but this is done by scaling and stretching the images. Whilst this is actually working rather well, and would work if necessary, I would much rather be able to use small textures that tile. Does anyone have any idea how to draw down an object on a drawing area to a certain width and height and instead of stretching the image it tiles it?

While we are at it, even if it is off-topic, I am also wondering if anyone knows how to use mouse scrolls as inputs?

I am working on about three different projects at once now that it is my summer break.  ;)
Technical director,
Piga Software
http://icculus.org/piga/

Gambas (1.0.19, 2.23 & 3.0.0) coding since April 2007, focusing on game logic, graphics and artificial intelligence.
Running Fedora 15 (GNOME 3 Fallback, XFCE, LXDE) on a Dell Latitude D600 and Fedora 15 LXDE spin on a Lenovo 3000 N200.

Linux Basic

Tiling with Drawing Areas
« on: June 30, 2011, 11:35:11 PM »

Technopeasant

  • Newbie
  • *
  • Posts: 17
    • Homepage
Re: Tiling with Drawing Areas
« Reply #1 on: July 12, 2011, 02:50:00 AM »
Digging around, I found this old thread:

http://www.linuxbasic.net/programming/tile-engine/

But I am not entirely sure what about it makes it tile.

I'll look into it, but any comments would be appreciated.
Technical director,
Piga Software
http://icculus.org/piga/

Gambas (1.0.19, 2.23 & 3.0.0) coding since April 2007, focusing on game logic, graphics and artificial intelligence.
Running Fedora 15 (GNOME 3 Fallback, XFCE, LXDE) on a Dell Latitude D600 and Fedora 15 LXDE spin on a Lenovo 3000 N200.

Technopeasant

  • Newbie
  • *
  • Posts: 17
    • Homepage
Re: Tiling with Drawing Areas
« Reply #2 on: November 12, 2011, 05:31:36 AM »
By the way, as a follow up, I now have an example of working tiling in my Terrain Demo example:

http://whiteislandsoftware.com/index.php?page=downloads&type=entry&id=gambas-2_2%2Fmultimedia_2%2Fterrain-model

Gödel is noted for the bases inspiration for it.
Technical director,
Piga Software
http://icculus.org/piga/

Gambas (1.0.19, 2.23 & 3.0.0) coding since April 2007, focusing on game logic, graphics and artificial intelligence.
Running Fedora 15 (GNOME 3 Fallback, XFCE, LXDE) on a Dell Latitude D600 and Fedora 15 LXDE spin on a Lenovo 3000 N200.