Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
22 May, 2013, 09:55:24 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: 1 2 3 [4] 5   Go Down
  Print  
Author Topic: Minicraft / Terraria clone -  (Read 3696 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
linuxgeek96
LV3 Member (Next: 100)
***
Offline Offline

Last Login: Yesterday at 20:08:01
Date Registered: 17 October, 2011, 18:15:24
Location: WLHS
Posts: 96


Topic starter
Total Post Ratings: +3

View Profile WWW
« Reply #45 on: 13 April, 2012, 07:25:30 »
0

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.
Logged

Jim Bauwens
Lua! Nspire! Linux!
Editor
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: Today at 08:05:41
Date Registered: 28 February, 2011, 22:32:12
Location: Belgium
Posts: 1733


Total Post Ratings: +180

View Profile WWW
« Reply #46 on: 13 April, 2012, 17:02:36 »
0

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 Wink

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

Anyway, good luck!
Logged

Chockosta
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: Yesterday at 18:41:08
Date Registered: 03 June, 2011, 20:14:17
Location: France
Posts: 440


Total Post Ratings: +159

View Profile
« Reply #47 on: 13 April, 2012, 20:45:05 »
0

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 Smiley

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)


* ScreenShot123.png (10.58 KB, 320x239 - viewed 508 times.)
« Last Edit: 13 April, 2012, 20:59:40 by Chockosta » Logged

Chockosta (Loic Pujet) - Sorry for my poor English...
Look at my projects :
in C code : Periodic table, Space invaders, Fall, Snake, Minesweeper, nCraft (WIP)
in Lua : Snake, Space invaders, Bobby Carrot, Minesweeper, Mazes 3D, nSpaint, FreeCell, Tiny3D-Viewer, CubeField, Gravity Guy
Jim Bauwens
Lua! Nspire! Linux!
Editor
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: Today at 08:05:41
Date Registered: 28 February, 2011, 22:32:12
Location: Belgium
Posts: 1733


Total Post Ratings: +180

View Profile WWW
« Reply #48 on: 13 April, 2012, 21:34:33 »
0

Yeah, I get the same result in PCspire.
But I guess he is still busy on it, so I'm patient Smiley
« Last Edit: 13 April, 2012, 21:34:57 by jimbauwens » Logged

someone
LV3 Member (Next: 100)
***
Offline Offline

Gender: Male
Last Login: Yesterday at 19:57:34
Date Registered: 12 January, 2012, 19:07:23
Posts: 48


Total Post Ratings: +9

View Profile
« Reply #49 on: 13 April, 2012, 23:33:12 »
0

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)
Logged
linuxgeek96
LV3 Member (Next: 100)
***
Offline Offline

Last Login: Yesterday at 20:08:01
Date Registered: 17 October, 2011, 18:15:24
Location: WLHS
Posts: 96


Topic starter
Total Post Ratings: +3

View Profile WWW
« Reply #50 on: 14 April, 2012, 00:55:10 »
0

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: 15 April, 2012, 15:13:38 by linuxgeek96 » Logged

DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Today at 07:31:30
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50214


Total Post Ratings: +2613

View Profile WWW
« Reply #51 on: 18 April, 2012, 03:17:57 »
0

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.
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
linuxgeek96
LV3 Member (Next: 100)
***
Offline Offline

Last Login: Yesterday at 20:08:01
Date Registered: 17 October, 2011, 18:15:24
Location: WLHS
Posts: 96


Topic starter
Total Post Ratings: +3

View Profile WWW
« Reply #52 on: 18 April, 2012, 13:20:02 »
0

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.
Logged

Jonius7
aka jhgenius
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: 20 May, 2013, 06:58:52
Date Registered: 03 September, 2010, 02:50:11
Location: Gold Coast, Australia
Posts: 1743


Total Post Ratings: +50

View Profile WWW
« Reply #53 on: 20 April, 2012, 01:29:04 »
0

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: 20 April, 2012, 01:30:01 by Jonius7 » Logged



Userbars.com is down?
+9001
Intermediate TI-nspire Basic Programmer
Programmed some CASIO Basic in the past
DJ_O Music Discographist Wink
Userbars for these coming... in the process

My Released and Announced Projects (Updated 2013/01/29)
TI-nspire BASIC
TI-nspire Hold 'em | Health Bar | Scissors Paper Rock | Battle of 16s (stalled) | sTIck RPG (stalled) | Monopoly (stalled)

TI-nspire Lua
Numstrat | TI-nspire Hold 'em Lua | Terraria (coming soon)
Axe Parser
Doodle God (stalled while I go and learn some Axe)

