gfxgfxFreeBASIC Games Directory Forumgfxgfx
gfx gfx
gfx
Welcome, Guest. Please login or register. May 25, 2013, 08:18:31 AM

Login with username, password and session length
11.5.2013 - Added a webpage for the latest FBGD competition.

13.3.2013 - Members registrations temporary disabled. For all membership requests, please email me: lachie13@yahoo.com

30.11.2012 - The ninth issue of BASIC Gaming is out! Read it here: http://games.freebasic.net/forum/index.php?topic=560.0

22.11.2012 - Be sure to check our currently running annual FBGD game making competition. This year's theme is SEASONS OF THE YEAR, 300 $ first place prize, and the competition runs till 18th of February. Link: http://games.freebasic.net/forum/index.php?topic=559.0
gfx
gfx
*
gfxgfx
gfxgfx gfxgfx
gfxgfx Home Help Search Login Register   gfxgfx
gfx gfx
gfx
Pages: [1]
Print
Author Topic: MappyFB  (Read 1677 times)
Merick
Amoeba
*
Posts: 11



View Profile
« on: February 27, 2008, 05:26:41 AM »

Here's the latest version, it's not complete yet but the test app can display and scroll maps with standard square/rectangular tiles.

http://freefile.kristopherw.us/uploads/merick/mappyfb.zip
« Last Edit: March 08, 2008, 09:23:04 PM by Merick » Logged

The cake is a lie!
Leonheart
Guest
« Reply #1 on: February 28, 2008, 01:15:48 AM »

Why doesn't convert it to bmp or your own format. You can always use binary file mode.
Logged
Merick
Amoeba
*
Posts: 11



View Profile
« Reply #2 on: February 28, 2008, 05:42:35 PM »

because I want to be able to use all the stuff that's been built into the fmp format, like animated tiles and stuff

*edit*

ok, I've got it partially figured out, right now it only works with *.fmp files that have 8bpp gfx in them:

* bad link removed *
« Last Edit: March 13, 2008, 03:20:57 PM by Merick » Logged

The cake is a lie!
Merick
Amoeba
*
Posts: 11



View Profile
« Reply #3 on: March 08, 2008, 09:23:56 PM »

bump for update, see first post for link
Logged

The cake is a lie!
KristopherWindsor
Forum Sage
*****
Gender: Male
Posts: 363


The Thirsty Smiley


View Profile WWW Email
« Reply #4 on: March 09, 2008, 01:45:13 AM »

If you ever decide to avoid FMP, animating sprites with an array of images is quite easy. ;-)
Logged

nkk_kan
Forum Howler
****
Gender: Male
Posts: 180

Let's rocK~!

nkk_kan
View Profile WWW Email
« Reply #5 on: March 09, 2008, 01:52:50 AM »

it doesn't work on my pc

Two windows( console and the application window) open and close down..

In console window, i see this,

map gfx color depth : 8
screen color depth : 16
Logged

Merick
Amoeba
*
Posts: 11



View Profile
« Reply #6 on: March 09, 2008, 05:44:15 AM »

Yeah, sorry about that. When I originally posted for the update, I had the test app loading test.fmp, which was working fine. Aftwerwards, I edited it to load test2.fmp, which didn't work. Without realizing it, I replaced the update with the broken version hen trying to get some help on it in the irc channel.

I don't know exactly what's wrong now, but I think it's something to do with the way that I'm converting the image data from the raw ptr created by the MappyUP cpp code
Logged

The cake is a lie!
hd_
Recruit
**
Posts: 35


View Profile
« Reply #7 on: March 13, 2008, 02:26:32 AM »

The link is down? This could be very useful for my next project Smiley
Logged
Merick
Amoeba
*
Posts: 11



View Profile
« Reply #8 on: March 13, 2008, 03:30:08 PM »

Ok, the link in the first post should be working again.

In it's current state, I've got it so that it can load an fmp with 8bit images and convert the images so that they can be used in any color depth - you just  need set to set the screen mode before you call the image_convert function. However, maps that contain images which are higher than 8bit don't work yet because I haven't been able to figure out working conversion methods for the raw data.

I've also got basic map scrolling/clipping done, it's based on the pixel x,y location which is stored in the xpos and ypos members of the mappyFB type. The tile animation is done by the original C code, so I didn't really have to do anything special to get that working.
Logged

The cake is a lie!
Merick
Amoeba
*
Posts: 11



View Profile
« Reply #9 on: March 16, 2008, 06:36:46 PM »

bump for update (same link as first post)

it can now load maps with 8,16,24, and 32bit images
Logged

The cake is a lie!
Pages: [1]
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
Cerberus design by Bloc
Valid XHTML 1.0! Valid CSS!
gfx
gfxgfx gfxgfx