Digmake (Minecraft clone)

We're glad you came by, but you might find what you're looking for elsewhere.

TI-Basic Developer is not the site it once was. While its information on commands and other calculator features remains almost second-to-none, its forum, archives, and even hosting service, Wikidot, have been decaying for years. The calculator community would love to see what you're working on, or help you in your next coding adventure, but TI-Basic Developer is no longer the place to do it.

Instead, you should head over to Cemetech (primarily American) or TI-Planet (primarily international). Both are active, well-established forums with their own archives, chatrooms, reference material, and abundant coding tools and resources. We'll see you there, we hope.

You have not uploaded your program! Please to upload your program.

Author:

Robert Black

Download: README.txt No Download Available
Version: 0.1
Compatibility: TI-83/84/+/SE
File Size: 0 Bytes
Genre: Arcade Graphics Platform Puzzle RPG Strategy Sports Casino Board Utility Misc
Rating:
TI|BD

I've finished!
2-dimensional Minecraft on a calculator!
Press arrow keys to move, press 4,2,6, and 8 to move your selector thing around (the thing you use to place and destroy blocks), Mode to switch between place and destroy modes.
There is gravity, but you have infinite blocks. This program is not slow like most of my other ones.
This program doesn't include blocks that have any function, but I will add it as soon as I remove the letter graphics.
Can someone show me how to convert this program from the Home Screen to the graph? I know a way, but it takes over 5 minutes for the program to redraw the screen.
If you have played this, please comment, I want to see how many people have used this.

:[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0][0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0][0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0][0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0][0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0][0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0][0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0][1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]]→[A]
:5→X
:1→Y
:5→L
:1→M
:5→A
:5→B
:5→N
:5→O
:1→P
:1→H
:1→R
:While 1
:getKey→K
:X-(K=24 and [A](Y,X-1)=0)+(K=26 and [A](Y,X+1)=0)→X
:If K=25 and not([A](Y+1,X) = 0)
:Then
:For(W,1,3
:If Y>1
:Then
:If [A](Y,X)=0
:Y-1→Y
:End
:End
:End
:If Y<8 and [A](Y+1,X)=0
:Y+1→Y
:If K=22
:Then
:If P=1
:Then
:0→P
:Else
:1→P
:End
:End
:If K=83
:Then
:If P=0
:Then
:0→[A](B,A
:Output(B,A," "
:End
:If P=1
:Then
:H→[A](B,A //Sorry for the earlier mistake, fixed now
:Output(B,A,H
:End
:End
:If R=1
:Then
:0→R
:ClrHome
:For(V,1,16
:For(W,1,8
:If not([A](W,V)=0)
:Output(W,V,[A](W,V
:End
:End
:End
:If [A](M,L)=0
:Then
:Output(M,L," "
:Else
:Output(M,L,[A](M,L
:End
:X→L
:Y→M
:If [A](O,N)=0
:Then
:Output(O,N," "
:Else
:Output(O,N,[A](M,L
:End
:X→N
:Y→O
:If (K=82 and A>1) or (K=84 and A<16) or (K=73 and B>1) or (K=93 and B<8)
:Then
:If [A](B,A)=0
:Then
:Output(B,A," "
:Else
:Output(B,A,[A](B,A
:End
:If K=82
:A-1→A
:If K=84
:A+1→A
:If K=73
:B-1→B
:If K=93
:B+1→B
:Output(B,A,"O
:End
:Output(Y,X,"*
:End

What the community thinks:

page 1 of 21
Austin (guest) 24 Oct 2014 00:50

I tried recoding what's shown above…and when I ran it…it went in an endless loop.

by Austin (guest), 24 Oct 2014 00:50
Austin (guest) 25 Oct 2014 16:10

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.

by Austin (guest), 25 Oct 2014 16:10
Austin (guest) 26 Oct 2014 00:04

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.

by Austin (guest), 26 Oct 2014 00:04
Robert Black Robert Black 27 Oct 2014 13:45

That doesn't happen with me… I'll see if I can fix that…

by Robert Black Robert Black , 27 Oct 2014 13:45
Fixed!
Robert Black Robert Black 27 Oct 2014 18:54

I realized that I accidentally typed a G instead of a B! Sorry!

by Robert Black Robert Black , 27 Oct 2014 18:54
Austin (guest) 27 Oct 2014 19:05

thanks! (theres still the bug when you go outside the screen range…but thats ok.)

by Austin (guest), 27 Oct 2014 19:05
Robert Black Robert Black 28 Oct 2014 18:59

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. :)

by Robert Black Robert Black , 28 Oct 2014 18:59
Robert Black Robert Black 28 Oct 2014 19:01

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].

Last edited on 28 Oct 2014 19:01 by Robert Black
by Robert Black Robert Black , 28 Oct 2014 19:01
Austin (guest) 28 Oct 2014 22:20

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.

by Austin (guest), 28 Oct 2014 22:20
Robert Black Robert Black 29 Oct 2014 13:37

Hello, welcome to Thursday. Even though it's Wednesday.

by Robert Black Robert Black , 29 Oct 2014 13:37
Robert Black Robert Black 29 Oct 2014 13:38

I just wish I could find a way to put this on the graph…

by Robert Black Robert Black , 29 Oct 2014 13:38
Austin (guest) 30 Oct 2014 20:27

If you do manage to rewrite this code onto the graph, i can help as far as block/game mechanics (like redstone and such)

by Austin (guest), 30 Oct 2014 20:27
Austin (guest) 31 Oct 2014 16:56

Reason why is that i've played/watched minecraft enough that i pretty much understand the mechanics so well

by Austin (guest), 31 Oct 2014 16:56
Robert Black Robert Black 03 Nov 2014 14:36

I actually already know how to do it. I made a 2-dimensional Minecraft game in Python, and I have redstone, 10 new dimensions, working arcades, cheese, and tons of other stuff. It's over 4500 lines of code!

by Robert Black Robert Black , 03 Nov 2014 14:36
Austin (guest) 05 Nov 2014 17:59

lol nice

by Austin (guest), 05 Nov 2014 17:59
Robert Black Robert Black 03 Nov 2014 19:54

That's a pretty good idea…
You seem pretty fluent in TI-Basic. You should make an account.

by Robert Black Robert Black , 03 Nov 2014 19:54
Austin (guest) 05 Nov 2014 17:58

Maybe.

by Austin (guest), 05 Nov 2014 17:58
Austin (guest) 05 Nov 2014 18:11

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)

by Austin (guest), 05 Nov 2014 18:11
Austinjl2000 Austinjl2000 05 Nov 2014 21:45

I have an account now!

by Austinjl2000 Austinjl2000 , 05 Nov 2014 21:45
Jacob (guest) 10 Dec 2014 22:59

it doesnt work on my computer! All it has is a row of 1s at the bottom and an asterisk that you can move

by Jacob (guest), 10 Dec 2014 22:59
Jacob (guest) 10 Dec 2014 23:02

oop never mind is it supposed to place 0s and 1s when you use 2, 4 , 6, and 8?

by Jacob (guest), 10 Dec 2014 23:02
Kegwaan Kegwaan 17 Dec 2014 23:05

Could you help me with programming the walls? I'm having trouble

by Kegwaan Kegwaan , 17 Dec 2014 23:05
Austinjl2000 Austinjl2000 15 May 2015 18:55

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:

[[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1][1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1][1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1][1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1][1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1][1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1][1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1][1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]]→[A]

by Austinjl2000 Austinjl2000 , 15 May 2015 18:55
Look at my Minecraft game
12Me21 12Me21 01 Dec 2014 15:12

I made my own minecraft game, it uses the graph screen and runs really fast

by 12Me21 12Me21 , 01 Dec 2014 15:12
Re: Look at my Minecraft game
12Me21 12Me21 04 Dec 2014 15:37

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.

by 12Me21 12Me21 , 04 Dec 2014 15:37
jimmy (guest) 20 Nov 2014 21:27

i dont understand how to start the game :(

by jimmy (guest), 20 Nov 2014 21:27
Michael2_3B Michael2_3B 21 Nov 2014 02:08

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.

by Michael2_3B Michael2_3B , 21 Nov 2014 02:08
wowaname (guest) 25 Nov 2014 16:25

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.

by wowaname (guest), 25 Nov 2014 16:25
Re: wowaname
Michael2_3B Michael2_3B 25 Nov 2014 16:44

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
Last edited on 25 Nov 2014 22:05 by Michael2_3B
by Michael2_3B Michael2_3B , 25 Nov 2014 16:44
wowaname (guest) 26 Nov 2014 00:30

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.

by wowaname (guest), 26 Nov 2014 00:30
James (guest) 02 Dec 2014 23:34

Help! I typed in the program but a syntax error came up in the [A] in the first line!
What can I do??

by James (guest), 02 Dec 2014 23:34
Silver Phantom Silver Phantom 02 Dec 2014 23:55

make sure you are using the [A] from 2nd matrix, not actually typing it out.


The Silver Phantom welcomes you

by Silver Phantom Silver Phantom , 02 Dec 2014 23:55
Bob (guest) 11 Dec 2014 21:24

you can create it using pixels by adding this in the beginnig:

0->Xmin
94->Xmax // Total Pixels Across
0->Ymin
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"

by Bob (guest), 11 Dec 2014 21:24
(account deleted) 11 Dec 2014 23:08
Last edited on 01 Apr 2021 12:15 by (account deleted)
by (account deleted), 11 Dec 2014 23:08
Keegan (guest) 16 Dec 2014 12:40

When I try to run it all that happens is it takes to the home screen and just displays 1's on the bottom.

by Keegan (guest), 16 Dec 2014 12:40
yes
12Me21 12Me21 16 Dec 2014 13:08

that's what's supposed to happen, I think. The 1's are the blocks

by 12Me21 12Me21 , 16 Dec 2014 13:08
zach (guest) 18 May 2015 14:36

when i put in (y,x-1)=0 it said error please
help

by zach (guest), 18 May 2015 14:36
jjvan (guest) 17 Dec 2015 07:00

Nice job! The biggest thing would be to replace:

:If K=22
:Then
:If P=1
:Then
:0→P
:Else
:1→P
:End
:End

With:

:If K=22
:not(P→P

by jjvan (guest), 17 Dec 2015 07:00
Syntax error at [a]?
TSelden1209 TSelden1209 16 Oct 2020 14:17

For some reason the [a] variable doesn't work.

Last edited on 16 Oct 2020 16:02 by TSelden1209
by TSelden1209 TSelden1209 , 16 Oct 2020 14:17
Re: It gives me a syntax error on the first line
Trenly Trenly 16 Oct 2020 15:54

Are you using the Matrix A? This won't work if you type in the bracket [ then A then the bracket ]

by Trenly Trenly , 16 Oct 2020 15:54
Re: It gives me a syntax error on the first line
TSelden1209 TSelden1209 16 Oct 2020 16:02

Whoops! got a little too excited and typed it out. Now it's working! thanks!

by TSelden1209 TSelden1209 , 16 Oct 2020 16:02
Can't move player icon?
TSelden1209 TSelden1209 16 Oct 2020 16:10

I'm assuming that the player is the little star icon. I apologize if I'm wrong. Anyway, when the game starts it's on the top of the screen, and I can only move it left and right. When I place a block, I can go through that block when moving right, but it won't let me move after I get past it (going right) at all. I have no clue what's wrong, and I'm pretty sure I put the code in right. Strangely enough, I can move the block placer in any direction I want. Does anybody know how to fix this? :(
P.S. I said I'm pretty sure I put the code in right, but if you could supply me with some of the lines to check, that'd also be great.
EDIT: looking through it I don't think there's any key handler for the down arrow. Can anybody else move up and down?
EDIT 2: I've also found that when there's a block on one side of me, I can't move in the other direction either.

Last edited on 16 Oct 2020 18:19 by TSelden1209
by TSelden1209 TSelden1209 , 16 Oct 2020 16:10
Re: Can't move player icon?
(account deleted) 17 Oct 2020 19:24

Have you checked some mode settings of the calculator are correct? If some graph/home settings are set weird, it can cause problems.


Hewwo, my name is Achak Claw. I was formerly BioHazard.

by (account deleted), 17 Oct 2020 19:24
Re: Can't move player icon?
TSelden1209 TSelden1209 19 Oct 2020 12:52

All the settings are set to whatever is on the left side (except for the 'set clock' button, but if you push that it just resets the time)

by TSelden1209 TSelden1209 , 19 Oct 2020 12:52
page 1 of 21
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Noncommercial 2.5 License.
Click here to edit contents of this page.
Click here to toggle editing of individual sections of the page (if possible). Watch headings for an "edit" link when available.
Append content without editing the whole page source.
Check out how this page has evolved in the past.
If you want to discuss contents of this page - this is the easiest way to do it.
View and manage file attachments for this page.
A few useful tools to manage this Site.
Change the name (also URL address, possibly the category) of the page.
View wiki source for this page without editing.
View/set parent page (used for creating breadcrumbs and structured layout).
Notify administrators if there is objectionable content in this page.
Something does not work as expected? Find out what you can do.
General Wikidot.com documentation and help section.
Wikidot.com Terms of Service - what you can, what you should not etc.
Wikidot.com Privacy Policy.

AltStyle によって変換されたページ (->オリジナル) /