Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - devpolytechnic

Pages: [1]
1
Lua / Те́трис, anyone?
« on: September 25, 2011, 08:50:49 am »
No matter how many tutorials I scroll through online, I can't seem to find any that show how to program something like Tetris. How do you program the pieces and all; how do you program so that the pieces' "skin" is not just blocks of color; how do you make it so that when the pieces line up, you get points?
 ???

Considering the fact that Lua has only been in the TI-Nspire CX/CX CAS OS for several months, I don't expect for there to be many tutorials online. Maybe somebody could create one ;D

If there are any tutorials on this that I haven't found, please tell me!

Thanks in advance.

2
Lua / Re: TI.IMAGE help
« on: September 23, 2011, 07:54:55 am »
@pianoman
There's a scripting tool that's out there made by TI to help you convert images to TI.Images. The TI-Nspire Scripting Tool (http://education.ti.com/calculators/downloads/US/Software/Detail?id=6840) can help you convert your .lua files into copyable form, and you can copy that into a blank document on the TI-Nspire Student/Teacher Software, or you can use it to help you convert images into text form.

Convert a .lua file by clicking File -> Load Script App. This prompts a new window for the .lua location. Once you have selected so, click Enter and it will say at the bottom "yadayadayada...something has been placed on clipboard.". Go to your Nspire software, make a new document, but don't make a Calculator, Notes, etc. Instead, just click outside of it, and there's your blank document that says "Press Menu". Ctrl+V (Paste) it, and voila, whatever you wanted to convert into a .lua file should be inside it. (Although if you are trying to make a .tns, use Luna 2.0)

WARNING: This may cause some lag. Converting an image file you found from the internet to at least a million characters + may cause lots of lag.
Convert an image into text by clicking File -> Load Image. This prompts a new window, select the image, and hit Enter. It should also say at the bottom "...Something has been placed on your clipboard." Paste this into a text document (no OCLua, unfortunately, the calculator will say there are too many chars, and I don't think you want to copy one million numbers and slashes).

imageName = image.new("yadayadayadayadaimagetextcode") -- You probably know this anyway

I hope this helps!

3
@adriweb
I checked the version I downloaded, and it was Luna version 1.0a.    ;)
I downloaded version 2.0 from the link you had, and it worked perfectly.  ;D
Thanks for the quick reply and help!

Now all I have to do is figure out how to program Pong in Lua...This is going to be fun  ::)

4
@Adriweb
I'm beginning to program right now in Lua, but for some reason, when I tried converting my .lua file, it says this error:
The program can't start because zlib1.dll is missing from your computer. Try reinstalling the program to fix this problem.

In case you think this is a hardware error, here are my PC specs (Note: I built my own computer):
OS: Windows 7 Ultimate 64-Bit Service Pack 1 Version 6.1.7601
CPU: AMD Phenom II X6 1100T Black Edition at 3.3 GHz
Memory: Corsair 8GB Vengeance Blue 1600 MHz
Video Card: XFX Radeon HD 6950 1 GB GDDR5
 ???

Thanks,
devpolytechnic

Pages: [1]