[SHATTERED OASIS] Oh gosh, not again...

Projects that are no longer in development anymore.

Moderator: MaxCoderz Staff

DarkerLine
Calc Wizard
Posts: 526
Joined: Tue 08 Mar, 2005 1:37 am
Location: who wants to know?
Contact:

Post by DarkerLine »

It'd be simpler, but I don't think it would be faster (although it certainly would be smaller, and I don't think the speed difference would be noticeable at all).
just try to be nice to people.
_________________
My TI Blog - http://mpl.unitedti.org/
User avatar
BetaSword
Maxcoderz Staff
Posts: 140
Joined: Sat 18 Dec, 2004 3:34 am
Location: West Chicago.
Contact:

Post by BetaSword »

Hmm... I don't really know how what kind of math I'd use to determine if a space can be walked on with that, though. Currently, for the collision detection matrix, it's a bunch of ones and zeros, ones showing solid objects, and zeros showing walkable objects. Of course, I could also redesign the way the sprites are layed out in the sprite sheet pic, so that, say, all sprites under 20 are walkable, and all sprites 20 and over are solid... But sometimes you want certain areas to be solid, and sometimes you don't. Eh, I'll see how fast it is when I can implement xLIB. Though at the moment, even, the actual walking speed is perfectly fine for me on the SE. It's just the loading the rooms part that takes forever.
User avatar
kalan_vod
Calc King
Posts: 2932
Joined: Sat 18 Dec, 2004 6:46 am
Contact:

Post by kalan_vod »

BetaSword wrote:Hmm... I don't really know how what kind of math I'd use to determine if a space can be walked on with that, though. Currently, for the collision detection matrix, it's a bunch of ones and zeros, ones showing solid objects, and zeros showing walkable objects. Of course, I could also redesign the way the sprites are layed out in the sprite sheet pic, so that, say, all sprites under 20 are walkable, and all sprites 20 and over are solid... But sometimes you want certain areas to be solid, and sometimes you don't. Eh, I'll see how fast it is when I can implement xLIB. Though at the moment, even, the actual walking speed is perfectly fine for me on the SE. It's just the loading the rooms part that takes forever.

With xLIB the load time will be a thing of the past, also yeah if you want tile 1 to be walkable, but in the next room you don't want it to be you can just make that same tile for 28 and it can be walked on.
gangsta
Sir Posts-A-Lot
Posts: 171
Joined: Wed 12 Oct, 2005 10:46 pm

Post by gangsta »

<Offtopic>You should change the subtitle of the forum to "The RPG that definitely hasn't died even though it looks like it"</offtopic>
Last edited by gangsta on Wed 30 Nov, 2005 1:56 am, edited 1 time in total.
dragon__lance
Regular Member
Posts: 82
Joined: Sat 18 Jun, 2005 9:15 pm
Contact:

Post by dragon__lance »

BetaSword wrote:Hmm... I don't really know how what kind of math I'd use to determine if a space can be walked on with that, though. Currently, for the collision detection matrix, it's a bunch of ones and zeros, ones showing solid objects, and zeros showing walkable objects. Of course, I could also redesign the way the sprites are layed out in the sprite sheet pic, so that, say, all sprites under 20 are walkable, and all sprites 20 and over are solid... But sometimes you want certain areas to be solid, and sometimes you don't. Eh, I'll see how fast it is when I can implement xLIB. Though at the moment, even, the actual walking speed is perfectly fine for me on the SE. It's just the loading the rooms part that takes forever.

i mean that u just have one matrix, ur tile matrix. Since xlib ignores decimals in matrixes, u can add a .1 after each unwalkable tile and alter it to ur needs. Then for collusion detection, if the tile has a .1 after it, then u can't walk there.i could send u specific code if u want...
@Darkerline: of couse its faster to only store one matrix instead of 2, i use this way for my own project, it should only take about 1 sec, even on a black ti-83+ :)
User avatar
BetaSword
Maxcoderz Staff
Posts: 140
Joined: Sat 18 Dec, 2004 3:34 am
Location: West Chicago.
Contact:

Post by BetaSword »

gangsta wrote:<Offtopic>

You should change the subtitle of the forum to "The RPG that definitely hasn't died even though it looks like it"


I can't. Only admins can. And I'm not an admin. Otherwise, I probably would.

dragon_lance wrote:i mean that u just have one matrix, ur tile matrix. Since xlib ignores decimals in matrixes, u can add a .1 after each unwalkable tile and alter it to ur needs. Then for collusion detection, if the tile has a .1 after it, then u can't walk there.i could send u specific code if u want...


