Author Topic: Minicraft / Terraria clone  (Read 27019 times)

0 Members and 1 Guest are viewing this topic.

Offline linuxgeek96

  • LV3 Member (Next: 100)
  • ***
  • Posts: 99
  • Rating: +4/-0
  • ( ͡° ͜ʖ ͡°)
    • View Profile
    • Personal Site
Re: Minicraft / Terraria clone
« Reply #45 on: April 13, 2012, 01:25:30 am »
Hi all,

I thoughtlessly uploaded a version where I was still working on the inventory. Fixed. Hopefully, I'll be able to use LuaCS to help prettify this code. Update available tomorrow (maybe docs, maybe trees, I'm still deciding). Oh, and the code prettying is last priority: First I want to have something with crafting, then it will start to be more like minecraft then the current version.

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Minicraft / Terraria clone
« Reply #46 on: April 13, 2012, 11:02:36 am »
The prettying is not a last priority. It is a coding style that will help you a great deal.
Trust me, your code will be a lot more clear and easy to work with.
Normally you use indentation while programming ;)

Another thing you should know is that LuaCS is still a bit buggy, and might not be suitable for development.

Anyway, good luck!

Offline Chockosta

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 447
  • Rating: +169/-6
    • View Profile
Re: Minicraft / Terraria clone
« Reply #47 on: April 13, 2012, 02:45:05 pm »
I agree with jim, identation is really useful.
It's a good habit, because it doesn't just make your code prettier, but it makes it much clearer (especially for other people if you need help)

Anyway, it's nice to see progress on this :)

EDIT :
I modified one line in your code and got it to work... The results are quite strange (maybe my modification is wrong).
It displays a black grid on a white background, and sometimes, randomly, it displays a gray gradient. (see attachment)
« Last Edit: April 13, 2012, 02:59:40 pm by Chockosta »

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Minicraft / Terraria clone
« Reply #48 on: April 13, 2012, 03:34:33 pm »
Yeah, I get the same result in PCspire.
But I guess he is still busy on it, so I'm patient :)
« Last Edit: April 13, 2012, 03:34:57 pm by jimbauwens »

Offline someone

  • LV3 Member (Next: 100)
  • ***
  • Posts: 49
  • Rating: +9/-0
    • View Profile
Re: Minicraft / Terraria clone
« Reply #49 on: April 13, 2012, 05:33:12 pm »
I got a crash when using the click button, it throws an error on the function on.mouseDown(x,y) on the last conditional (IF)

Offline linuxgeek96

  • LV3 Member (Next: 100)
  • ***
  • Posts: 99
  • Rating: +4/-0
  • ( ͡° ͜ʖ ͡°)
    • View Profile
    • Personal Site
Re: Minicraft / Terraria clone
« Reply #50 on: April 13, 2012, 06:55:10 pm »
Indenting is hard on the calculator, as tab moves to the next line :-(. LuaCS is definitely beta, it is slower then using notes. To use theis project (no name yet, post names if you want one), use d-pad or number keys to move around, "." to switch views, and the world is initially clear. press menu, then reset to build a new one. view 0 (default) is top down, views 2 and 3 are different sides. letters a-g switch inventory slot. CODE IS UPDATED AS OF 04/15/2012 09:14 EST
« Last Edit: April 15, 2012, 09:13:38 am by linuxgeek96 »

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Minicraft / Terraria clone
« Reply #51 on: April 17, 2012, 09:17:57 pm »
I agree indenting helps, but not on-calc IMHO. It makes the code even harder to read because the screen is too small (especially on a 83+ where only 16 chars fit in one line). Even on the computer it can be annoying on some editors, because tab doesn't produce the same indentation lenght every line.

Anyway any progress, since what matters the most is what the code do (assuming it does it well)? I'm curious how well this project will go, since I have been waiting for a Minecraft-style clone for a long while.

Offline linuxgeek96

  • LV3 Member (Next: 100)
  • ***
  • Posts: 99
  • Rating: +4/-0
  • ( ͡° ͜ʖ ͡°)
    • View Profile
    • Personal Site
Re: Minicraft / Terraria clone
« Reply #52 on: April 18, 2012, 07:20:02 am »
Trees work, as do dirt and stone. I'm working on crafting today (as I've been for a while) and expect to upload an update today.

Offline Jonius7

  • python! Lua!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1918
  • Rating: +82/-18
  • Still bringing new dimensions to the TI-nspire...
    • View Profile
    • TI Stadium
