Author Topic: Graphics Help?  (Read 2728 times)

0 Members and 1 Guest are viewing this topic.

Offline JWinslow23

  • Coder Of Tomorrow
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 556
  • Rating: +43/-6
  • I make quality calculator games...when I have time
    • View Profile
Graphics Help?
« on: February 18, 2014, 04:59:40 pm »
I've heard somewhere that you can absorb actual picture variables from the calc for use on buffers (only needed for compilation). Is this true, and if so, how do I do so?
Did you know that "Ammonia Gas" rearranged is "As Omnimaga"?
Click here for the only set of games you'll ever need
= ?

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: Graphics Help?
« Reply #1 on: February 18, 2014, 05:07:19 pm »
[PicVar] does what you want. There are 2 ways of absorbing pictures, as fullscreen images or as tilemaps.

:.As an image
:[Pic1]->Pic1
:
:.As a tilemap
:[Pic1r]->Pic1
:Pt-On(0,0,Pic1)
:Pt-On(8,0,Pic1+8)

Offline JWinslow23

  • Coder Of Tomorrow
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 556
  • Rating: +43/-6
  • I make quality calculator games...when I have time
    • View Profile
Re: Graphics Help?
« Reply #2 on: February 18, 2014, 07:29:11 pm »
Thanks; that's just what I needed.
Did you know that "Ammonia Gas" rearranged is "As Omnimaga"?
Click here for the only set of games you'll ever need
= ?

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Graphics Help?
« Reply #3 on: February 19, 2014, 02:46:35 am »
If you do it as an app and you want to change the Pic1 var while runtime, you'll need to store to some other variable, like, e.g. A instead.

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Graphics Help?
« Reply #4 on: February 19, 2014, 12:26:27 pm »
If you do it as an app and you want to change the Pic1 var while runtime, you'll need to store to some other variable, like, e.g. A instead.
Pic1 is not a var, it's a pointer. Which is why you "can't" change what it points to when you compile as an app, it points to a byte in ROM. So you'll have to copy what it points to to some place in RAM then you'll be able to modify the content of the copy, but still not what Pic1 points to. And doing Pic1→A is not copying what Pic1 points to "in" A (I don't even know what that would mean), it just gets A to point to the same place as Pic1 points to (so if you compiled as an app, A points to ROM too).
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s