| Should I have properties pop up? So the board would disappear, and the property displays |
| Yes |
|
80% |
[ 4 ] |
| No |
|
0% |
[ 0 ] |
| Other. Explain in the thread |
|
20% |
[ 1 ] |
|
| Total Votes : 5 |
|
| Author |
Message |
|
Aes_Sedia5

Minor Calculator Deity

Joined: 01 Sep 2011 Posts: 1002 Location: Where Nightmares end and Dreams begin
|
Posted: 12 Dec 2011 04:35:45 pm Post subject: |
|
|
I am trying to do that, I just need the If and Ans memnonics to help with that first. Catherine said she would post here when she learned something. I tried looking them up, but I must be using google wrong, because I found nothing. _________________

 |
|
| Back to top |
|
|
Ashbad

... I think redheaded girls are kind of cool

Joined: 01 Dec 2010 Posts: 2418 Location: Stomp Stomp Stomp, The Idiot Convention
|
Posted: 12 Dec 2011 04:46:37 pm Post subject: |
|
|
OP, meet Opcode list, Opcode list, meet OP: http://www.z80.info/z80oplist.txt
for if statements, you generally just use cp (compare) statements followed by a jump. For example, this code in TI-BASIC:
Code: 0->A
...
If A:Then
A+1->A
End
In z80 Assembly, a similar chunk of code, would be:
Code: xor a // a == 0
...
cp 0
jr z, NotTrue // if register A is zero, jump to the NotTrue Label
// like how jumping past the if block to the End would
// be like
inc a;
NotTrue: // end label
Using opcodes (strongly recommended against), it would be:
Code: AF...28013C
_________________ -Ashbad |
|
| Back to top |
|
|
Aes_Sedia5

Minor Calculator Deity

Joined: 01 Sep 2011 Posts: 1002 Location: Where Nightmares end and Dreams begin
|
Posted: 12 Dec 2011 04:49:16 pm Post subject: |
|
|
So I will try that. I will probably make it with opcodes just for now until I learn how to use z80 ASM to do all that fun stuff I need. Thanks for the help ashbad. If I find some time tonight I will get a draft going. Which reminds me. I need to download the DCS SDK for fedora. _________________

 |
|
| Back to top |
|
|
Ashbad

... I think redheaded girls are kind of cool

Joined: 01 Dec 2010 Posts: 2418 Location: Stomp Stomp Stomp, The Idiot Convention
|
Posted: 12 Dec 2011 04:51:30 pm Post subject: |
|
|
| Aes_Sedia5 wrote: | | So I will try that. I will probably make it with opcodes just for now until I learn how to use z80 ASM to do all that fun stuff I need. |
Opcodes *ARE* z80 assembly, and I was only giving you a list of them to daunt you out of it, same with the example. Don't use it, as you can see, it's very cryptic working with unnamed hEx equates for the instructions. Trust me, use the DSC SDK's asm tools, and you'll be 10000% happier. _________________ -Ashbad |
|
| Back to top |
|
|
Aes_Sedia5

Minor Calculator Deity

Joined: 01 Sep 2011 Posts: 1002 Location: Where Nightmares end and Dreams begin
|
Posted: 12 Dec 2011 04:52:46 pm Post subject: |
|
|
Ok. I did not know the DCS SDK had those things in there. and I have the list of opcodes, it was not very daunting. haha. Thanks though. _________________

 |
|
| Back to top |
|
|
souvik1997

Guru-in-Training

Joined: 19 Apr 2010 Posts: 2870
|
|
| Back to top |
|
|
Aes_Sedia5

Minor Calculator Deity

Joined: 01 Sep 2011 Posts: 1002 Location: Where Nightmares end and Dreams begin
|
Posted: 12 Dec 2011 04:55:47 pm Post subject: |
|
|
Thanks souvik. That will help a lot. _________________

 |
|
| Back to top |
|
|
Aes_Sedia5

Minor Calculator Deity

Joined: 01 Sep 2011 Posts: 1002 Location: Where Nightmares end and Dreams begin
|
Posted: 14 Dec 2011 05:14:14 pm Post subject: |
|
|
Hey. Screen shot time! I have my title screen working.
Now. Should I have those dollar signs move like they are now, or randomly. If it is random, it move one space in either direction from where it is to start with. So it moves sorta in a line instead of all over the place. Not sure how I could do that though. _________________

 |
|
| Back to top |
|
|
Aes_Sedia5

Minor Calculator Deity

Joined: 01 Sep 2011 Posts: 1002 Location: Where Nightmares end and Dreams begin
|
Posted: 16 Dec 2011 02:30:30 pm Post subject: |
|
|
As for the above. Weregoose gave me the idea to make the dollar sign a pong like animation, So I will try that, and have it Bounce off of the text in the middle and at the top. I will work on that next. I tried my hand at sprite drawing and I stink. Could someone here help me with sprites? I dont know if I should use the original monopoly pieces or if I should use new sprites. I personally dont really care on way or the other, I will leave that choice up to whoever decides to help.
I was thinking 5x5 pixels for the sprites. I am planning on having the entire board on the screen, so That may be a bit big or small I am not really sure. but 5X5 should work. _________________

 |
