BASIC

Author Topic: Mappy  (Read 6003 times)

MrTAToad

  • Guest
Mappy
« on: 2010-Apr-12 »
This is my first beta for my Mappy routine.  Just really need to add in the collision detection code.

Quite a simple demo, just use the cursor keys to move around.

The graphics are processed from within the FMP file itself.

It uses a bit from Moru's routine (converted to C), and will use the collision detection routine when I get around to it!

[attachment deleted by admin]
« Last Edit: 2010-Apr-12 by MrTAToad »

Offline Moru

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1775
    • View Profile
    • Homepage
Re: Mappy
« Reply #1 on: 2010-Apr-12 »
Nice work :-)

Can the included grafics handle an alpha channel?

Offline Marmor

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 909
  • 96A285CC
    • View Profile
    • my youtube channel
Re: Mappy
« Reply #2 on: 2010-Apr-12 »

MrTAToad

  • Guest
Re: Mappy
« Reply #3 on: 2010-Apr-12 »
Quote
Can the included grafics handle an alpha channel?
What I do is write the RGB values to a screen (with a sprite), and set the transparency to 0, although I'll be changing that to use the transparency value in the file.

Offline Kuron

  • Mr. Polyvector
  • ***
  • Posts: 238
    • View Profile
Re: Mappy
« Reply #4 on: 2010-Apr-13 »
Very nice work!  Runs at 1 FPS, but that is very good for not having hardware GL support on this clunker  =D

Offline Moru

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1775
    • View Profile
    • Homepage
Re: Mappy
« Reply #5 on: 2010-Apr-13 »
Ow, what sort of computer is that? 386? :-)

Offline Kuron

  • Mr. Polyvector
  • ***
  • Posts: 238
    • View Profile
Re: Mappy
« Reply #6 on: 2010-Apr-13 »
Close: Athlon 1.4GHz  :D  (1GB RAM, GeForce4 MX 4000 64MB, XP SP2.  The speed is because I am just using the drivers that came with XP SP2 (ie, no hardware GL support).  No biggie as it is an internet only machine.  I keep meaning to install the drivers, but I never get around to it.)

Offline Moru

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1775
    • View Profile
    • Homepage
Re: Mappy
« Reply #7 on: 2010-Apr-13 »
Hmm, even the 200 MHz GP2X gets at least 30 FPS with 8 layers of tiles... Has to be the drivers.

MrTAToad

  • Guest
Re: Mappy
« Reply #8 on: 2010-Apr-13 »
There may be a few more efficiency savings I can add to make it up to 2FPS

MrTAToad

  • Guest
Re: Mappy
« Reply #9 on: 2010-Apr-13 »
This should produce a fair speed increase.  Also give the second one a go too :)

[attachment deleted by admin]
« Last Edit: 2010-Apr-13 by MrTAToad »

Offline Ian Price

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 4147
  • On the shoulders of giants.
    • View Profile
    • My Apps
Re: Mappy
« Reply #10 on: 2010-Apr-13 »
That second demo is nice, but there is significant slowdown when scrolling diagonally, which is quite odd.
I came. I saw. I played.

MrTAToad

  • Guest
Re: Mappy
« Reply #11 on: 2010-Apr-13 »
Cant say I noted that...  :S  Will have to have a look there...

See if this is any better...

I've reduced some error checking that wasn't really needed, but beyond that there isn't much else to improve speed...

[attachment deleted by admin]
« Last Edit: 2010-Apr-13 by MrTAToad »

Offline Kuron

  • Mr. Polyvector
  • ***
  • Posts: 238
    • View Profile
Re: Mappy
« Reply #12 on: 2010-Apr-14 »
Tested the latest on my two dev machines.  Very nice and extremely smooth.  :good:

This is also a good advertisement for Mappy (which I haven't touched in years).

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10713
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Mappy
« Reply #13 on: 2010-Apr-14 »
very strange. It's not all that smooth for me, here. It's smooth, but when I scroll to where there's less stuff, it scrolls faster.

Offline Ian Price

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 4147
  • On the shoulders of giants.
    • View Profile
    • My Apps
Re: Mappy
« Reply #14 on: 2010-Apr-14 »
It's smooth, but when I scroll to where there's less stuff, it scrolls faster.

Yep. This ^^^. Speed definitely reduces when there are more tiles on screen, especially around the animated features.
I came. I saw. I played.