I tried recoding what's shown above…and when I ran it…it went in an endless loop.
Date: 01 Oct 2014 13:47
Number of posts: 38
RSS: New posts
Never mind…I fixed the prob…one recommendation is to preset the G variable so it doesn't pop up as an invalid dim if it has a value more than the dimensions itself.
Ok here's a couple of major bugs…if you go out of bounds, it'll do an "invalid dim" error…also, sometimes when I try placing a block…it'll disappear when I try placing another one somewhere else.
That doesn't happen with me… I'll see if I can fix that…
I realized that I accidentally typed a G instead of a B! Sorry!
thanks! (theres still the bug when you go outside the screen range…but thats ok.)
Because of that glitch, sometimes I create some stairs leading to a pit that goes through the bottom of the screen and I call it the "Banishment Pit of Glitches", and when you jump off and reach the bottom, the game crashes. :)
You can delete the first line of code, and the game will save your world unless either you've never run the game before, or you used some other program on your calculator that changes matrix [A].
Actually…I improvised on both of those things…I added a menu in the beginning, and had a selection for "Saved Game"…which went to a Lbl that was located right before the "While 1"…so it looked like this: "Lbl D:1->R:While 1". This would pass both the "create new terrain" part and the preset variables…so your guy and the placer cursor were at the same spot. To fix the "out of bounds" glitch, I made the preset terrain have a wall on all of the sides…and I edited the placer cursor so it cannot change the outside walls whatsoever…kinda like bedrock.
I just wish I could find a way to put this on the graph…
If you do manage to rewrite this code onto the graph, i can help as far as block/game mechanics (like redstone and such)
Reason why is that i've played/watched minecraft enough that i pretty much understand the mechanics so well
That's a pretty good idea…
You seem pretty fluent in TI-Basic. You should make an account.
I am also trying to make a "multiplayer mode" for this game as well. But due to the slight complexity to make this possible, i am making the multiplayer version a different program (and ill also add more blocks into it while i'm at it)
it doesnt work on my computer! All it has is a row of 1s at the bottom and an asterisk that you can move
oop never mind is it supposed to place 0s and 1s when you use 2, 4 , 6, and 8?
Could you help me with programming the walls? I'm having trouble
If you mean placing blocks, use 2 4 6 and 8 to move a "placer" cursor and press 5 to place a block, and press mode to switch between place and remove. If you want to make walls on the outside, go to the code, and make the matrix default to:
I made my own minecraft game, it uses the graph screen and runs really fast
The only good way to make different types of blocks is with text graphics. you could do it directly with pixels but it would be EXTREMELY slow. Here's how i would do it:
there would be 2 loops, one for movement and one for block placing.
the code in the movement loop would always run, but the block placing would only happen if the calculator detected you were pressing a key that would place a block. There would be a menu where you would type the letter/symbol you wanted to place, and then use the number keys to place it.
How to start the game? well if you've typed the whole thing into your calculator, then go into [PRGM], go to the submenu [EXEC] (which it should already be on), then scroll down to whatever you titled it as, and then hit [ENTER] twice.
Instead of defining the matrix [A] manually, it'd be quicker and would take less space to use `0identity(8→[A]` and then (somehow) change the last row to all ones.
To do this, here's a really simple code:
:0identity(16->[A] :For(F,1,16 :1->[A](8,F //stores the value of 1 to 8th row, F column. :End
I considered a For loop in my head but thought maybe there was a better way, heh…
Oh, and sorry that I didn't count the rows/cols that well; that is indeed a 16x16 array. Thanks for catching that.
Help! I typed in the program but a syntax error came up in the [A] in the first line!
What can I do??
you can create it using pixels by adding this in the beginnig:
94->Xmax // Total Pixels Across
62->Ymax // Total Pixels up and down
And just Pxl-Off( or Pxl-On( in what ever way possible
I saw a pong game that used this "technique"
If you plan on only using Pxl- commands then there is no need to change the window settings, however, if you plan on using Pt- or Line( etc, you will need to set up the widow. Also keep in mind that they use seperate coordinate systems.See this page for more info and tips on window settings.
When I try to run it all that happens is it takes to the home screen and just displays 1's on the bottom.
Nice job! The biggest thing would be to replace: