CodeWalrus

Development => Phones & Tablets => Topic started by: tr1p1ea on June 30, 2015, 12:45:01 AM

Title: Mincraft [Android]
Post by: tr1p1ea on June 30, 2015, 12:45:01 AM
I thought I would post some info about an Android project that I'm currently making in Unity.

Basically its a minimalistic Minecraft(or similar) hence the name 'Mincraft'.

Here is an early test video, however many things have changed from this version:
https://www.youtube.com/watch?v=B-elEYX1uDU

For performance reasons I had to do away with the infinite world generation and confine it to a specific size. I have managed to add simple caves, water/lava as well. Working on non-interactive mobs at present.

Note that I havent begun to lock down the UI as yet.
Title: Re: Mincraft [Android]
Post by: Snektron on June 30, 2015, 06:35:16 AM
oh cool! Also, the video doesn't seem to work :/
EDIT: oh, its just that i was using https <_< Looks awesome :D
Title: Re: Mincraft
Post by: Duke "Tape" Eiyeron on June 30, 2015, 10:45:07 AM
Minimalist with bloom and shaderz? :p

Have fun with your infiniminer clone! :p
Title: Re: Mincraft
Post by: Dream of Omnimaga on June 30, 2015, 04:01:24 PM
Wow that looks impressive, especially with the lightning/shading effects. I wonder what is the max world size?
Title: Re: Mincraft
Post by: alexgt on June 30, 2015, 05:45:03 PM
O.O that is awesome with the shading effects and stuff, question: how many light updates do you use because that is really smooth :)
Title: Re: Mincraft [Android]
Post by: tr1p1ea on June 30, 2015, 10:26:45 PM
Sadly with everything new that I add the performance takes a little hit. Currently there are 2 world lights and some very simple static lighting that is calculated every few frames per block. I am still messing with the shaders to see what looks the best on device.

I plan on having some mobs that initially wont do anything other than run and jump around.
Title: Re: Mincraft
Post by: Duke "Tape" Eiyeron on July 01, 2015, 09:50:23 AM
Well, taking performance hits when adding features is normal. Don't be too expensive about features or you'll kill our CPUs by just only watching your videos! ;p
Title: Re: Mincraft
Post by: Dream of Omnimaga on July 05, 2015, 03:17:36 AM
Hopefully the speed won't be too much of a problem once you get a full game. >.< Good luck!
Title: Re: Mincraft
Post by: CKH4 on July 05, 2015, 04:04:08 AM
Ooh I saw this on irc a while ago. Looks really nice, I hope that you secure good performance and stuff.
Title: Re: Mincraft [Android]
Post by: tr1p1ea on July 13, 2015, 02:28:24 AM
Ok so for performance reasons I cut the world to fixed size and had to change a few other things.

At this point i have:

World creation - bedrock, caves, mineral deposits, underground lava, water, trees
Loading/saving
Block destruction and placing
22 blocks including water, lava and TNT!
Some basic block rules - water/lava flow to empty blocks, dirt turns to grass if water touches it, lava turns to stone if water touches it, trees catch fire from lava etc
TNT explodes and makes craters
Some post effect shaders like bloom lighting and minor colour grading

Todo:
Simple mobs - probably just 2 different types of animals running and jumping around randomly
Performance optimisations

Videos to come!
Title: Re: Mincraft
Post by: Dream of Omnimaga on July 13, 2015, 02:40:20 AM
I'm fine with fixed world size. What is the size now, by the way? I'm glad it is coming along nicely, though. :)

There should also be a :walrii: easter egg, even if it looks 2D when moving around. :P
Title: Re: Mincraft [Android]
Post by: tr1p1ea on July 13, 2015, 03:13:53 AM
I think adding in Walrii is a great idea :).

Here are some screenies, I resized for posting reasons:






Ill grab a short video tonight if i get a chance.
Title: Re: Mincraft
Post by: CKH4 on July 13, 2015, 03:26:47 AM
This graphics are so amazing. Is the fire animated?
Title: Re: Mincraft [Android]
Post by: tr1p1ea on July 13, 2015, 03:28:11 AM
Thanks :). At this stage the block graphics are only simple checkerboard patterns and I might make better ones later on.