Spoiler for Other Stuff:
Spoiler for Want your own HonestDownloads userbar?:
Hello! Do you want to show your affection for my website, HonestDownloads? Then here is a userbar I specially created earlier just for HonestDownloads users!

To add it to your signature just copy and paste the code below into your sig and you'll become an instant supporter of my website!

1
[URL=http://www.jhgenius01.webs.com][IMG]http://s1.bild.me/bilder/060112/3684792HDuserbaruser.png[/IMG][/URL]
Spoiler for My TI-nspire Basic Programs (Updated 2012/04/15):
***List of Programs in the TI-nspire Stadium***
Group Release 2012/04/07 on omnimaga.org

Games
   Noteable Release    ticalc.org Release Development/Not Publicly Released
2010/05/08 TI-nspire Hold 'em
   2012/04/07 v1.1.2   2012/04/10 v1.1.3  2012/04/14 v1.2.1
2010/08/03 Cosmic Legions
   2012/04/07 v0.2.2.2 (1st Release)
2010/08/12 Battle of 16s
   2012/04/07 v0.2.7
2010/09/10 Health Bar
   2012/04/07 v1.2     2012/04/02 v1.0   
2010/12/04 sTIck RPG
   2012/04/07 v0.1.5.2
2011/01/09 Monopoly
   2012/04/07 v0.16    (1st Release)
2012/04/09 Scissors Paper Rock
   2012/04/14 v0.8.1

Miscellaneous
2010/11/07 中文 (Chinese) Demonstration
   2012/04/07 v1.3     (1st Release)

Potential/Minor Programs
2010/09/26 Shanghai Metro
   2012/04/07 v0.2     (1st Release)
2010/12/22 TI-nspire Programming Tutorials
   2012/04/07 v0.1     (1st Release)
2010/12/28 Casino Games
   Was not released.
2011/04/22 Interlink
   2012/04/07 v0.0.4   (1st Release)
2012/03/22 Hierarchy
   2012/04/07 v0.01

Demo Programs (some may become Potential Programs)
2010/06/23 Monopoly (Board)
   2012/04/07 Prototype
2010/07/14 Strategy Battle
   2012/04/07 v0.12
2010/10/05 JRPG
   2012/04/07 v0.2
2010/11/02 PlotGrid
   2012/04/07 v0.2
2010/11/24 civilizaTIon™
   2012/04/07 v0.11

Purely Informational
2011/01/05 TI-nspire Stadium Changelog
   2012/04/07 v2
   Created to list significant releases of my programs. A page similar to this List of Programs in the TI-nspire Stadium was included in the documentation of most of my programs until sometime in Late 2011/Early 2012.

All games and programs coded in TI-nspire Basic.
© 2010-2012 Jason Ho.
Last Updated 14 April 2012

jhgenius01.webs.com
Will be moving! Stay tuned for updates.
Spoiler for Progress of Doodle God Axe:
2011/12/21 4% - Progress Suspended, ideas of graphical sprites still uncertain
Spoiler for Other Other You Know What Other Stuff I'm Talking About Stuff Stuff (Updated 2012/01/17):
hellninjas
LV7 Elite (Next: 700)
*******
Offline Offline

Gender: Male
Last Login: Today at 05:41:10
Date Registered: 12 May, 2011, 02:15:30
Location: USA
Posts: 615


Total Post Ratings: +17

View Profile
« Reply #54 on: 04 May, 2012, 05:44:27 »
0

May I ask about your progress so far?
Logged

Spoiler for Hidden:
linuxgeek96
LV3 Member (Next: 100)
***
Offline Offline

Last Login: Yesterday at 20:08:01
Date Registered: 17 October, 2011, 18:15:24
Location: WLHS
Posts: 96


Topic starter
Total Post Ratings: +3

View Profile WWW
« Reply #55 on: 14 May, 2012, 18:16:27 »
0

Hi guys, sorry I haven't posted in a while (finals cramming Tongue). 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).
Logged

MasterGeek
LV2 Member (Next: 40)
**
Offline Offline

Gender: Male
Last Login: 16 April, 2013, 15:17:32
Date Registered: 14 April, 2012, 09:59:26
Location: Canada
Posts: 24


Total Post Ratings: 0

View Profile
« Reply #56 on: 15 May, 2012, 03:15:49 »
0

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.
Logged
DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Today at 07:31:30
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50214


Total Post Ratings: +2613

View Profile WWW
« Reply #57 on: 15 May, 2012, 03:18:50 »
0

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.
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
AzNg0d1030
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: 19 May, 2013, 23:04:34
Date Registered: 26 October, 2011, 04:43:09
Location: Over the rainbow
Posts: 488


Total Post Ratings: +37

View Profile
« Reply #58 on: 18 July, 2012, 04:37:48 »
0

Is this project still continued or has it been terminated?
Logged

What? WHAT? WHATTTT?Huh??

You just lost the game.

Suck it up.
Jonius7
aka jhgenius
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: 20 May, 2013, 06:58:52
Date Registered: 03 September, 2010, 02:50:11
Location: Gold Coast, Australia
Posts: 1743


Total Post Ratings: +50

View Profile WWW
« Reply #59 on: 18 July, 2012, 05:42:09 »
0

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
Logged



Userbars.com is down?
+9001
Intermediate TI-nspire Basic Programmer
Programmed some CASIO Basic in the past
DJ_O Music Discographist Wink
Userbars for these coming... in the process

My Released and Announced Projects (Updated 2013/01/29)
TI-nspire BASIC
TI-nspire Hold 'em | Health Bar | Scissors Paper Rock | Battle of 16s (stalled) | sTIck RPG (stalled) | Monopoly (stalled)

TI-nspire Lua
Numstrat | TI-nspire Hold 'em Lua | Terraria (coming soon)
Axe Parser
Doodle God (stalled while I go and learn some Axe)

Spoiler for Other Stuff:
Spoiler for Want your own HonestDownloads userbar?:
Hello! Do you want to show your affection for my website, HonestDownloads? Then here is a userbar I specially created earlier just for HonestDownloads users!

To add it to your signature just copy and paste the code below into your sig and you'll become an instant supporter of my website!

1
[URL=http://www.jhgenius01.webs.com][IMG]http://s1.bild.me/bilder/060112/3684792HDuserbaruser.png[/IMG][/URL]
Spoiler for My TI-nspire Basic Programs (Updated 2012/04/15):
***List of Programs in the TI-nspire Stadium***
Group Release 2012/04/07 on omnimaga.org

Games
   Noteable Release    ticalc.org Release Development/Not Publicly Released
2010/05/08 TI-nspire Hold 'em
   2012/04/07 v1.1.2   2012/04/10 v1.1.3  2012/04/14 v1.2.1
2010/08/03 Cosmic Legions
   2012/04/07 v0.2.2.2 (1st Release)
2010/08/12 Battle of 16s
   2012/04/07 v0.2.7
2010/09/10 Health Bar
   2012/04/07 v1.2     2012/04/02 v1.0   
2010/12/04 sTIck RPG
   2012/04/07 v0.1.5.2
2011/01/09 Monopoly
   2012/04/07 v0.16    (1st Release)
2012/04/09 Scissors Paper Rock
   2012/04/14 v0.8.1

Miscellaneous
2010/11/07 中文 (Chinese) Demonstration
   2012/04/07 v1.3     (1st Release)

Potential/Minor Programs
2010/09/26 Shanghai Metro
   2012/04/07 v0.2     (1st Release)
2010/12/22 TI-nspire Programming Tutorials
   2012/04/07 v0.1     (1st Release)
2010/12/28 Casino Games
   Was not released.
2011/04/22 Interlink
   2012/04/07 v0.0.4   (1st Release)
2012/03/22 Hierarchy
   2012/04/07 v0.01

Demo Programs (some may become Potential Programs)
2010/06/23 Monopoly (Board)
   2012/04/07 Prototype
2010/07/14 Strategy Battle
   2012/04/07 v0.12
2010/10/05 JRPG
   2012/04/07 v0.2
2010/11/02 PlotGrid
   2012/04/07 v0.2
2010/11/24 civilizaTIon™
   2012/04/07 v0.11

Purely Informational
2011/01/05 TI-nspire Stadium Changelog
   2012/04/07 v2
   Created to list significant releases of my programs. A page similar to this List of Programs in the TI-nspire Stadium was included in the documentation of most of my programs until sometime in Late 2011/Early 2012.

All games and programs coded in TI-nspire Basic.
© 2010-2012 Jason Ho.
Last Updated 14 April 2012

jhgenius01.webs.com
Will be moving! Stay tuned for updates.
Spoiler for Progress of Doodle God Axe:
2011/12/21 4% - Progress Suspended, ideas of graphical sprites still uncertain
Spoiler for Other Other You Know What Other Stuff I'm Talking About Stuff Stuff (Updated 2012/01/17):
Pages: 1 2 3 [4] 5   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.3 seconds with 31 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.