Join us on Discord!
You can help CodeWalrus stay online by donating here.

Minecraft 2D on HP Prime

Started by David T, February 24, 2017, 10:45:00 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

David T

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:



I am looking forward to any suggestions :)

Best regards,
David

Dream of Omnimaga

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
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

David T

#2
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 :/

Dream of Omnimaga

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.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

p2

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 ;)
  • Calculators owned: ti-83+, ti-84+, ti-84+, ti-84+se, ti-84+se(te), ti-nsphire, ti-nsphire CAS, ti-nsphire CX-CAS, ti-voyage, ti-voyage, Who reads this list anyways...?
Anyway war sucks. Just bring us your food instead of missiles  :P ~ DJ Omnimaga (11.10.2016 20:21:48)
if you cant get a jframe set up, draw stuff to it, and receive input, i can only imagine how horrible your game code is _._   ~ c4ooo (14.11.2016 22:44:07)
If they pull a Harambe on me tell my family I love them ~ u/Pwntear37d (AssangeWatch /r/)
make Walrii great again ~ DJ Omnimaga (28.11.2016 23:01:31)
God invented the pc, satan the smartphone I guess ~ p4nix (16.02.2017 22:51:49)

Dream of Omnimaga

By the way @David T your video was deleted. Why? D:
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

tr1p1ea

Most likely it was scrubbed by mojang and taken down for copyright infringement?

p2

yeah possible.
But isn't microsoft pulling the strings now? (whic his probably even worse)
  • Calculators owned: ti-83+, ti-84+, ti-84+, ti-84+se, ti-84+se(te), ti-nsphire, ti-nsphire CAS, ti-nsphire CX-CAS, ti-voyage, ti-voyage, Who reads this list anyways...?
Anyway war sucks. Just bring us your food instead of missiles  :P ~ DJ Omnimaga (11.10.2016 20:21:48)
if you cant get a jframe set up, draw stuff to it, and receive input, i can only imagine how horrible your game code is _._   ~ c4ooo (14.11.2016 22:44:07)
If they pull a Harambe on me tell my family I love them ~ u/Pwntear37d (AssangeWatch /r/)
make Walrii great again ~ DJ Omnimaga (28.11.2016 23:01:31)
God invented the pc, satan the smartphone I guess ~ p4nix (16.02.2017 22:51:49)

Dream of Omnimaga

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.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Powered by EzPortal