Author Topic: ANother noob qusestion  (Read 9631 times)

0 Members and 1 Guest are viewing this topic.

Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: ANother noob qusestion
« Reply #15 on: November 28, 2011, 06:30:55 pm »
oh ok then :) thanks
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline LincolnB

  • Check It Out Now
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1115
  • Rating: +125/-4
  • By Hackers For Hackers
    • View Profile
Re: ANother noob qusestion
« Reply #16 on: November 28, 2011, 10:52:21 pm »
*sniff* I'm so proud of you, parser, my star pupil. (my only pupil. and not really actually my pupil).

...methinks you may have used that appvar technique from my GPOS thread? ;) (it's totally fine, I'm just curious)
Completed Projects:
   >> Spacky Emprise   >> Spacky 2 - Beta   >> Fantastic Sam
   >> An Exercise In Futility   >> GeoCore

My Current Projects:

Projects in Development:
In Medias Res - Contest Entry

Talk to me if you need help with Axe coding.


Spoiler For Bragging Rights:
Not much yet, hopefully this section will grow soon with time (and more contests)



Offline obon7

  • LV2 Member (Next: 40)
  • **
  • Posts: 34
  • Rating: +1/-1
    • View Profile
Re: ANother noob qusestion
« Reply #17 on: November 28, 2011, 11:24:34 pm »
quick question is storing something in appvars really the same as storing something in pic 1,pic2 etc., and if not what are the differences
 

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: ANother noob qusestion
« Reply #18 on: December 02, 2011, 05:01:18 am »
Assuming you're talking about the OS's Pic0-Pic9 and not an Axe pointer name, yes they are the same from a coding perspective.  To the OS, they are a little different though.  When the OS sees a Pic1 it assumes its a picture and will let you use all those BASIC commands on it.  When you use an appvar, the OS will not really let you do much to them and the only place you will see them is in the memory management screen.  Also, appvars will take up more room in RAM since they also have names which are up to 8 characters long.

But yeah, other than that, you can store data to anything and use it just the same: appvars, pics, strings, lists, even the OS vars.  But the best option for regular data is probably the appvar because its invisible to the end user and can't be deleted accidentally unlike a pic or string for instance which will get overridden constantly by BASIC programs.
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: ANother noob qusestion
« Reply #19 on: December 02, 2011, 09:16:37 am »
*sniff* I'm so proud of you, parser, my star pupil. (my only pupil. and not really actually my pupil).
lol
...methinks you may have used that appvar technique from my GPOS thread? ;) (it's totally fine, I'm just curious)
? can i have a link?

Offline LincolnB

  • Check It Out Now
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1115
  • Rating: +125/-4
  • By Hackers For Hackers
    • View Profile
Re: ANother noob qusestion
« Reply #20 on: December 02, 2011, 05:11:54 pm »
GPOS stands for Game Programming On Steroids, I'm assuming you didn't then ;)
Completed Projects:
   >> Spacky Emprise   >> Spacky 2 - Beta   >> Fantastic Sam
   >> An Exercise In Futility   >> GeoCore

My Current Projects:

Projects in Development:
In Medias Res - Contest Entry

Talk to me if you need help with Axe coding.


Spoiler For Bragging Rights:
Not much yet, hopefully this section will grow soon with time (and more contests)



Offline C0deH4cker

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 258
  • Rating: +11/-1
    • View Profile
    • iNinjas Forum/Repo
Re: ANother noob qusestion
« Reply #21 on: December 02, 2011, 05:40:21 pm »
I know that L6 is the main buffer (plotSScreen in asm), but i assume that it isnt the pointer to the graph screen data. How can i have an axe program (like graphjump or wormy in grammer) that can use the data from the graph screen?

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: ANother noob qusestion
« Reply #22 on: December 02, 2011, 05:44:20 pm »
What do you mean by graph screen?  L6 is indeed the pointer to the main buffer, where the graphscreen images are stored. 

Offline C0deH4cker

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 258
  • Rating: +11/-1
    • View Profile
    • iNinjas Forum/Repo
Re: ANother noob qusestion
« Reply #23 on: December 02, 2011, 06:00:08 pm »
like if from the homescreen you do a RecallPic or even just draw on the graph screen, when an axe program is run, it can use that data even without it being saved to a picture. Is this possible?

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: ANother noob qusestion
« Reply #24 on: December 02, 2011, 06:07:39 pm »
If the data is already on the graphscreen when the Axe program is run, the data will be stored in L6.

Offline C0deH4cker

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 258
  • Rating: +11/-1
    • View Profile
    • iNinjas Forum/Repo
Re: ANother noob qusestion
« Reply #25 on: December 02, 2011, 06:08:12 pm »
alright, ill try it.


Edit: it works, thanks!
In case youre wondering, im making a game similar to grammer's graphjump with axe. It is more advanced, however, with 8-directional shooting that will destroy walls and more easily controllable left/right/jumping. ill release a demo soon. atm, the player (a pixel) starts at (1,1), jumps 5 pixels up, and can shoot one bullet at a time (it has to hit something in order for you to shoot again). controls are:

left=left
right=right
up=jump
numpad shoots:

7    8    9
4    *    6
1    2    3

Still have to work out some bugs though, like if you hold down up and shoot straight down, you jump off of the bullet :P
« Last Edit: December 02, 2011, 06:16:29 pm by C0deH4cker »