The fire is indeed animated, at this stage only 2 frames ... but it supports more frames easily.
Title: Re: Mincraft
Post by: CKH4 on July 13, 2015, 03:39:05 AM
You should request to use someone's texture pack if you don't feel up to making your own. Even if you feel like making your own there may be a few tiles you can't manage, usually texture artists like that kind of stuff and will give you partial rights.
Title: Re: Mincraft
Post by: Unicorn on July 13, 2015, 03:50:38 AM
Wow, lookin amazing! There is more progress then I've seen minecraft pe make in a few months :P
I guess they had a lot of mobs working but still.
Title: Re: Mincraft [Android]
Post by: tr1p1ea on July 13, 2015, 11:31:48 AM


Here is the video!
Title: Re: Mincraft
Post by: Unicorn on July 13, 2015, 01:53:17 PM
Wow, that is quite awesome looking! Could you put an outline on the block you are facing for building and mining, or would it be to minecraftic?
Title: Re: Mincraft [Android]
Post by: tr1p1ea on July 14, 2015, 02:14:23 AM
Thanks! Actually thats a pretty good idea, it would make placing blocks a bit easier :).
Title: Re: Mincraft
Post by: Dream of Omnimaga on July 14, 2015, 02:39:25 AM
Oh I like how you did the trees and shadow. Since you mentioned animals on IRC, do you plan to add :walrii: to it?
Title: Re: Mincraft [Android]
Post by: tr1p1ea on July 14, 2015, 02:44:14 AM
Yep I can do Walrii, but I have to get the basic mob system working.

Pretty much the characters will be made out of 3D pixels  ... so each pixel in a sprite will be represented by a 3D cube. Might see how Walrii translates into 3D?
Title: Re: Mincraft
Post by: Dream of Omnimaga on July 14, 2015, 02:49:51 AM
Do you mean flat chatacters with just 1 layer of cubes or a full 3D conversion? The latter might be harder. You could perhaps just make Walrii so that it's 1 layer of cubes?
Title: Re: Mincraft [Android]
Post by: tr1p1ea on July 14, 2015, 02:51:03 AM
Yeah a sprite could be pretty easy to convert if it just remained flat.
Title: Re: Mincraft
Post by: Unicorn on July 14, 2015, 02:54:37 AM
I get an image of a hit the walrii game with a big cutout of it like they make minecraft swords like.
Title: Re: Mincraft
Post by: Dream of Omnimaga on July 14, 2015, 03:21:31 AM
Yeah, the sword is an example of what I mean. Basically, it would look a bit like this:

Title: Re: Mincraft
Post by: Unicorn on July 14, 2015, 03:22:23 AM
Maybe not as big though :P
Title: Re: Mincraft
Post by: Dream of Omnimaga on July 14, 2015, 03:40:46 AM
Yeah I only scaled it up during making. That said, I guess such size would be plausible if they made 4K resolution phones :P
Title: Re: Mincraft [Android]
Post by: tr1p1ea on July 14, 2015, 03:51:27 AM
Yep thats pretty much it!

I will attempt to get Walrii working tonight :).

EDIT - Walrii!


Title: Re: Mincraft [Android]
Post by: Snektron on July 14, 2015, 08:02:15 AM
LOL awesome  ;D
Make it have an ai too :3
Title: Re: Mincraft [Android]
Post by: tr1p1ea on July 14, 2015, 08:34:49 AM
Well it has basic AI, it just runs and jumps around :).

EDIT - Video! :).

Title: Re: Mincraft
Post by: CKH4 on July 14, 2015, 12:05:58 PM
I love the simplicity and indiffence of the ai. I'll see if I can make an actual 3d one though because we do have 3 of the four sides of walrii. Also at the beginning of the video there were so many walriis falling from the sky.
Title: Re: Mincraft
Post by: Dream of Omnimaga on July 14, 2015, 01:28:38 PM
Quote from: tr1p1ea on July 14, 2015, 08:34:49 AM
Well it has basic AI, it just runs and jumps around :).

EDIT - Video! :).


