HeronErin / TiConstructor

An easy, lightweight, library and set of built tools for the TI-84
GNU General Public License v3.0
3 stars 1 forks source link

Few questions about this library. #1

Open NeoGeoFreak2004 opened 1 month ago

NeoGeoFreak2004 commented 1 month ago

Hi there, so anyways I have a few questions about the ti constructor library. 1. How do I add backgrounds to my project? 2. Is the link cable supported for multiplayer games? 3. How do I add 2 or more sprites then just one sprite on the screen? And finally. Thanks for the project that you made! Also I'm sorry if these are noob questions. Thanks again and have a good day!

HeronErin commented 1 month ago

Sorry for the late reply, I will try to answer your questions:

  1. Adding backgrounds need to be done manually, this means copying the raw pixel data into G_SCREEN_BUFFER (see graphics.c) before you draw to the screen. This library does not provide much specific functions for graphics, so you must write the raw data directly to a buffer. For more information on how the TI-84 / TI-83 handles graphics see Day 24 of the asm guide. I would recommend copying the background into the buffer before then drawing your sprites onto it (although this might be bad for preference)
  2. No support for the link cable is supported, I recommend using TILP for linux and TI Connect for windows
  3. The fullPutSprite() function can be called multiple times with multiple different x and y possessions, although when they intercept they start looking strange. Ex:
    // A modified example from examples/sprites
    clearBuffer(); // clear drawing buffer
    fullPutSprite(x, y, cross_WIDTH, cross_HEIGHT, cross_DATA);
    fullPutSprite(50, 50, cross_WIDTH, cross_HEIGHT, cross_DATA);
    swap();

Thanks for using my library, although fair warning, I have not maintained it in a while.