I understand what you're talking about... I just don't quite know how to quickly make it discern whether or not the value has a decimal attached to it or not to make it walkable. Otherwise, I probably would do that, as it would be quicker, and smaller. As it is, each matrix is about 845 bytes. Not too bad, considering most the stuff can be archived while it's running, thanks to xLIB. But hey, every byte helps :)
gangsta
Sir Posts-A-Lot
Posts: 171
Joined: Wed 12 Oct, 2005 10:46 pm

Post by gangsta »

well, kv is...I hope he hears our cry for help!

Gangsta wrote:You should change the subtitle of the forum to "The RPG that definitely hasn't died even though it looks like it
dragon__lance
Regular Member
Posts: 82
Joined: Sat 18 Jun, 2005 9:15 pm
Contact:

Post by dragon__lance »

@beta sword, just in the middle of movement prgm, use fpart([A](Y\8+1,X\8+1)), assuming u have x and y as coordinates. this should give u the decimal, whether zero, or .1 :) Then, id also recommend u have a tilemap prgm, or do u already use one, in it, add in decimal adding capabilities.
User avatar
BetaSword
Maxcoderz Staff
Posts: 140
Joined: Sat 18 Dec, 2004 3:34 am
Location: West Chicago.
Contact:

Post by BetaSword »

Hoohah, just got the test version of xLIB, so now I set out to see if A) It's got any noticable bugs, and B) How much it speeds up SO. Screenshots should follow shortly!

Edit: First test results in! And the results are.......


Rooms are INSTANTLY RENDERED. Like, holy crap on a stick. xLIB rocks my socks. More testing shall commence!
User avatar
dysfunction
Calc Master
Posts: 1454
Joined: Wed 22 Dec, 2004 3:07 am
Location: Through the Aura

Post by dysfunction »

Yeah the asm-like tilemap rendering is great, of course that was the very first feature xlib had back even before it was an app. Glad to see you're putting it to good use!
Image


"You're very clever, young man, but it's turtles all the way down!"
User avatar
BetaSword
Maxcoderz Staff
Posts: 140
Joined: Sat 18 Dec, 2004 3:34 am
Location: West Chicago.
Contact:

Post by BetaSword »

So am I. Just gotta finish figuring out how to replace everything, and then I can start the xLIB optimizing and such.
katmaster
Sir Posts-A-Lot
Posts: 252
Joined: Tue 09 Aug, 2005 9:34 pm
Location: south of the north pole
Contact:

Post by katmaster »

Wow, xLIB improved it by a TON, from the looks of the screenshots. It is really great.
cheese=yum
Image
User avatar
dysfunction
Calc Master
Posts: 1454
Joined: Wed 22 Dec, 2004 3:07 am
Location: Through the Aura

Post by dysfunction »

BetaSword wrote:
dragon_lance wrote:i mean that u just have one matrix, ur tile matrix. Since xlib ignores decimals in matrixes, u can add a .1 after each unwalkable tile and alter it to ur needs. Then for collusion detection, if the tile has a .1 after it, then u can't walk there.i could send u specific code if u want...


I understand what you're talking about... I just don't quite know how to quickly make it discern whether or not the value has a decimal attached to it or not to make it walkable. Otherwise, I probably would do that, as it would be quicker, and smaller. As it is, each matrix is about 845 bytes. Not too bad, considering most the stuff can be archived while it's running, thanks to xLIB. But hey, every byte helps :)


Code: Select all

If 10fPart([MatrixName](Map_Y_Offset + Y/8 + 1,Map_X_Offset + X/8 + 1))=0


If that is zero, then your tile is walkable. Map offset is the number of spaces the top-left corner tile on the screen is offset from the top-left corner of your map, X and Y are (duh) the X and Y positions of your character onscreen.
Image


"You're very clever, young man, but it's turtles all the way down!"
DarkerLine
Calc Wizard
Posts: 526
Joined: Tue 08 Mar, 2005 1:37 am
Location: who wants to know?
Contact:

Post by DarkerLine »

Why do you need If 10fPart(..)=0?

If not(fPart(.. works just as well.
just try to be nice to people.
_________________
My TI Blog - http://mpl.unitedti.org/
User avatar
dysfunction
Calc Master
Posts: 1454
Joined: Wed 22 Dec, 2004 3:07 am
Location: Through the Aura

Post by dysfunction »

Well, I was thinking along the lines of having not just 0 and 0.1, but also 0.2 etc. That way you can have many types of tiles, for instance, I don't know how you detect tiles with actions associated with them (such as that gate), but you could put a decimal for action-objects.
Image


"You're very clever, young man, but it's turtles all the way down!"
Post Reply