|
| Back to top |
|
|
Sorunome

Expert

Joined: 22 Feb 2011 Posts: 636 Location: Somewhere out there
|
Posted: 16 Dec 2011 03:50:50 pm Post subject: |
|
|
Title screen is looking cool!  _________________



 |
|
| Back to top |
|
|
krazylegodrummer56

Power User

Joined: 20 Nov 2011 Posts: 404
|
Posted: 16 Dec 2011 07:46:23 pm Post subject: |
|
|
I love the title screen to _________________ Projects: Learn how to program in Prizm C
First C program!
Tic-Tac-Toe: Get it HERE!
 |
|
| Back to top |
|
|
Aes_Sedia5

Minor Calculator Deity

Joined: 01 Sep 2011 Posts: 1002 Location: Where Nightmares end and Dreams begin
|
Posted: 16 Dec 2011 11:06:00 pm Post subject: |
|
|
Thanks a bunch, You have no idea how encouraging that is. I hope to finish it in a month or two. Right now I am looking for help with the sprites, and I am drawing out the board. In between remaking my derivative program and Drawing the monopoly board I am making the card program. _________________

 |
|
| Back to top |
|
|
Nick

Newbie

Joined: 30 Nov 2011 Posts: 25 Location: Belgium
|
Posted: 17 Dec 2011 05:27:39 am Post subject: |
|
|
this looks good, seems quite a tricky task to make it, thumbs up
for what sprites do you need help? i really wanna help if you need it.. |
|
| Back to top |
|
|
Aes_Sedia5

Minor Calculator Deity

Joined: 01 Sep 2011 Posts: 1002 Location: Where Nightmares end and Dreams begin
|
Posted: 17 Dec 2011 12:07:43 pm Post subject: |
|
|
well the only sprites I need help with are the monopoly pieces, that move around the board representing players. (for now) I may need help with some aspects of the board later. So it is mostly up to you, if you want to keep the original pieces (A.K.A Money bag, top hat, dog, car etc.) of if you want to make something a little more themed like calculators. Totally up to you.
Also today if I find time I plan on remaking the title screen for the Dollar signs to have a pong effect. _________________

 |
|
| Back to top |
|
|
Aes_Sedia5

Minor Calculator Deity

Joined: 01 Sep 2011 Posts: 1002 Location: Where Nightmares end and Dreams begin
|
|
| Back to top |
|
|
comicIDIOT

Guru

Joined: 01 May 2006 Posts: 5108 Location: SFBA, California
|
Posted: 18 Dec 2011 01:33:31 am Post subject: |
|
|
Pong wasn't "everywhere." It went a certain trajectory based on where it hit the paddle. You're best bet would be to get a random integer from 0 to 80 and somehow use that integer to get the deflection angle for the text off the paddle. I'm not familiar with how it's done but you'll likely have to do some work in RAD equations or something. _________________
-Alex |
|
| Back to top |
|
|
Aes_Sedia5

Minor Calculator Deity

Joined: 01 Sep 2011 Posts: 1002 Location: Where Nightmares end and Dreams begin
|
Posted: 18 Dec 2011 09:46:26 am Post subject: |
|
|
Sorry. I need to stop making posts when I am tired. I was wanting that, but, I also thought of another way for it to work. I could always have it start one place above or below like I am now, then just have it go diagonal each time. Not quite pong but its close.
Note: gah. I need to comment my code better. _________________

 |
|
| Back to top |
|
|
Nick

Newbie

Joined: 30 Nov 2011 Posts: 25 Location: Belgium
|
Posted: 20 Dec 2011 01:50:42 am Post subject: |
|
|
how big must the sprites be, and BW, greyscale..?
and what viewing angle (above, aside..)?
here's a preview of a fast scetch

Last edited by Nick on 20 Dec 2011 02:28:33 am; edited 2 times in total |
|
| Back to top |
|
|
Aes_Sedia5

Minor Calculator Deity

Joined: 01 Sep 2011 Posts: 1002 Location: Where Nightmares end and Dreams begin
|
Posted: 20 Dec 2011 01:56:13 am Post subject: |
|
|
I was thinking an above view, Just black is fine as this is Ti Basic. and I was thinking 5x5 pixels. What do you meant by BW? _________________

 |
|
| Back to top |
|
|
Nick

Newbie

Joined: 30 Nov 2011 Posts: 25 Location: Belgium
|
Posted: 20 Dec 2011 02:28:11 am Post subject: |
|
|
black and white
euh, 5x5 is very small, that will be hard to show what it is xs but i'll try it |
|
| Back to top |
|
|
|