Don't have an account? Register now to chat, post, use our tools, and much more.
Latest Headlines
Online Users
There are 105 users online: 3 members, 78 guests and 24 bots. Members: alanclem, legodude, matrefeytontias. Bots: Spinn3r (2), MSN/Bing (2), Magpie Crawler (3), Googlebot (15), MSN/Bing (2).
RSS & Social Media
SAX
You must log in to view the SAX chat widget
|
| Author |
Message |
|
zeldaking
Power User

Joined: 31 Jul 2011 Posts: 470 Location: Utah
|
Posted: 06 May 2013 05:24:01 pm Post subject: Prizm programming help |
|
|
Well this might give away what I am working on but, sigh, I am stuck. Luckily it doesn't seem to be that big of a problem.
So the problem is when displaying the lines, it starts in the top left which is understandable but when looping through the while loop the lines start drawing more and more to the right when they should be parallel with the first. I am stumped. Do any of you know what's going on?
Code:
void disp_cards() {
int B=223;
int C=1;
int color=COLOR_BLACK;
while( C!=5) {
if (C==3) color=COLOR_RED;
drawLine( 1, 224-B, 45, 224-B, color);
C++;
B=B-47;
}
Bdisp_PutDisp_DD();
}
The drawline is one of the drawline routines in one of the threads. |
|
| Back to top |
|
|
Spenceboy98

Super-Expert

Joined: 06 Jan 2012 Posts: 824 Location: In the TARDIS
|
Posted: 06 May 2013 05:44:05 pm Post subject: |
|
|
I see nothing wrong.
 |
|
| Back to top |
|
|
zeldaking
Power User

Joined: 31 Jul 2011 Posts: 470 Location: Utah
|
Posted: 06 May 2013 05:46:20 pm Post subject: |
|
|
| Hmm its messing up on my prizm. I am confused now.. |
|
| Back to top |
|
|
Spenceboy98

Super-Expert

Joined: 06 Jan 2012 Posts: 824 Location: In the TARDIS
|
Posted: 06 May 2013 05:49:25 pm Post subject: |
|
|
Here is my main():
Code: int main() {
Bdisp_EnableColor(1);
while(1) {
int key = PRGM_GetKey();
if(key == KEY_PRGM_MENU) { GetKey(&key); }
keyupdate();
disp_cards();
if(key == KEY_PRGM_F6)
GetKey(&blah);
Bdisp_PutDisp_DD();
Bdisp_AllCr_VRAM();
}
return 0;
}
|
|
| Back to top |
|
|
flyingfisch

Super-Expert

Joined: 02 Feb 2012 Posts: 896 Location: Akron, OH
|
Posted: 06 May 2013 07:13:00 pm Post subject: |
|
|
0x5, I was just thinking of starting to make a card game in LuaZM... coincidence? _________________

 
 |
|
| Back to top |
|
|
zeldaking
Power User

Joined: 31 Jul 2011 Posts: 470 Location: Utah
|
Posted: 06 May 2013 10:58:06 pm Post subject: |
|
|
| Well after pulling my hair. It turned out to be incorrect screen boundaries. Wow. |
|
| Back to top |
|
|
zeldaking
Power User

Joined: 31 Jul 2011 Posts: 470 Location: Utah
|
Posted: 18 May 2013 05:21:24 pm Post subject: |
|
|
Well I'll just leave this in this thread. These are my results of my slow limited programming time. The layout for a Solitaire game after finishing a really slow version in Prizm-basic. Here is a picture:
edit: image is large, click link if you want to see it..
http://i41.tinypic.com/10cui2o.jpg
I was designing a playing card back and I came up with this:
[/url] |
|
| Back to top |
|
|
|
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.
» Go to Registration page
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
© Copyright 2000-2013 Cemetech & Kerm Martian :: Page Execution Time: 0.026024 seconds.
|