Awesome. :D. You should make it animated like this: :walrii:
Title: Re: Mincraft
Post by: Unicorn on July 14, 2015, 01:44:17 PM
Yeah, I agree, it looks great! But why did they fall from the sky?
Title: Re: Mincraft [Android]
Post by: alexgt on July 14, 2015, 01:59:16 PM
They should have wings O.O.
[spoiler=MinePrime]walriis will take the place of horses and you will be able to ride them ;)[/spoiler]
Title: Re: Mincraft [Android]
Post by: tr1p1ea on July 14, 2015, 08:46:52 PM
At this stage all AI fall from the sky so they dont get trapped inside the terrain. The animation is handled by a software 'animator' ... but it moves parts defined as 'arms' and 'legs' ... not so much from animated frames (since it is a 3D model).

I could define the flippers and tail as legs and see what it looks like?
Title: Re: Mincraft
Post by: alexgt on July 14, 2015, 09:04:16 PM
That would work, can you import .stl or .obj files because I can make a 3D walrii I think :)
Title: Re: Mincraft [Android]
Post by: tr1p1ea on July 14, 2015, 10:34:36 PM
Its kind of a strange system as the models are actually slices of a 3d model - in images. Each pixel is a 3d cube.
Title: Re: Mincraft
Post by: Unicorn on July 14, 2015, 11:44:41 PM
I don't know how flippers and arms and legs would work, but maybe lowering the amount of walriis spawned when you implement other mobs, making them rare?
Title: Re: Mincraft [Android]
Post by: tr1p1ea on July 15, 2015, 12:20:36 AM
Yeah the vid is just a test, the amount of them is easily controlled :).
Title: Re: Mincraft
Post by: Unicorn on July 15, 2015, 01:30:33 AM
Cool. will there be mob drops?
Title: Re: Mincraft [Android]
Post by: tr1p1ea on July 15, 2015, 02:32:32 AM
At this stage mobs are non-interactable (you cant kill them) ... those sorts of features will come later.

I have some serious optimising to do before i get to that stuff.
Title: Re: Mincraft
Post by: Unicorn on July 15, 2015, 03:03:25 AM
Ooo boy! Optimizing! :P Good luck! :)
Title: Re: Mincraft
Post by: alexgt on July 19, 2015, 12:18:37 AM
Good luck, when I try to optimize code it just breaks stuff (that is kind of why I  am recoding MinePrime :P)
Title: Re: Mincraft
Post by: Unicorn on July 19, 2015, 01:07:55 AM
Quote from: alexgt on July 19, 2015, 12:18:37 AM
Good luck, when I try to optimize code it just breaks stuff (that is kind of why I  am recoding MinePrime :P)
You know, that happens to me to. :P
Title: Re: Mincraft
Post by: Dream of Omnimaga on July 21, 2015, 05:54:54 AM
Would making the legs animated slow things down a lot when there are many mobs at once nearby?
Title: Re: Mincraft [Android]
Post by: tr1p1ea on July 21, 2015, 11:55:21 PM
I guess the problem is that the characters are actually 3D (not animated sprites) - so the legs are actually 3D and move forward and back on their own ... similar to what happens in minecraft.

I havent had much time to work on this recently, but i will try to make another mob to show you what i mean.

Also question: Should I keep the existing basic textures or draw more traditional looking ones?
Title: Re: Mincraft
Post by: Dream of Omnimaga on July 22, 2015, 12:02:55 AM
Is it possible with 3D to make the legs move instantly then stop moving entirely for 0.33 seconds for each pose?

As for the textures, an idea I had in mind was to do it like Sonic (checkerboard). Just as long as it doesn't look too close to Minecraft. It could either be simpler or completely HD. I personally like the textures in the last video.
Title: Re: Mincraft
Post by: Unicorn on July 22, 2015, 01:12:46 AM
Me too, I liked those textures.
Title: Re: Mincraft
Post by: alexgt on July 22, 2015, 03:03:53 PM
I would stick with the textures you have now ;)
Title: Re: Mincraft
Post by: Dream of Omnimaga on August 10, 2015, 06:01:30 AM
@tr1p1ea how have the recent optimizations been going by the way? I doN,t exactly remember everything because many posts got lost but I remember that you had some performance issues and were trying to track down the culprits.
Title: Re: Mincraft
Post by: Unicorn on August 10, 2015, 06:29:13 AM
Hopefully everything is working out, I really like this idea :)