Author Topic: The Massacre  (Read 20130 times)

0 Members and 2 Guests are viewing this topic.

Offline Halifax

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1334
  • Rating: +2/-1
    • View Profile
    • TI-Freakware
The Massacre
« Reply #60 on: May 06, 2007, 02:51:00 pm »
It definetly isn't dead there just hasn't been progress. School is a time sucker, but summer is coming up, and then there are the weekends when I work so that's all. Nothing is dead. Believe I will be working on this over the summer.
There are 10 types of people in this world-- those that can read binary, and those that can't.

Offline Speler

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 857
  • Rating: +6/-2
    • View Profile
The Massacre
« Reply #61 on: May 06, 2007, 03:03:00 pm »
That's good to hear.

Offline Halifax

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1334
  • Rating: +2/-1
    • View Profile
    • TI-Freakware
The Massacre
« Reply #62 on: May 14, 2007, 09:20:00 am »
Ok I think it's time you guys no a little bit of what I have been thinking of because I have been thinking seriously in this time that I have gotten off. First off I have decided to make this my PRIMARY project over the summer and that will not change. Secondly is an advancement in the graphics aspect of this game so hear it goes.

I was sitting around one dark and dreay night staring at Jim_e's tilemapper code, a modified version of Dwedit's but faster, and I was thinking. Crap this goes really slow when you have 255 tiles because you have the shift 2040 bytes. So I was like how the hell can I make this faster! Well I have come up with two plans that may or may not work because I have not timed them out yet.

1. Well let's say we can cut down how many tiles it has to shift. I have come up with a plan to find out the 96 tiles, 12x8, that the tilemapper will be mapping. Then all you have to do is shift 96 or less tiles instead of 255 tiles. So that should be a great speed boost although the process of making sure there are no duplicates is very hard although I will try.
2. Well if the offset that the tiles will be shifted is 7 them that's going to take a d*** long time to shift all of those tiles to the left. So then I got an idea why not split them. If the offset is between -3 then start in the left byte and if it is between 4-7 then start in the right byte. So it's like this

Offset between -3
---- shift right
%11111111,%00000000

Offset between 4-7
<------ shift left
%00000000,%11111111

So that means that there will only be a maximum of 3 shifts or less to do then 7 or less. I think these will do a considerable job in speeding up the process of the smoothscrolling tilemap.

I will begin dissection of Jim_e's cryptic code tonight o.oblink.gif
There are 10 types of people in this world-- those that can read binary, and those that can't.

Offline Speler

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 857
  • Rating: +6/-2
    • View Profile
The Massacre
« Reply #63 on: May 14, 2007, 09:23:00 am »
Yay!  The Massacre is back!

graywolf

  • Guest
The Massacre
« Reply #64 on: May 14, 2007, 12:54:00 pm »
I can't wait for more screenshots! :)smile.gif

Offline Halifax

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1334
  • Rating: +2/-1
    • View Profile
    • TI-Freakware
The Massacre
« Reply #65 on: May 14, 2007, 02:19:00 pm »
Screenshot wh***s haha j/k. Anyways I don't know judging on the amount of time that I have to dissect this code and then write my own that is App friendly then I may have screenshots for next week or something, I am sorry to say but I most definetly don't like Jim_e's use of SMC gah!
There are 10 types of people in this world-- those that can read binary, and those that can't.

Offline Jon

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 278
  • Rating: +0/-0
    • View Profile
The Massacre
« Reply #66 on: May 14, 2007, 02:24:00 pm »
here's what you do
make jim_e's code an inc file, and .org it to $9d95, then at runtime, copy the code to $9d95, and then call it.  Then it'll be in RAM, and can use SMC as needed.
PS: make sure you clear out $9d95-$bfff before exiting the app, or bad things will happen.

Offline Halifax

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1334
  • Rating: +2/-1
    • View Profile
    • TI-Freakware
The Massacre
« Reply #67 on: May 14, 2007, 02:26:00 pm »
Yeah I know about that process, but first off I don't think you have read the post up the page a little further. I am not using his code at all in fact. I am just studying it and them making my own smoothscrolling tilemapper for a number of reasons. The special clipping I will need to do, animations, and integration. So I am just making an app compatible smoothscrolling tilemapper, maybe later I will convert it to SMC.
There are 10 types of people in this world-- those that can read binary, and those that can't.

Offline Jon

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 278
  • Rating: +0/-0
    • View Profile
The Massacre
« Reply #68 on: May 14, 2007, 03:09:00 pm »
ah, i see now

Offline Halifax

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1334
  • Rating: +2/-1
    • View Profile
    • TI-Freakware
The Massacre
« Reply #69 on: May 16, 2007, 02:44:00 pm »
I have to give props to Jim_e this is some of the easiet to read and most effcient pieces of code I have ever seen although some parts really got me stumped and I had to get down to the dirty part of all of the bytes of commands :(sad.gif That was not fun, but it's alright I got through it and dissected it fully. Things are running smoothly and I have went on to start writing my own app-friendly tilemapping routine. So with how it's going I am definetly thinking it will be posted by this weekend or week.

I am currently on to writing the tile detection routine that detects all the tiles that are going to be written to the screen.
There are 10 types of people in this world-- those that can read binary, and those that can't.

Fallen Ghost

  • Guest
The Massacre
« Reply #70 on: May 16, 2007, 03:44:00 pm »
App tilemapper that goes real fast? You got me interested here...

If you need any help, I'll be very willing to give some of my time.

12 height or 12 wide? cause 12 wide is pretty strange and non-efficient, 16 wide would be better, but in case you meant 8 wide, then it's good. still 16 could be more efficient if it was possible.

Offline Jon

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 278
  • Rating: +0/-0
    • View Profile
The Massacre
« Reply #71 on: May 16, 2007, 09:57:00 pm »
I'm interested too :Dbiggrin.gif
An app-friendly tilemapper! How could one not be interested??

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
The Massacre
« Reply #72 on: May 17, 2007, 02:10:00 am »
12 wide isn't strange, it's THE WIDTH OF THE SCREEN. :rolleyes:rolleyes.gif
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Liazon

  • Guest
The Massacre
« Reply #73 on: May 17, 2007, 04:58:00 am »
i think Fallen Ghost was talking about tile sizes and Halifax was talking about the screen.

Offline Halifax

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1334
  • Rating: +2/-1
    • View Profile
    • TI-Freakware
The Massacre
« Reply #74 on: May 17, 2007, 08:29:00 am »
Sorry I don't know what you guys are talking about seriously...when did I mention 12? The tile size if definetly 8 so far... dun dun duh haha. Really I intend on making a 16x16 tilemapper that is app-friendly. But basically why I am making this 8x8 is for tile manipulation. I *WANT* to have map deformation which would call for having 2 16x16 tiles for one being deformed and one not. But if I have 4 8x8 tiles making up a 16x16 tile then I can change one to make it deformed so that 40 bytes to 64 bytes. That is my only reason for using a 8x8 tilemapper, but if I decide I don't want deformation then I will have the 16x16 tilemapper there just in case.

@Fall_Ghost: Haha it's funny you say that because you usually are the first one I come to for anything about apps. But yeah I will probaly need you for the 16x16 app-friendly tilemapper, but so far I have like half of the 8x8 tilemapper code working in an app and debugged fine.

Oh yeah and I am keeping this on the same track so both the 8x8 and 16x16 tilemappers will be open-source!

wow and I never knew app-friendly smoothscrolling tilemappers were so special. Aren't there already like a couple out there??
There are 10 types of people in this world-- those that can read binary, and those that can't.