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: DJ 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: DJ 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: DJ 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:

(https://codewalr.us/proxy.php?request=http%3A%2F%2Ftr1p1ea.net%2Ffiles%2Fdownloads%2Fscreenshots%2Fandroid%2Fmincraft0.png&hash=4724d7a1c4fdd40ffc0ab577a1a46a7a)
(https://codewalr.us/proxy.php?request=http%3A%2F%2Ftr1p1ea.net%2Ffiles%2Fdownloads%2Fscreenshots%2Fandroid%2Fmincraft1.png&hash=c2a7bbff40be8321b74de7c66a1646b3)
(https://codewalr.us/proxy.php?request=http%3A%2F%2Ftr1p1ea.net%2Ffiles%2Fdownloads%2Fscreenshots%2Fandroid%2Fmincraft2.png&hash=aa0a84324a441691dbf7f4a7b1eec6f1)
(https://codewalr.us/proxy.php?request=http%3A%2F%2Ftr1p1ea.net%2Ffiles%2Fdownloads%2Fscreenshots%2Fandroid%2Fmincraft3.png&hash=fc992897907323a972ebe38a3c391849)

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: DJ 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: DJ 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: DJ 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:

(https://codewalr.us/proxy.php?request=http%3A%2F%2Fimg.codewalr.us%2F0Dwalrii.png&hash=22e509d6e79c0f8ceb959944619437a6)
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: DJ 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!

(https://codewalr.us/proxy.php?request=http%3A%2F%2Ftr1p1ea.net%2Ffiles%2Fdownloads%2Fscreenshots%2Fandroid%2Fmincraft_walrii0.png&hash=9c0a41835e9201a5728e1c35944bdd6f)
(https://codewalr.us/proxy.php?request=http%3A%2F%2Ftr1p1ea.net%2Ffiles%2Fdownloads%2Fscreenshots%2Fandroid%2Fmincraft_walrii1.png&hash=991d48545e05efa73e98971278e16274)
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: DJ 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.
MinePrime: ShowHide
walriis will take the place of horses and you will be able to ride them ;)
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: DJ 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: DJ 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: DJ 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 :)