Re: Minicraft / Terraria clone
« Reply #53 on: April 19, 2012, 07:29:04 pm »
Indenting is hard on the calculator, as tab moves to the next line :-(.
I think I just put in two spaces as an indent. Works well enough!
Then Notepad++ should do indenting very nicely on the PC
Nice progress you have here so far linuxgeek.
« Last Edit: April 19, 2012, 07:30:01 pm by Jonius7 »
Programmed some CASIO Basic in the past
DJ Omnimaga Music Discographist ;)
DJ Omnimaga Discography
My Own Music!
My Released Projects (Updated 2015/05/08)
TI-nspire BASIC
TI-nspire Hold 'em
Health Bar
Scissors Paper Rock
TI-nspire Lua
Numstrat
TI-nspire Hold 'em Lua
Transport Chooser
Secret Project (at v0.08.2 - 2015/05/08)
Spoiler For Extra To-Be-Sorted Clutter:

Spoiler For Relegated Projects:
TI-nspire BASIC
Battle of 16s (stalled) | sTIck RPG (stalled) | Monopoly (stalled) | Cosmic Legions (stalled)
Axe Parser
Doodle God (stalled while I go and learn some Axe)

Offline hellninjas

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 625
  • Rating: +17/-0
    • View Profile
Re: Minicraft / Terraria clone
« Reply #54 on: May 03, 2012, 11:44:27 pm »
May I ask about your progress so far?

Offline linuxgeek96

  • LV3 Member (Next: 100)
  • ***
  • Posts: 99
  • Rating: +4/-0
  • ( ͡° ͜ʖ ͡°)
    • View Profile
    • Personal Site
Re: Minicraft / Terraria clone
« Reply #55 on: May 14, 2012, 12:16:27 pm »
Hi guys, sorry I haven't posted in a while (finals cramming :P). Right now, I am working on crafting. If I can get crafting working, I will release another version. My current version doesn't work, as you can move around, but no blocks can be broken (pickax code is broken). Is it worth it to try and 3dify it? I am having trouble finding a good tutorial (mostly, they let an engine do the math).

Offline MasterGeek

  • LV2 Member (Next: 40)
  • **
  • Posts: 24
  • Rating: +0/-0
    • View Profile
Re: Minicraft / Terraria clone
« Reply #56 on: May 14, 2012, 09:15:49 pm »
Could you post a TNS file?
i have tried compiling this but as soon as I copy the machine code into the student software it instantly crashes.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Minicraft / Terraria clone
« Reply #57 on: May 14, 2012, 09:18:50 pm »
By the way, will it be possible to cycle through your various equipped items like how you can cycle through guns in a FPS? I noticed many Minecraft clones lacks this and it can be annoying to have to use the number keys everytime. Also in the original game, when you ran out of slots to equip items on, you had to open your inventory everytime.

Offline AzNg0d1030

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 522
  • Rating: +45/-4
  • Hardcore anime watcher.
    • View Profile
Re: Minicraft / Terraria clone
« Reply #58 on: July 17, 2012, 10:37:48 pm »
Is this project still continued or has it been terminated?
You just lost the game.



Offline Jonius7

  • python! Lua!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1918
  • Rating: +82/-18
  • Still bringing new dimensions to the TI-nspire...
    • View Profile
    • TI Stadium
Re: Minicraft / Terraria clone
« Reply #59 on: July 17, 2012, 11:42:09 pm »
Probably been inactive for a while. It's an ambitious project. Besides there are several similar projects also going on.
PS: Haven't posted much in a few months
Programmed some CASIO Basic in the past
DJ Omnimaga Music Discographist ;)
DJ Omnimaga Discography
My Own Music!
My Released Projects (Updated 2015/05/08)
TI-nspire BASIC
TI-nspire Hold 'em
Health Bar
Scissors Paper Rock
TI-nspire Lua
Numstrat
TI-nspire Hold 'em Lua
Transport Chooser
Secret Project (at v0.08.2 - 2015/05/08)
Spoiler For Extra To-Be-Sorted Clutter:

Spoiler For Relegated Projects:
TI-nspire BASIC
Battle of 16s (stalled) | sTIck RPG (stalled) | Monopoly (stalled) | Cosmic Legions (stalled)
Axe Parser
Doodle God (stalled while I go and learn some Axe)