I need some help programming the following
-Axe Parser vs. Doors CS7 Hybrid Basic
-World Generation
BASIC: (My code is sloppy)

Code:

://Doors CS7 GUI
:{X,Y->dim([A]
:dim([A]->L1
:int(Y/2->F
:randIntNoRep(1,L1(1->L2
://Stone
:For(Y,L1(2)-1,L1(2)-(F+1),-1
:For(X,1,L1(1)
:2->[A](K,H
:End
:End
://Coal
:int(L1(1)/5->G
:For(X,1,G
:randInt(L1(2)-1,L1(2)-(F+1)->Y
:4->[A](Y,L2(X
:End
://Iron
:For(X,G,G+int(L1(1)/3
:randInt(L1(2)-1,L1(2)-(F+1)->Y
:5->[A](Y,L2(X
:End
...
:For(X,1,L1(1
:randInt(L1(2)-(F+2),L1(2)-(F+5)
:For(Y,L1(2)-(F+2),Ans,-1
:1->[A](Y,X
:End
:End

I don't know how to do it in axe. yunhua98's example doesn't work in this case
-Drawing tilemaps
-External variables
[/url]
What kind of code help do you need? Your code looks reasonable enough to me, but your requirements sound quite vague. What have you tried so far? What has worked, what has not?
I have tried that basic code, but I really want help to do it in axe. So far, I made a Doors CS7 GUI menu, but I need help with the world generation. The algorithm that they provided in omnimaga had a "definite" map, meaning it doesn't change each initialization of the game. Like this:

Code:

.TEST
[sprites]->Pic1
[Map Data]->GDB1
[Map Data]
[Map Data]
etc.,
.draw tile map
etc....

And the matrices aren't enough for at least a decent world.
So, practically, I need help with everything.
Alright, I'm assuming the map data will have to be loaded externally if it is changing every time, just have the data located in a appvar and then overwrite that data with the new map when the user exits out of the program.
I haven't worked with appvars at all, but Im sure you can find the code you are looking for pretty easily.
Here's a tutorial about external variables in Axe. In covers appvars among other things.
I understand external vars already. But, what I really need help is with placing blocks such as ores. I thought of using:

Code:

...
Data(rand,rand...)->GDB1
...

but it seems it will take a lot of code that could probably cleaned up.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement