CodeWalrus

Development => Calculators => Calc Projects, Programming & Tutorials => Topic started by: David T on February 24, 2017, 10:45:00 PM

Title: Minecraft 2D on HP Prime
Post by: David T on February 24, 2017, 10:45:00 PM
Hello everyone!

Here is a game I made for the HP Prime calculator. It is based on the popular game minecraft by mojang and even contains the real textures:

https://www.youtube.com/watch?v=a7JALFwY4oQ (https://www.youtube.com/watch?v=a7JALFwY4oQ)

I am looking forward to any suggestions :)

Best regards,
David
Title: Re: Minecraft 2D on HP Prime
Post by: Dream of Omnimaga on February 25, 2017, 04:50:24 AM
Heya and welcome here. :) This looks very polished so far, that's for sure. @alexgt was working on his own MC clone but he discontinued it D:. By the way, how do you store the map data? I notice that you are loading the map by small chunks (with some loading at the edges) so I was curious. Can we use the numpad to destroy blocks (eg 4 to destroy the block right to the left of the character and 1 for the block just above)

The HP Prime is an incredible machine in terms of programming. Even with the on-calc language the games can rival CE ASM/C/ICE speed O.O
Title: Re: Minecraft 2D on HP Prime
Post by: David T on February 25, 2017, 08:01:24 AM
The world is saved in a graphics buffer. Every block has a specific color and every pixel represents one block. With these colors the blocks are indentified when drawning a chunk.
I will try out the numpad controls. The Problem is that i will have to check all the keys for input in the games main loop every time :/
Title: Re: Minecraft 2D on HP Prime
Post by: Dream of Omnimaga on February 26, 2017, 03:11:38 AM
Ah I see. Thanks for the info. Would it be hard to make the game so that each chunk is bigger or would it cause memory problems/lag? And yeah checking all keys might cause some slowdowns, although given the speed of the HP PPL language, it probably won't be too bad I think.
Title: Re: Minecraft 2D on HP Prime
Post by: p2 on February 26, 2017, 11:11:00 PM
You're pretty much giving us your fingerprints with that video, something you should avoid at all cost  :ninja:
Also you used bedrock instead of stone in ur map... a block that is not destroyable in the original minecraft (you destroy it in ur demo)

other than that it looks really promising :)
Can Trees regrow and is there water as well? :)

It would be really cool if there were smooth (maybe even italic) borders between different biomes, not just a vertical cut ;)
Title: Re: Minecraft 2D on HP Prime
Post by: Dream of Omnimaga on March 05, 2017, 05:35:56 AM
By the way @David T your video was deleted. Why? D:
Title: Re: Minecraft 2D on HP Prime
Post by: tr1p1ea on March 05, 2017, 10:24:48 PM
Most likely it was scrubbed by mojang and taken down for copyright infringement?
Title: Re: Minecraft 2D on HP Prime
Post by: p2 on March 05, 2017, 10:26:04 PM
yeah possible.
But isn't microsoft pulling the strings now? (whic his probably even worse)
Title: Re: Minecraft 2D on HP Prime
Post by: Dream of Omnimaga on March 06, 2017, 04:18:52 AM
Actually, now that you mention it, I recall reading before that the reason why @Vogtinator used a different texture pack in Crafti was because Mojang was even worse than Nintendo when it came to copyright nazism, so if someone wanted to do a Minecraft clone he really had to make sure to not use the original graphics or music.