Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
25 May, 2013, 11:00:19 *
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]   Go Down
  Print  
Author Topic: questions about starting LUA programming -  (Read 577 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
Kjelddy
LV3 Member (Next: 100)
***
Offline Offline

Gender: Male
Last Login: 16 May, 2013, 20:24:44
Date Registered: 11 June, 2011, 17:34:28
Location: Holland
Posts: 80

Topic starter
Total Post Ratings: +1

View Profile
« on: 14 September, 2011, 17:29:36 »
0

hi all Smiley
I want to get started on programming stuff for my CX, but I haven't programmed ever before ..... so here are some basic questions( for you) I have before I start programming

1 is it hard to code in nspire LUA?

2should i learn LUA befor nspire LUA?(if not what must I know about LUA or other programming languages?)

3 how should I start (I know of the hello world but even that I don't get .... (from the video of adriweb)more explanation at the bottom)

4 how long does it take to make a simple programm/game?

this all may be dumb questions for some of you (and I may have not searched enough for more info). but anwsers to these questions may help me a great deal. I might post some more questions in this topic later on.
thanks in advantage

sidenode to 3 i think i undestand it now, so is a string a line of text?
Logged

KJ
in need of omnoms ? check this out Tongue
http://img.removedfromgame.com/imgs/0-omnom.png
Levak
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: Today at 00:01:49
Date Registered: 04 April, 2010, 23:42:49
Location: France
Posts: 844


Total Post Ratings: +148

View Profile WWW
« Reply #1 on: 14 September, 2011, 17:46:36 »
0

1) nspire Lua is Lua but with nspire framework functions in it (I mean it is not like the difference between TI-èBasic and Basic whom are really differents)

2) Yes. Personnally I learnt Lua while discovering and documenting Nspire Lua. But I'm not an example. On the other hand, learning a language is hard without a goal/project. Your goal : understand how Lua tables and meta tables work Cheesy

3) You have the choice. So the question is "do you have time to learn completly Lua before learning the extra-functions of Nspire Lua ?" . If so, start open the huge Lua documentation and read it from begin to end. Same for lua-user documentation. Otherwise, use Inspired-Lua starting tutorials

4) What is a simple program for you ? For example I made in two days Nyan Cat. Two days is really short I think and a normal person will make it in 5-6 days. Give an example of what you think to be a "simple" program/game.

sidenote : a string is a table of characters. 'a' is a character, "aaaaaaa" is a string. But "aaaaa \n aaaaaaaaaaa \n aaa" is also a string.
Logged

Human always wants to survive and that's why he will fall one day.
My website - TI-Planet - iNspired-Lua
Jim Bauwens
Lua! Nspire! Linux!
Editor
LV10 31337 u53r (Next: 2000)
*
Online Online

Gender: Male
Last Login: Today at 10:55:59
Date Registered: 28 February, 2011, 22:32:12
Location: Belgium
Posts: 1733


Total Post Ratings: +180

View Profile WWW
« Reply #2 on: 14 September, 2011, 18:28:53 »
0

Quote
Two days is really short I think and a normal person will make it in 5-6 days. Give an example of what you think to be a "simple" program/game.
Yes, we all know you are not normal :p

Personally I didn't think it was hard, but if its the first time you program, it can be a bit hard.
Logged

Wellen
LV4 Regular (Next: 200)
****
Offline Offline

Gender: Male
Last Login: 02 May, 2012, 11:56:34
Date Registered: 08 August, 2011, 11:00:09
Location: France
Posts: 118


Total Post Ratings: +5

View Profile
« Reply #3 on: 14 September, 2011, 19:28:17 »
0

Plus with sound ! ^^
Logged

-/...././/--./.-/--/.
I'm french, so please feel free to correct my bad english, it'd help me a lot Wink
Spoiler for Feat. Loulou54:
Spoiler for Projects:
Spoiler for Axe:
Ti-Lock : Lock your calc before turning it off               [XXXXXXXX--] 80%
Spoiler for Ti-Basic:
Spoiler for Soko-Ti, a sokoban game in Ti-Basic:

