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

Pages: 1 ... 16 17 [18] 19 20 21
256
TI-Nspire / Re: Hyena: a simple (Lua) GUI library for the TI-Nspire
« on: August 17, 2011, 03:14:05 pm »
I added a short video to show how it works and runs. I can now move and close the windows, and added some content to one of them.

257
TI-Nspire / Hyena: a simple (Lua) GUI library for the TI-Nspire
« on: August 17, 2011, 08:10:29 am »
Hello,

I started a small project of writing in Lua a GUI library for the TI-Nspire. At the moment there's not much; the windows are clickable and the general floating windows thing works.
As everybody loves screenshots, I give you a screenshot:



Also here's a very early video with some content in one of the windows. I can move windows around and close them also (forgot to show that, but it works).

I'm not even sure if it will actually be that useful when I eventually manage to make something usable, but we'll see about that later.
Well that's about it for the moment. :3

258
Lua / Re: window.invalidate
« on: June 17, 2011, 10:02:33 am »
Actually it's not a very practical function, but it's the only way to refresh the screen. It eventually calls on.paint(), meaning it can get quite frustrating if your program needs a lot of refreshes at specific moments.

259
This was quick, but it's going 1.0 now. I fixed a small bug in the title screen (pressing the up arrow in the menu would make the "pixel" in the game change position) that Scout pointed out. The dot is now controlled using either tab or enter (which also means that doing sharp rises when both are pressed is possible), because the arrow key is useless. I initially wanted the player to be able to hold the key, but because the way the OS deals with key signals is crap, it has no advantage. After all tab or enter are also more comfortable and precise. Now the player can return to the title screen at any moment by pressing ctrl + menu. I made some other minor changes and slightly changed the code. This way I have a stable and clean version to work on later. The new download links are on the website.

260
hoffa, could you release the source please? I'd be delighted.
Sorry, didn't notice your message. Sure I will. I also updated the game, so it's up to 0.9 now (fine-tuned the settings some more, made the ranks realistically achievable, now the high score is saved as soon as the pixel hits a wall, added a small readme.txt file). I edited my first post, the new download link is on the website. I also released the source code, as you wished. :)

261
News / Re: Contest Part 2 starts: TI-Nspire Game
« on: June 15, 2011, 09:10:11 am »
Yes, this pleases me, I'm in! I'll start working on my 3D RPG written in Lua right away. o/

262
Lua / Re: Starting Nspire Lua
« on: June 13, 2011, 05:10:44 pm »
Just use the official tool: http://education.ti.com/calculators/downloads/US/Software/Download/en/6840/7896/TI-NspireScriptingTools.zip

Hello world:
Code: [Select]
function on.paint(gc)
    gc:drawString("Hello world!", 0, 0, "top")
end

Here's the documentation for the built-in Nspire functions: http://education.ti.com/downloads/guidebooks/ti-nspire/scripting/TI-NspireScriptingInterface.pdf

It's just stripped-down Lua with some added functions, so it shouldn't be new to you.

If you want sprites, you'll have to convert the images to a special string sequence (their so-called TI.Image format). You can use the 'official' converter (the image serialization button on their scripting tools).

263
You double posted? O.O

But yeah I didn,t notice it, as I didn't see any edit in your other post x.x (and double-posting within 6 hours of the last post is normally not allowed :P).

Thanks for the advice, though. I decided to just mash the key over and over, since it's easier that way. By the way I love the game :D. I planned posting a news soon, but I was busy trying two other calc games as well, which kinda slowed me down, not to mention yesterday I worked 12 hours in a row and had two other news to post X.x
Yeah, sorry my bad. Won't happen again. :)

by me the saving of the highscore still doesn't work... I am not if i am doing something wrong or if its the calculator(CX) or the game itself.
Try quitting the document using Ctrl + W (which is actually the way you really quit a document), it should then ask to save it.

264
Ah ok good.

What about the bug mentionned in my post edit above? (up arrow no longer responds after releasing it the first time). Basically the farthest I can even go is about 20 points or so, because after I moved up once, I can no longer do so again because the game no longer responds to my keypresses.

ActuallY nevemind, I just realized we still had to spam the up arrow to stay somewhat up. Holding it down is less responsive x.x
I somehow feel that you didn't notice my previous message. :*

265
EDIT: Bug report, I can only press the up arrow once. If I release the key, afterward it never detects anymore arrow key holding down again so after my first jump I fall down and die, no matter if I keep the up arrow pressed. ???
You mean when holding the key down? If yes, well then it hasn't got much to do with the program itself, but rather the way the whole OS has been made (or whatever that deals with the key presses). It only starts sending the key signals while you hold the button down after a short delay, and there is, as far as I know, no practical and accurate way of knowing when the button is held down. The controls should be quite sensitive, so just try to get used to pressing the button rather than holding it down (at least until I find a nice way to deal with the issue).

266
This looks nice! Also I like how you use different text fonts for the numbers at the bottom.

Also since the title screen is 16 level grayscale in the first screenshot, how large is it on calc? Somehow I think it must be larger than the entire game, but I could be wrong O.O
Well once the game has been saved, it takes about 16K of space, which is practically nothing. The ZIP compression their format uses does a good job in compressing the picture (and anything for that matter), so no worries there.

267
Okay new update. First of all I changed that depressive title screen into a less depressive one (long live monochrome displays! :3), and now the high score shows up there also. Then I added the "floating walls" to spice up the game, just cruising straight forward in the cave won't be enough anymore. I fine-tuned the settings and cleaned up the chamber of horrors (i.e. source code) into a polished piece of art. Also some slight performance improvements were made. Download link's there now.

Yes it does look good, but it's only decorative.
Of course I prefer games with wonderful graphics rather than text-only games.
The picture is heavier than the code, and I think that's strange... But this is not a big problem.
Well the whole point of graphics is that it's just eye candy. A well-decorated and good-looking dish is always better than the same food in a rusty old barrel.

268
Ndless / Re: Would Ndless 3.0 be possible through Lua?
« on: June 13, 2011, 08:50:45 am »
I was trying to add some things in the game I've been writing, when one relatively simple thing just didn't want to work. I wanted to print the value of a variable to debug my program, and this is what I saw (I tried it on the calculator itself and the same thing showed up):

I'm not going to conjecture anything at the moment (even though I have some ideas about what it might be). Now I'll just try and trim down the program while still keeping that thing there (and no, it's not a sprite), to try to better reproduce it.
Edit: oh and I'm talking about the theta and the two strange rectangles, not the game itself; I was just testing some things.

269
Great !
This game looks very nice, congrats !
(But the picture on the title screen must be quite heavy and not really useful)
Well, the picture on the title screen is the title screen picture after all. It might be heavy as raw text, but once it is processed and compressed by TI's tool, it gets very light. The "not really useful" is more subjective than anything else, some people might prefer to have a text-based game without graphics at all. They could just give out all those commercial games you see in shops in a small cardboard box; the artwork doesn't add anything to the game. I personally like to have a title screen, I guess I must be a perfectionist.

270
Do you use a var.store to 'externally' save the score to a math variable ?
Yes, but I tried accessing it externally without success (which is a good thing). Maybe it creates its own namespace only accessible through the document itself.

Pages: 1 ... 16 17 [18] 19 20 21