Author Topic: NSpire Gamekit - a game framework for Ndless (WIP)  (Read 3020 times)

0 Members and 1 Guest are viewing this topic.

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 229
  • Rating: +98/-0
    • View Profile
    • tangrs blog
NSpire Gamekit - a game framework for Ndless (WIP)
« on: September 13, 2011, 04:29:19 am »
I got bored and decided to try and write homebrew for the calcs again.

Bascially, I wanted to port a game but I thought it might be better to write a reusable framework instead. That would mean for future games, I wouldn't have to rewrite a lot of the stuff relating to graphics and all and others could potentially use it.

So here it is: https://code.google.com/p/nspire-gamekit/

The code probably isn't the most prettiest you've seen and it doesn't exactly run fast but it does the job. It's a work in progress.
I hope this could be useful to some people and would appreciate some feedback.

Cheers,

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: NSpire Gamekit - a game framework for Ndless (WIP)
« Reply #1 on: September 13, 2011, 04:57:06 am »
Looks very interesting :)
Sadly enough I'm not in the Ndless camp, but in the Lua one, so I can't test it.

I wish you good luck with it, and most of all, have fun :D
« Last Edit: September 13, 2011, 04:57:47 am by jimbauwens »

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: NSpire Gamekit - a game framework for Ndless (WIP)
« Reply #2 on: September 13, 2011, 05:00:18 am »
Hello and welcome on Omnimaga :)

Game frameworks are indeed one of the many things Nspire C/ASM development needs - but it's a lot of work...

For sources of inspiration (or perhaps even C source compatibility ?), have you looked at other GFX libraries (some of which have functions related to a game framework) used on other graphing calculators, such as:
* GenLib ( http://www.yaronet.com/t3 ), run-time dynamic "kernel-based" library for the TI-68k series;
* ExtGraph ( http://tict.ticalc.org, https://github.com/debrouxl/ExtGraph ), compile-time static library for the TI-68k series;
* the smaller libraries embedded in HPGCC ( http://sourceforge.net/projects/hpgcc/ ), which are, unlike the two ones I've just mentioned, are already targetted at an ARM-based platform ?

One last note for now: you probably want to leave room for two sets of functions, one for the Nspire Clickpad & Touchpad (4-bit grayscale) and one for the Nspire CX & CM (16-bit color). The latter does not currently have native code, but it will eventually become accessible.
And the distinction between those modes should be taken into account early in the design and coding of any framework, because adding it later is harder :)
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 229
  • Rating: +98/-0
    • View Profile
    • tangrs blog
Re: NSpire Gamekit - a game framework for Ndless (WIP)
« Reply #3 on: September 13, 2011, 05:46:08 am »
Hmm, the thought of the NSpire CX had not occurred to me. I'll take a look at the libraries you posted, thanks for the heads up :)

Thanks for the feedback guys!