Spoiler for Memory:

Downloads here.
Kjelddy
LV3 Member (Next: 100)
***
Offline Offline

Gender: Male
Last Login: 16 May, 2013, 20:24:44
Date Registered: 11 June, 2011, 17:34:28
Location: Holland
Posts: 80

Topic starter
Total Post Ratings: +1

View Profile
« Reply #4 on: 14 September, 2011, 20:54:53 »
0

2) Yes. Personnally I learnt Lua while discovering and documenting Nspire Lua. But I'm not an example. On the other hand, learning a language is hard without a goal/project. Your goal : understand how Lua tables and meta tables work Cheesy

3) You have the choice. So the question is "do you have time to learn completly Lua before learning the extra-functions of Nspire Lua ?" . If so, start open the huge Lua documentation and read it from begin to end. Same for lua-user documentation. Otherwise, use Inspired-Lua starting tutorials

4) What is a simple program for you ? For example I made in two days Nyan Cat. Two days is really short I think and a normal person will make it in 5-6 days. Give an example of what you think to be a "simple" program/game.

3 I don't think i have time to learn Lua completely (busy with school and stuff) but ofc i don't know how long that takes. so how long do u think to learn it (and it's it irritating to learn Lua first and then nspire Lua which seems to be a bit different)
4 by simple program I mean something like somethig that isn't just plain text like hello world but some action(and ofc as start not very large to make ) and what do u mean by days 24 hours or 8 hours ?
Logged

KJ
in need of omnoms ? check this out Tongue
http://img.removedfromgame.com/imgs/0-omnom.png
adriweb
Editor
LV9 Veteran (Next: 1337)
*
Offline Offline

Gender: Male
Last Login: 23 May, 2013, 12:02:44
Date Registered: 13 April, 2011, 18:42:59
Location: South of France
Posts: 1197


Total Post Ratings: +185

View Profile WWW
« Reply #5 on: 14 September, 2011, 21:02:56 »
0

About 3) :  I think Lua is so easy by itself, you can pretty much look at what its syntax is and right away dive in Nspire Lua.

You can look at other's code, tutorials, documentation etc., it will really help you a lots Smiley
Logged


TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation
Levak
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: Today at 00:01:49
Date Registered: 04 April, 2010, 23:42:49
Location: France
Posts: 844


Total Post Ratings: +148

View Profile WWW
« Reply #6 on: 14 September, 2011, 22:24:09 »
0

3) Lua is _exactly_ the same in syntax and command in Nspire-Lua. It is clearly a Lua port of the version 5.1. Then, TI added its own framework and way to program (event based), but it is still Lua.

4) 2 physical days during holidays .... understand what you want I can't remember how much I slept Cheesy
« Last Edit: 14 September, 2011, 22:24:24 by Levak » Logged

Human always wants to survive and that's why he will fall one day.
My website - TI-Planet - iNspired-Lua
Kjelddy
LV3 Member (Next: 100)
***
Offline Offline

Gender: Male
Last Login: 16 May, 2013, 20:24:44
Date Registered: 11 June, 2011, 17:34:28
Location: Holland
Posts: 80

Topic starter
Total Post Ratings: +1

View Profile
« Reply #7 on: 14 September, 2011, 22:28:14 »
0

if that's true I am a bit worried
5 * 24 = 120 hours and i think i have 0,5 til 1 hour a day (maybe some more in weekend but still ) so it would take me 120 to 240 days to make a game like nyancat :O
Logged

KJ
in need of omnoms ? check this out Tongue
http://img.removedfromgame.com/imgs/0-omnom.png
Levak
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: Today at 00:01:49
Date Registered: 04 April, 2010, 23:42:49
Location: France
Posts: 844


Total Post Ratings: +148

View Profile WWW
« Reply #8 on: 14 September, 2011, 22:30:44 »
0

If you only have 1 hour a day, yes it is really short for you. Actually many things are made during the weekend, or during school hours Cheesy
Logged

Human always wants to survive and that's why he will fall one day.
My website - TI-Planet - iNspired-Lua
Pages: [1]   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.269 seconds with 30 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.