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

Pages: 1 ... 22 23 [24] 25 26 ... 33
346
TI Z80 / Re: tanks and AI
« on: July 04, 2012, 09:09:48 am »
Cool! I considered doing something similar for the nspire, but changed my mind.

347
TI Z80 / Re: [contest] Racing game
« on: June 16, 2012, 10:34:31 am »
I think he wanted to say he can't post the source right now because of the contest rules.

348
TI Z80 / Re: [INDEV] Pixelscape: online sprite and tilemap editor
« on: June 09, 2012, 12:43:58 pm »
This editor is great!

For me with firefox 12 everything works perfectly except copy & paste. Or are you not supposed to be able to copy a sprite and paste it in another one?

Are you planning to make also the sprites resizable? That would make it even more universally usable.

349
Miscellaneous / Re: How cheap is your keyboard?
« on: June 05, 2012, 04:08:32 pm »
THKBNFJSTHLAZDG

Built-in keyboard of my laptop :(
Almost the same as turiqwalrus, only with a qwertz instead of a qwerty keyboard.

350
TI-Nspire / Re: Line Runner for Nspire
« on: May 20, 2012, 03:12:48 pm »
After some months without calc programming I finally returned and continued this project  ;D

It now has an animated stick figure, but for now only when running (because I'm not very talented and slow in drawing). It probably rather looks like a walking figure than like a running one :-\

And I created a moving screenshot with Jonius7's tutorial ;)

351
General Discussion / Re: Watcha Been Listening Too?
« on: May 20, 2012, 02:20:14 pm »
Eluveitie and Skrillex :D

352
TI-Nspire / Re: nCHIP8
« on: May 17, 2012, 01:53:06 pm »
I am using the setPixel routine from the ndless example source code.  chip->LCD is a 2,048 (64x32) byte array with each element presumably holding a 1 if the pixel is set and a 0 if it is reset.
Code: [Select]
if (chip->drawflag)
{
for(int row = 0; row < 32; row++)
{
for(int col = 0; col < 64; col++)
{
/*ignore the comments if you must
                                                        for(int rowoffs = 0; rowoffs < 8; rowoffs++){
for(int coloffs = 0; coloffs < 8; coloffs++){
setPixel(col + coloffs, row + rowoffs, (0x0F * (chip->LCD[32*row + col])) ^ 0x0F);
}
}*/
setPixel(col, row, (0x0F * (chip->LCD[32*row + col])) ^ 0x0F);

}
}
}

Now, I think this is all fine and dandy, but I get something that looks like garbled junk when trying to run SPACEINVADERS (see attached pic).
Shouldn't it be setPixel(col, row, (0x0F * (chip->LCD[64*row + col])) ^ 0x0F); ? Or am I wrong?

353
Math and Science / Re: How would you solve this math problem?
« on: May 10, 2012, 04:43:50 pm »
It would be very easy in Python, but unfortunately I have to go to sleep now.

354
TI-Nspire / Re: C or ASM IDE for the Nspire
« on: May 08, 2012, 04:16:28 pm »
I would program much more if I could do it on-calc during boring lessons or at lunchtime. If you make this I'll definitely use it!

there's only one thing i don't really get.. is there so much ASM development for the Nspire? or is it just that i don't see see it? because i haven't seen anywhere programs made in ASM for the Nspire xs therefore it seems a bit lost work to make an ASM compiler
Barely anyone codes in ASM. Calc84maniac did, but almost everyone else seems to use C. In fact it was the same on 68K calcs after TIGCC arrived and since Cemetech took over PRIZM development now it seems to be the same for that platform too (when PRIZM dev started on Omni people were using ASM)
This could also be due to the very good tutorials on how to use ndless for C whereas asm isn't really mentioned anywhere. However now that I'm writing this I remember there's a sample asm program included with ndless.

355
TI-Nspire / Re: Some 3D with Ndless...
« on: April 29, 2012, 07:26:03 am »
I tested it with an older x86 gcc and it worked...
But I'm glad you found another solution :)

356
TI-Nspire / Re: Some 3D with Ndless...
« on: April 28, 2012, 07:15:53 pm »
Hello everybody !

I have problems with color support, and I would need your help...
I have to change my buffer from uint8_t* to void*.

But in a function to change a pixel, I have to cast a void* value to an uint8_t if the screen is in 4 bpp mode.
So I tried :
Code: [Select]
function setPixel(void *buffer,int x,int y,int color)
{
    //...
    uint8_t px=*((uint8_t *)buffer[pos])     //pos is an int
    //...
}
But gcc does not like that... What should I do instead?

A function doesn't have a "function" in front of its name, although I'm not sure you wrote it in your code like that.

For the cast, try this:
Code: [Select]
uint8_t px=(((uint8_t *)buffer)[pos]);
If you write a * in front of it and a [] at the end, you're dereferencing the pointer twice, the * is wrong here.
I'm not sure if you need the parentheses around "(uint8_t*)buffer", but they certainly don't do any harm.

357
Other Calculators / Re: If only it were real
« on: April 02, 2012, 04:53:36 pm »
I don't like Apple very much, this would lock down the nspire even more as Lionel said :D

358
News / Re: Lua print restored in OS 3.1
« on: March 26, 2012, 03:54:46 pm »
Quote from: Chockosta on Today at 18:01:46
- There is no official on-calc lua script editor
Well, nope, but it's not really easy to program 'big' things with Lua on-calc anyway (since it's more complex than Basic). LuaCS 2 provides, though, a really awesome editor with Syntax-Coloring, templates, etc.
Where can I find that program?

The price is mostly defined by the store that sells it. I've seen prices of a CX quite low, and basically the same as a 84 in that store.
Also, in term of hardware and mathematical features the CX blows the Prizm away.

Also, I personally found quite some of your remarks rude and would have down rated them if I could.
Something that many seen to forget is that the TI-Nspire series are incredible calculators. TI really has done a great job, and they are extremely good for education.
Maybe they don't support the community (which they actually do, every year a bit more and more), but they make excellent calculators which help many students of year again and again.

The only, and also ONLY downside I see is that they keep locking the calculators down. They have given reasons why, and I can understand them. I still think that it's not the correct thing to do (I'm sure Ndless can co-exist with TI), but I also understand there concerns.
I really like my CX, and I never though it was something horrible.
I agree with you that TI has made a great calc with the CX and that some people seem to not see the good things about it. But that they support the community every year a bit more is only half-correct since the z80 and 68k were open for programming in asm and everything, and their strategy to lock their calcs down was new with the nspires.

359
TI-Nspire / Re: Some 3D with Ndless...
« on: March 24, 2012, 12:10:05 pm »
I tested it on my non-cx cas, and movement and camera rotation worked and it didn't crash ;)
But it was a bit confusing that the screen was empty until I pressed a key.
Keep up the good work :)

360
Humour and Jokes / Re: Pi day
« on: March 18, 2012, 04:54:49 am »
I know about 50 digits, but I only use 6 :)

Pages: 1 ... 22 23 [24] 25 26 ... 33