Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Few questions about this library. #1

Open
NeoGeoFreak2004 opened this issue May 15, 2024 · 1 comment
Open

Few questions about this library. #1

NeoGeoFreak2004 opened this issue May 15, 2024 · 1 comment

Comments

@NeoGeoFreak2004
Copy link

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants