LoginLogin
Nintendo shutting down 3DS + Wii U online services, see our post

Minecraft clone proof of concept

Root / Submissions / [.]

SamCreated:
Download:D3K3X4LS
Version:1Size:77237
I prove to the world that a clone of Minecraft is definitely possible to make on SmileBASIC. Find dem epic diamonds, and build dem epic structures. Something like that.

Instructions:

Circle pad to move the camera X and B to go forward/backward A to jump L to place blocks R to break blocks Up on the d-pad to drop blocks/items Left and right on the d-pad to choose an inventory slot (you can also do this with the touch screen) Use the touch screen for crafting. A crafting recipe will appear if you have all the required blocks/items for it. I'll leave it up to the player to discover everything on his/her own. If something in particular annoys you, take a look at the "settings" variables at the start of the code and see if you're lucky.

Notes:

Powered by Simeon's 3D engine, SIM.3D v1.5 Other sources are found within the code. I haven't tested it on o3ds. Not planning to work on this game any further. Feel free to code in more features! I don't ask for credit at all.

Can you add C-Stick controls?

Replying to:HTV04
Can you add C-Stick controls?
Well, you can.

Replying to:HTV04
Can you add C-Stick controls?
Ouch

You should use ROUND(x) instead of FLOOR(x+0.5)

Okay let me just say that enabling accelerated rendering and setting the VSYNC in the loop to 1 gives the game a consistent 60 FPS and it looks really good. There's just one problem. Blocks can't be broken. Apparently, you put all the code for detecting blocks in the section where accerated rendering would be disabled. Please fix this, if you can. I can help with testing. Also, please, please add C-Stick support. I'm really not used to these controls.

Replying to:HTV04
Okay let me just say that enabling accelerated rendering and setting the VSYNC in the loop to 1 gives the game a consistent 60 FPS and it looks really good. There's just one problem. Blocks can't be broken. Apparently, you put all the code for detecting blocks in the section where accerated rendering would be disabled. Please fix this, if you can. I can help with testing. Also, please, please add C-Stick support. I'm really not used to these controls.
There are a few things that don't work when accelerated rendering is enabled, but I fixed them: 2BDY33N4 (I left VSYNC at 2 because the game runs too fast otherwise) I tried increasing the render distance from 4 to 5 6! and it can run at 30FPS, but whenever blocks are loaded it freezes for a fraction of a second, so something else needs to be changed before this is practical. It might be possible to speed up rendering by drawing block faces as quads rather than tris, since then you only have to calculate 4 points instead of 6. (still drawn using two GTRIs, of course)

Replying to:HTV04
Okay let me just say that enabling accelerated rendering and setting the VSYNC in the loop to 1 gives the game a consistent 60 FPS and it looks really good. There's just one problem. Blocks can't be broken. Apparently, you put all the code for detecting blocks in the section where accerated rendering would be disabled. Please fix this, if you can. I can help with testing. Also, please, please add C-Stick support. I'm really not used to these controls.
But unless you throw something like shading into the mix as well, it'll be a bit more difficult to distinguish individual block faces. Probably isn't too hard to shade each face something different though.

Replying to:HTV04
Okay let me just say that enabling accelerated rendering and setting the VSYNC in the loop to 1 gives the game a consistent 60 FPS and it looks really good. There's just one problem. Blocks can't be broken. Apparently, you put all the code for detecting blocks in the section where accerated rendering would be disabled. Please fix this, if you can. I can help with testing. Also, please, please add C-Stick support. I'm really not used to these controls.
Each triangle can still be a different color. making each face a different brightness is a good idea, though, since with the current systems, some corners look weird

good job sam

Replying to:HTV04
Can you add C-Stick controls?
Will you add C-Stick controls?

This looks NICE!

I think you can change block colors for each face... For exemple wood: up and down face Can be yellow and the other faces Brown Or grass with the upper face Green and other faces Brown

Replying to:Heredos
I think you can change block colors for each face... For exemple wood: up and down face Can be yellow and the other faces Brown Or grass with the upper face Green and other faces Brown
Yes, I think it's possible.

Oof ~8fps on o3ds Otherwise very cool Thanks for making this.

Replying to:Tarudahat
Oof ~8fps on o3ds Otherwise very cool Thanks for making this.
+DLC?

Replying to:Tarudahat
Oof ~8fps on o3ds Otherwise very cool Thanks for making this.
Ah, thanks. No one told me about the performance on o3ds before. 8fps is probably enough to ruin the experience... It shows how difficult it is to make big games on SB.

Replying to:Tarudahat
Oof ~8fps on o3ds Otherwise very cool Thanks for making this.
Without DLC .

Replying to:Tarudahat
Oof ~8fps on o3ds Otherwise very cool Thanks for making this.
So bad, I'm on a n3ds with dlc and I have 19~30 FPS

I have a question, where is lava!?

Replying to:Tarudahat
Oof ~8fps on o3ds Otherwise very cool Thanks for making this.
Go in the game code and enabling accelerated rendering and setting the VSYNC in the loop to 1 gives the game a consistent 60 FPS (HTV04 said this ... Well kinda)