Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 16th, 2005, 5:04 PM   #1
Aourhgad
Programmer
 
Join Date: Dec 2004
Posts: 36
Rep Power: 0 Aourhgad is on a distinguished road
Send a message via AIM to Aourhgad Send a message via MSN to Aourhgad
Converting to a scrolling tile engine....ABSURD!

Well I feel I am trying to do something very foolish. I want to change my game engine from a room by room deal, to a scrolling tile engine. I want to walk from one map into the other witht he effect of a seamless transition.

I've done some research and I have decided to load up 9 maps in a 3 by 3 grid. Unfortunately i can't figure out how i'm going to handle rendinger parts of lets say if i am inbetween the top and middle row and moving left. As of now it loads the data from the txt files into ana rray and then renders it on a surface. I am thinking of rendering all 9 maps onto 1 surface at a time.

Anyhow how would i achieve rendering the maps while there can be parts of 4 different maps visible at once?
Aourhgad is offline   Reply With Quote
Old Feb 16th, 2005, 7:28 PM   #2
Aourhgad
Programmer
 
Join Date: Dec 2004
Posts: 36
Rep Power: 0 Aourhgad is on a distinguished road
Send a message via AIM to Aourhgad Send a message via MSN to Aourhgad
as of now it works within the 9 maps loaded, I notice some performance drops now since its not room by room anymore. I do not know which type too keep. Also lines apear across the screen sometimes during the time its scrolling if you scroll for a while.

anyhow if you are interested to know how i did it i kept track of another 2 x and y variables that tell the engine where to start drawing the visible area of the map
Aourhgad is offline   Reply With Quote
Old Feb 16th, 2005, 9:16 PM   #3
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Makes sense to me. If you see some code that's really slowing it down, post it here and we can try and optimize it.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Feb 17th, 2005, 12:00 AM   #4
Aourhgad
Programmer
 
Join Date: Dec 2004
Posts: 36
Rep Power: 0 Aourhgad is on a distinguished road
Send a message via AIM to Aourhgad Send a message via MSN to Aourhgad
Yeah it is getting slowed down sometimes because if i amc onstantly moving in one direction where it starts too scroll at the edge, it will slow down sometimes.

Other htan that i think its doing ok. I will definitely need help optimizing it soon.
Aourhgad is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:44 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC