Author Topic: Rule and Conquer: Dormant  (Read 31408 times)

0 Members and 1 Guest are viewing this topic.

ASHBAD_ALVIN

  • Guest
Re: Rule and Conquer: My Game In Progress
« Reply #150 on: October 28, 2010, 07:23:04 pm »
yes, that is what they are used for, basically the coordinate of the tile hat will be drawn in the top right (if you know what I mean)

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: Rule and Conquer: My Game In Progress
« Reply #151 on: October 28, 2010, 07:24:16 pm »
yes, that is what they are used for, basically the coordinate of the tile hat will be drawn in the top right (if you know what I mean)

i don't completely follow... mainly because you said the coordinate of the tile that will be drawn in the top right. isn't the coordinate of the tile drawn in the top right *always* (0,80)?

edit: at least for 16x16 tiles.
« Last Edit: October 28, 2010, 07:24:52 pm by nemo »


ASHBAD_ALVIN

  • Guest
Re: Rule and Conquer: My Game In Progress
« Reply #152 on: October 28, 2010, 07:24:46 pm »
oh sorry, top left :3

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: Rule and Conquer: My Game In Progress
« Reply #153 on: October 28, 2010, 07:26:01 pm »
oops. i've been thinking that you mean the coordinate of where the tile will be drawn on the screen. you mean the coordinate in the tilemap. ok, back to analyzing.


ASHBAD_ALVIN

  • Guest
Re: Rule and Conquer: My Game In Progress
« Reply #154 on: October 28, 2010, 07:26:31 pm »
yeah -- you have it right ;)

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: Rule and Conquer: My Game In Progress
« Reply #155 on: October 28, 2010, 07:28:36 pm »
one last question. is this being coded in SourceCoder? if not, then change
Code: [Select]
sub(DSP,I*16,J*16,{Y+J*30+X+I+{L1}}*64+{L2}
to
Code: [Select]
sub(DSP,I*16,J*16,{Y+J*30+X+I+L1}*64+L2

otherwise, what IS displaying on your screen with your original routine?


ASHBAD_ALVIN

  • Guest
Re: Rule and Conquer: My Game In Progress
« Reply #156 on: October 28, 2010, 07:32:05 pm »
Nah.. I tried what you siad, but it didn't work.  the appvar pointers are stored at the value pointed to by these areas, so It will always draw random crap

Before it displayed radom sprites (all of them different, and usually very dark with their colors being mostly black or gray) that changed each time I compiled the source (but the appvars always stayed in the same position

It's being done on-calc no source coder

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: Rule and Conquer: My Game In Progress
« Reply #157 on: October 28, 2010, 07:35:12 pm »
alright. well the {L1} is a value between 0-255. the {L1}r is a value between 0-65535. a pointer to an appvar is a value between 0-65535. so, when you get the pointer to the appvar, do you use this code
Code: [Select]
GetCalc("appvAPPVAR")->{L1}
or this code:
Code: [Select]
GetCalc("appvAPPVAR")->{L1}^r //supposed to be a superscript r

the latter is what you want. and also:
sub(DSP,I*16,J*16,{Y+J*30+X+I+{L1}r}*64+{L2}r

edit: [2nd][apps] for the superscript r by the way.
« Last Edit: October 28, 2010, 07:36:41 pm by nemo »


ASHBAD_ALVIN

  • Guest
Re: Rule and Conquer: My Game In Progress
« Reply #158 on: October 28, 2010, 07:38:42 pm »
it's mostly fixed now :D

it displays the correct pattern of sprites, just the wrong sprites.

I think I'll be fine from here on, and can figure out the rest -- thanks so much nemo! :D :D :D :D :D

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: Rule and Conquer: My Game In Progress
« Reply #159 on: October 28, 2010, 07:39:32 pm »
no problem. sorry it took a lot of questioning lol


ASHBAD_ALVIN

  • Guest
Re: Rule and Conquer: My Game In Progress
« Reply #160 on: October 28, 2010, 07:40:05 pm »
that's okay -- you were able to fix my problem very well! :D

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: Rule and Conquer: My Game In Progress
« Reply #161 on: October 28, 2010, 07:41:15 pm »
oh, and by the way, don't store anything to {L1+1} or {L2+1} when using the routine, or you'll overwrite the pointer to the appvar and you'll get some nice 4-level grayscale RAM displayed on your screen  ;)


ASHBAD_ALVIN

  • Guest
Re: Rule and Conquer: My Game In Progress
« Reply #162 on: October 28, 2010, 07:42:42 pm »
lol very true, I can only use multiples of two ;D

ASHBAD_ALVIN

  • Guest
Re: Rule and Conquer: My Game In Progress
« Reply #163 on: October 29, 2010, 01:19:02 pm »
I finished the working tilemapper with amazingly littel flicker even during movement, will post the program(s) in and hour when I get home from school
« Last Edit: October 29, 2010, 01:19:14 pm by ASHBAD_ALVIN »

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Rule and Conquer: My Game In Progress
« Reply #164 on: October 29, 2010, 01:37:05 pm »
I finished the working tilemapper with amazingly littel flicker even during movement, will post the program(s) in and hour when I get home from school

Can't wait!  Can't wait!