Author Topic: Your Projects - Post and Critique  (Read 116546 times)

0 Members and 1 Guest are viewing this topic.

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Your Projects - Post and Critique
« Reply #525 on: November 26, 2012, 04:27:29 pm »
You wouldn't be making a matrix per se, the data structures from Basic don't exist in Axe. You can however kind of mimic one by having a bunch of data and treating it as a two-dimensional array like this, just use your own numbers/sprites/etc.
Vy'o'us pleorsdti thl'e gjaemue

Offline GinDiamond

  • LV3 Member (Next: 100)
  • ***
  • Posts: 71
  • Rating: +2/-2
  • I dont always fail at life, but when I do, I dont
    • View Profile
Re: Your Projects - Post and Critique
« Reply #526 on: November 26, 2012, 04:39:48 pm »
I have this (made it with Pixelscape):



Now, do I export it as an Axe program, an appvar, or picture (for calc)?
How would I use it?

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Your Projects - Post and Critique
« Reply #527 on: November 26, 2012, 04:46:31 pm »
It depends. Do you want to have external levels, with different maps etc?  Or do you want to have it hard-coded in to the program?
Appvars are easily made, deleted etc and are good for external levels, but you'll have to get the pointer yourself with GetCalc() and manage it (which honestly isn't very much :P)
If you want to have it as something built into the game itself you can make the program, then recall the source of the exported program into your own source (2nd > Rcl > find the unarchived program in the menu).
« Last Edit: November 26, 2012, 04:47:46 pm by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue

Offline GinDiamond

  • LV3 Member (Next: 100)
  • ***
  • Posts: 71
  • Rating: +2/-2
  • I dont always fail at life, but when I do, I dont
    • View Profile
Re: Your Projects - Post and Critique
« Reply #528 on: November 26, 2012, 04:48:45 pm »
I was thinking about making about 5-10 hard-coded maps, and then randomly call them each time the player goes down stairs.

Is that possible?

Offline shmibs

  • しらす丼
  • Administrator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2132
  • Rating: +281/-3
  • try to be ok, ok?
    • View Profile
    • shmibbles.me
Re: Your Projects - Post and Critique
« Reply #529 on: November 26, 2012, 05:08:06 pm »
that's definitely possible =)
you'll have to export them as axe source programs, edit the programs so that the data pointers (gdb<whatever>) aren't all the same, and then include a call to them (pgrmBLAH) somewhere in your main source program.

Offline GinDiamond

  • LV3 Member (Next: 100)
  • ***
  • Posts: 71
  • Rating: +2/-2
  • I dont always fail at life, but when I do, I dont
    • View Profile
Re: Your Projects - Post and Critique
« Reply #530 on: November 26, 2012, 05:14:25 pm »
Current code:
Code: [Select]
.MAZE
#ExprOff
[2424FF2424FF2424]üPic000
[0000000000001818]üPic001
[0000000000000000]üPic002
[0000000000000000]üPic003
[000000000000000000000000]üGDB0
[000101010101010101010100]
[000101010101010101010100]
[000101010101010101010100]
[000101010101010101010100]
[000101010101010101010100]
[000101010101010101010100]
[000000000000000000000000]
DiagnosticOff
[3C409EA2A29E423C]->Pic100
0->X->Y
Repeat getKey(15)^^r
If getKey(4)?Y>0
Y--
ElseIf getKey(1)?Y<7
Y++
ElseIf getKey(2)?X>0
X--
ElseIf getKey(3)?X<11
X++
End
Lbl DP
ClrDraw
For(B,0,7)
For(A,0,11)
Pt-Off(A*8,B*8,{B*12+A+GDB0}*8+Pic000)
End
End
Pt-Off(X,Y,Pic1)
DispGraph
End
Return