xLIB Examples
Moderator: tr1p1ea
- Jim e
- Calc King
- Posts: 2457
- Joined: Sun 26 Dec, 2004 5:27 am
- Location: SXIOPO = Infinite lives for both players
- Contact:
As far as examples go I tried a greyscal maker, which came out surpiresingly good, and smooth scroller. The smooth scroller actually had pretty decent speed for basic but there seems to be problem the scroll routine and the sprite routine, might be bugs or I don't how to implement them right but it was still pretty good.
Ok I started rewriting the map engine from scratch, but it doesnt scroll the same way. Now once the char is in the middle of the screen it start scrolling then stop scrolling once you reach the edge of the screen. Collision detection isnt implemented yet though. It runs at 4 fps so far. later I might optimise more to make it faster
- dysfunction
- Calc Master
- Posts: 1454
- Joined: Wed 22 Dec, 2004 3:07 am
- Location: Through the Aura
Unfortunately Kevin no longer posts here, so here's what he did:
Well, this is not really a project or something big but I'll post it anyway. This is also to let you know I am coding a bit for calcs now wink.gif . as you might know tr1p1ea asked people to make some xLIB example and to optimise his own, but since It was way too hard to understand (I am more experienced in coding than looking at other ppl code tongue.gif ) so instead of optimising his engine I decided to rewrite it and mod it a bit. Here is what I got so far:
So far I think only tr1p1ea himself, a few ppl on #tcpa and a few ppl on UnitedTI saw it. As you might notice it flickers like mad when scrolling blink.gif , its alerady slow and the collision detection isnt even finished yet but I though I would experiment scrolling grayscale anyway. On the SE it doesnt look bad. I might post the source code which isnt fully optimised yet once collision detection is implemented and I will make a non-GS version as well
"You're very clever, young man, but it's turtles all the way down!"
flash debbuger doesn't seem to like it...oh well, I should be able to get it done the rest of the way (as far as a demo goes...just to show the concept as opposed to a game) very soon...it is faster than kevin's diortem (right now, still need to check for optimisations) and it has smooth scrolling. Besides, it is rather ugly right now...black tiles are floors, simple ladder tile, ugly slopes, ect.