Author Topic: Isomap?? Here we go ;)  (Read 8108 times)

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5013
  • O Rly?
    • View Profile
Isomap?? Here we go ;)
« on: 2007-Apr-05 »
Hi my english speaking friends,

I've made a simpel Isomap.
I hope anyone need this, or was looking for.
Screenshot:



Tile "ground.png": (save as PNG):



Code: GLBasic [Select]
// --------------------------------- //
// Project: Iso
// Start: Thursday, April 05, 2007
// IDE Version: 4.142


LOADSPRITE "ground.png",1 // Load Isosprite

DIM tile[20][20] // Set Array

WHILE TRUE

//-----Set Locals----------
w=72     // Tile width
h=36     // Tile hight
w2=w/2   // Half Tile width
h2=h/2   // Half Tile hight
//-------------------------

FOR x = 0 TO 19
        FOR y = 0 TO 19
       
                xpos = w2*(x-y)-w2  // calculate xpos
                ypos = h2*(x+y)     // calculate ypos
               
                DRAWSPRITE 1,xpos-ScrollX,ypos-ScrollY    // Draw sprite
       
        NEXT
NEXT

//--------Scroll-----------------------

IF KEY(200) THEN ScrollY = ScrollY -3
IF KEY(208) THEN ScrollY = ScrollY +3
IF KEY(203) THEN ScrollX = ScrollX -3
IF KEY(205) THEN ScrollX = ScrollX +3

//---------------------------------------

SHOWSCREEN
WEND
END

Download : Click me

[attachment deleted by admin]
« Last Edit: 2008-Aug-18 by Schranz0r »
I <3 DGArray's :D

PC:
AMD RYzen 7 1700 @3.9Ghz, 16GB HyperX Fury 2666Mhz Ram, ASUS ROG GTX 1060 STRIX 6GB, Windows 10 Pro 64Bit, MSi Tomahawk B350 Mainboard

Lazarus

  • Guest
Isomap?? Here we go ;)
« Reply #1 on: 2007-Apr-05 »
Very handy. :)  Thanks a mill, Schranz0r.

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5013
  • O Rly?
    • View Profile
Isomap?? Here we go ;)
« Reply #2 on: 2007-Apr-05 »
no problem  ;)
I <3 DGArray's :D

PC:
AMD RYzen 7 1700 @3.9Ghz, 16GB HyperX Fury 2666Mhz Ram, ASUS ROG GTX 1060 STRIX 6GB, Windows 10 Pro 64Bit, MSi Tomahawk B350 Mainboard

Hb!

  • Guest
Isomap?? Here we go ;)
« Reply #3 on: 2007-Dec-11 »
Umm I might need it, Thanks, I think it could be handy.

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2606
    • View Profile
Isomap?? Here we go ;)
« Reply #4 on: 2007-Dec-11 »
Nice example! ;)
Cheers,

Ian.

“It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration.”
(E. W. Dijkstra)

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10695
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Isomap?? Here we go ;)
« Reply #5 on: 2007-Dec-11 »
aye! Looking ace!

kin

  • Guest
Isomap?? Here we go ;)
« Reply #6 on: 2008-Jan-05 »
Great! Now I have a good example to use!
I guess this method is faster than tiling 5000+ sprites lol.

thnx

onugl

  • Guest
Re: Isomap?? Here we go ;)
« Reply #7 on: 2008-Jul-25 »
 :giveup: Please, can anyone give me this code?.

Thank you

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10695
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Isomap?? Here we go ;)
« Reply #8 on: 2008-Jul-26 »
it's in the 1st post. The download is broken, but the code is there in text form.

onugl

  • Guest
Re: Isomap?? Here we go ;)
« Reply #9 on: 2008-Jul-26 »
 :noggin: :rolleyes: :zzz: Thank you

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5013
  • O Rly?
    • View Profile
Re: Isomap?? Here we go ;)
« Reply #10 on: 2008-Aug-18 »
 :good:

see first post :)
I <3 DGArray's :D

PC:
AMD RYzen 7 1700 @3.9Ghz, 16GB HyperX Fury 2666Mhz Ram, ASUS ROG GTX 1060 STRIX 6GB, Windows 10 Pro 64Bit, MSi Tomahawk B350 Mainboard

onugl

  • Guest
Re: Isomap?? Here we go ;)
« Reply #11 on: 2008-Aug-18 »
:good:

see first post :)
=D Thank you! it give me some ideas for a pendent remake ;) (Now, I only need more time!)

Offline AndyH

  • Dr. Type
  • ****
  • Posts: 383
    • View Profile
    • http://www.ovine.net/
Re: Isomap?? Here we go ;)
« Reply #12 on: 2008-Aug-19 »
Looks good Schranz0r!