0 Members and 1 Guest are viewing this topic.
i'M NOT SURE WHAT A SWORD SKILL IS BUT HERE'S THE SWORD ANIMATION FROM THE TWO SPRITES ON PG 13
HoMM: [==--------] Project 'resumed': I'm suffering overwhelming new ideas being popped up in my dreams :PtiDE: [----------] Explored and understood the main part of the code: just started writing a Tokenizer.
DrawInvLine(X1,Y1,X2,Y2DrawInv
the three sprite routines quigibo posted earlier sound great. i would love to see them implemented.also, someone spoke about rotating/flipping sprites as a built in command. instead of that, could we have a pxl-swap() command? the syntax would be something like pxl-swap(x1,y1,x2,y2). so if (0,0) is a black pixel and (0,1) is a white pixel, pxl-swap(0,0,0,1) would make (0,0) white and (0,1) black. i think this would greatly simplify the process of rotating and flipping sprites 90° can be implemented with some linear algebra and a pxl-swap() command.
Exch(L3,L6,768)Line(0,0,96,64)Exch(L3,L6,768)
Not inverting, swapping separate locations. Although you can already write your own routine for that, its relatively slow and not suitable for a rotation command.LordConiupiter, I don't do it the BASIC way because I like to do it the faster way. I'm thinking of rewriting the line routine in the future to make it faster but for now, I can't really change it.By the way, the reason I can't draw the circle or line to the backbuffer is that the routines are hardwired into the primary buffer and are not possible hijack like my other routines. For instance, the sprite drawing routine defines what buffer it will draw to in the very beginning of the routine so all I have to do is define a different buffer before calling it and then call the routine a little further down than it's normally called, skipping the part about the regular buffer, to hijack it with the new buffer. This isn't possible with the circle or line since the buffer is defined in the middle. I would have to write entirely separate routines since they can't share and it would inflate the code.
Well, I guess I will have to write my own Line() command. I'll do this in Axe as a sub, but I've no ID how to draw a line in a buffer? could u please give a very nbasic way a drawing a line? (i do not mean with Pxl-On() etc, just with writing bytes to the buffer, because I want to be able to write to custom buffers)If you want to draw something to the backbuffer, u just can do this:Code: (Axe) [Select]Exch(L3,L6,768)Line(0,0,96,64)Exch(L3,L6,768)I think that would be the fastest way at this moment. When I finish my linedrawing sub for Axe. I'll post it in Routines, so u can use it for any buffer.