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 - njaddison

Pages: [1] 2 3 ... 12
1
Lua / Re: Lua Q&A
« on: February 15, 2014, 09:24:12 pm »
OK, so I'm programming my first game in Nspire Lua, and I have a lot of questions, but first let me deal with problems I've had so far.
The game is a simple pong clone. Here is the code so far:
Code: [Select]
function on.paint(gc)
    local screen = platform.window
    local h=screen:height()
    local w=screen:width()
    gc:setFont("sansserif", "b", 24)
    gc:setColorRGB(255,193,37)
    local sw = gc:getStringWidth("Pong")
    local sh = gc:getStringHeight("Pong")
    gc:drawString("Pong",w/2-sw/2,h/16+sh/16)
    gc:setFont("sansserif", "r", 12)
    gc:setColorRGB(255,255,255)
    local s2w = gc:getStringWidth("Simple Pong clone by njaddison")
    local s2h = gc:getStringHeight("Simple Pong clone by njaddison")
    gc:drawString("Simple Pong clone by njaddison",w/2-s2w/2,h/2+s2h/2)
end

function on.enterKey()
    screen:invalidate()
end
So far I've finished the title screen (subject to change) and that's pretty much it. I'm trying to make it so once you press the escape key after the game starts (game starts by pressing enter key), it will restart the code, or at least recall the title screen function. I think this is possible with
Code: [Select]
while true do loop, but I kept running into errors, and I don't even know if I can recall a function that is in a loop with a function that is outside of one.
Also, how would I go about making the title screen background black? I want it to look a bit like the original pong, and also, you can't see the "Simple pong clone by njaddison" if the screen is white because the text is white.

EDIT:
Also, an animation of pong in the background of the title screen would be nice, like with the lua clone of Cubefield.

2
Lua / Re: Lua Q&A
« on: February 15, 2014, 09:15:16 am »
Yes I'm guessing that trigonometry is essential if I want to learn to program games. I learned basic trig in Geometry, how can I apply that to programming? It's something I've been wondering for a very long time, as i want to program my first game in lua, on the nspire.
EDIT:
Not actually ON the nspire, just for it.

3
Lua / Re: Lua Q&A
« on: February 15, 2014, 12:20:15 am »
wheneva i lookz at someone'z lua source code it haz a bunch of trigz and I'z juz like omgz what the crudz doez all this meanz it'z so weirdz
No spamming/trolling intended, I just want to know why you'd wanna use trig in a lua code. I'm not very skilled at programming (YET). Someday, I wanna be the very best. That no one ever was. But anyways, no spamming/trolling intended.

4
TI-Nspire / Re: KJV Bible for the NSpire???
« on: February 15, 2014, 12:13:35 am »
The bible is quite a lot of pages... I wonder if it fits?
Lol quite a lot is quite correct...
Even if you flip through the Bible page by page (without reading the pages) it will still take forever (+1 day). I can't begin to imagine how big of a file that would be, assuming it would be large (which I have God reason -- haha, pun intended -- to believe so).

5
General Calculator Help / Re: Nspire Serial boot 2 downgrade?
« on: February 14, 2014, 04:12:12 pm »
OK, I attempted sending the file through the xmodem protocol, but my serial program keeps saying "Retry 0: Got 01 for sector ACK." This is very annoying, but I don't want to give up yet. I don't think that ndless 3.2 will be coming anytime soon, so I really want to downgrade my boot2 and use nlaunch.

EDIT: It also says "Retry 0: Timeout on sector ACK"
It's not sending at all. I can only get it to send raw files (no protocol).

6
General Calculator Help / Re: Nspire Serial boot 2 downgrade?
« on: February 13, 2014, 06:18:05 pm »
Finally got the connections to stay put.
Now I am sending the file. Images attatched, tell me if I am doing this right.

7
General Calculator Help / Re: Nspire Serial boot 2 downgrade?
« on: February 13, 2014, 03:19:26 pm »
I apologize for double posting, but what type of adhesive should I use for the connectors? It needs to be one that:
- can be easily removed
- will not damage my calc
- is not messy or sticky
- is not hard to use or annoying

EDIT:
I have attached a picture

8
General Calculator Help / Re: Nspire Serial boot 2 downgrade?
« on: February 11, 2014, 11:09:16 am »
My boot 2 is 3.2.4 and I need to downgrade it to 3.1.0 to use nlaunch. My goal is to have my cx ndlessed.
My jumper cables are the stiff kind with metal prongs on the end, and they won't go next to each other because of a black plastic thing on them (don't know what it's called).
Does anybody know where to find some flexible serial cables?
Like the kind in this picture: http://tiplanet.org/forum/gallery/image.php?album_id=4&image_id=41&view=no_count

9
General Calculator Help / Nspire Serial boot 2 downgrade?
« on: February 10, 2014, 07:27:14 pm »
I recently got a TTL-USB adapter and I want to use it to downgrade my nspire's boot 2. I have a hardware revision I CX CAS, but my problem is getting the pins to stay and keeping the serial port from snapping shut while I attempt to connect the proper pins. I've been trying for hours, using tape to keep the pins down, but they continue to move around and I can't get them to stay. I haven't connected it to the computer in fear of one of the pins moving and messing up my calc. Could you please give me a tip on how to keep the pins in place and how to send the boot 2 to the nspire? I also have no knowledge of sending files through RS232. My operating system is Ubuntu Linux.
Thanks,
njaddison

10
TI-Nspire / Re: On-calc Nspire emulators
« on: September 15, 2013, 03:40:53 pm »
There already is a z80 emulator for the nspire, calcemu by jacobly. It is based on bootfree though so things like Axe won't work IIRC.
Does this mean that MirageOS won't work either?

11
TI-Nspire / Re: On-calc Nspire emulators
« on: September 15, 2013, 03:18:01 pm »
Is this topic only for game system emulators? I voted for SNES, but it would be cool to have a TI-84 Plus SE emulator for the nspire grayscale and nspire CX, and maybe even a TI-84 CSE Emulator for the CX. But, since the CSE just came out a little while ago, I doubt any emulators have been made yet (Except the TI one that comes with most TI-calcs).

12
News / Re: New TI-Nspire CX hardware revision K
« on: September 04, 2013, 06:36:12 pm »
Uhh.. there is always the TI-89 Titanium! CAS and no battles with TI either!
Although the nspire may be the newest and have the newest features, using a TI-89 could get around the CAS problem.

13
News / Re: New TI-Nspire CX hardware revision K
« on: September 04, 2013, 06:33:55 pm »
When sending an old os to the nspire, what causes it to be rejected? The software or the nspire itself? It's probably the nspire, but just making sure.
Also, the annoying upgrade message could be removed, and the force update option could be also.

14
News / Re: New TI-Nspire CX hardware revision K
« on: September 04, 2013, 06:26:47 pm »
Could the jar files be modded (Kinda like minecraft.jar)?

15
News / Re: New TI-Nspire CX hardware revision K
« on: September 04, 2013, 06:22:52 pm »
Heheheh... i just found some jar files in the student software directory. I'm going to open them to see what I can find...

Pages: [1] 2 3 ... 12