Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - meishe91

Pages: 1 2 3 [4] 5 6 ... 207
46
Here's a screenshot that shows the grey more solid.


47
TI Z80 / Re: Midnight
« on: September 27, 2011, 10:59:16 pm »
Oh...my bad :P I thought Elmgon just used normal Dual-Layers. I thought Serenity was the only thing that used shifted ones.

But glad to hear about the progress :)

48
Miscellaneous / Re: Tutoring others
« on: September 27, 2011, 07:53:58 pm »
Ya, I agree with the others. Also, try to think of alternative ways of explaining things in case one way doesn't work. That could mean by using visual helpers or just different wording. You could find those kind of things through Google if you can't think of any.

49
TI Z80 / Re: Midnight
« on: September 27, 2011, 06:46:18 pm »
Oh right...I had forgotten how Dual-Layers are set. My bad :P

shifted duel layer? O.O

I think that will always be basically your thing ;)

50
Art / Re: Amorphous Blob
« on: September 27, 2011, 01:57:47 am »
I think it's frame two and three that jerk weirdly, but it is only black and white.

51
TI Z80 / Re: Midnight
« on: September 26, 2011, 11:41:12 pm »
How are you doing maps? That doesn't look like normal Dual-Layer mapping...unless I'm just out of it :P

52
ASM / Re: The worst TI code I've ever seen
« on: September 18, 2011, 01:43:53 am »
Oh how I wish I knew Assembly...

53
Computer Projects and Ideas / Re: Fun Little C++ Pointless Program
« on: September 17, 2011, 10:41:09 am »
I know that system() is relatively Windows specific but for the purposes of my class that is what we are supposed to use for the most part to get the program from just starting, running, and finishing.

Edit:
Code: [Select]
#include <iostream>
#include <iomanip>
#include <conio.h>
using namespace std;
void move(int direction,int &x,int &y)
{
if(direction=='w')
{
y-=(y!=1);
}
else if(direction=='s')
{
y+=(y!=11);
}
else if(direction=='a')
{
x-=(x!=1);
}
else if(direction=='d')
{
x+=(x!=11);
}
else {;}
return;
}
void display(int x,int y)
{
cout<<"*************\n";
for(int i=0;i<11;i++)
{
if(i+1==y)
{
cout<<"*"<<setw(x)<<"X"<<setw(13-x)<<"*\n";
}
else
{
cout<<"*           *\n";
}
}
cout<<"*************\n";
}

int main()
{
int x=6;
int y=6;
int direction=27;
do
{
move(direction,x,y);
display(x,y);
direction=getch();
system("cls");
}while(direction!='q');
system("pause");
return 0;
}

54
Computer Projects and Ideas / Re: Fun Little C++ Pointless Program
« on: September 16, 2011, 11:57:20 pm »
The original code was using W, A, S, and D but you had to press Enter each time. Then Netham showed me that thread and that's how I learned to do it, there wasn't anything about recognizing them by letter. If you have something to offer please do.

55
Computer Projects and Ideas / Re: Fun Little C++ Pointless Program
« on: September 16, 2011, 07:54:12 pm »
WOO! That was the key right there! Thanks, Netham!

New modified code to work how I originally intended it to:

Code: [Select]
#include <iostream>
#include <iomanip>
#include <conio.h>
using namespace std;
void move(int direction,int &x,int &y)
{
if(direction==119)
{
y-=(y!=1);
}
else if(direction==115)
{
y+=(y!=11);
}
else if(direction==97)
{
x-=(x!=1);
}
else if(direction==100)
{
x+=(x!=11);
}
else {;}
return;
}
void display(int x,int y)
{
cout<<"*************\n";
for(int i=0;i<11;i++)
{
if(i+1==y)
{
cout<<"*"<<setw(x)<<"X"<<setw(13-x)<<"*\n";
}
else
{
cout<<"*           *\n";
}
}
cout<<"*************\n";
}

int main()
{
int x=6;
int y=6;
int direction=27;
do
{
move(direction,x,y);
display(x,y);
direction=getch();
system("cls");
}while(direction!=113);
system("pause");
return 0;
}

Note:
Normal WASD keys to move. Q to quit.

56
Computer Projects and Ideas / Re: Fun Little C++ Pointless Program
« on: September 16, 2011, 07:12:19 pm »
Oh wow...duh. I feel like an idiot now. I'll let ya know.

I can't get it to work. It keeps saying there is an undeclared identifier and that it is expecting an assignment operator instead of does-not-equal. So I'm not sure if I'm just missing something or if something is going on.

Probably because Netham's example is missing a bracket right after the 'while' declaration line.

Well yes, but no that is not why 'cause I fixed that.

Edit:
Arrow buttons don't return anything.
Also, I don't know why I didn't understand what you guys were trying. I, for whatever reason, thought foo was some command or function or something :P

@calc84maniac
Ya, in console you do have to press the Enter button. At least using cin you do. I don't know if there is another way or not.

57
Computer Projects and Ideas / Re: Fun Little C++ Pointless Program
« on: September 16, 2011, 07:07:32 pm »
I can't get it to work. It keeps saying there is an undeclared identifier and that it is expecting an assignment operator instead of does-not-equal. So I'm not sure if I'm just missing something or if something is going on.

58
Computer Projects and Ideas / Re: Fun Little C++ Pointless Program
« on: September 16, 2011, 06:48:09 pm »
\o/ looks fun :)

Perhaps for keypresses, if you want to stay with standard non-DOS functions, perhaps just query cin repeatedly? :P  Or use something like SDL.  That would probably overkill, though.

Ya...I don't really know what you mean :P I'm still pretty much a C++ noob.

Try doing something like
Code: [Select]
while (char foo != 'q')
{
    cin >> foo;
    cout << (int)foo;
}
With any luck, pressing the arrow keys will return key codes. But, you know, that would probably be too easy.

Ya...double for this post :P Sorry, could you explain what that does?

59
Computer Projects and Ideas / Fun Little C++ Pointless Program
« on: September 16, 2011, 06:41:22 pm »
I'm a teacher's aide and today the class was taking a quiz so I was pretty bored. So I decided to make a little walking man program using the console window...considering I can't do much else that's what I was limited to haha. Anywho, here is the code.

Code: [Select]
#include <iostream>
#include <iomanip>
using namespace std;

void move(char direction,int &x,int &y)
{
if(direction=='w')
{
y-=(y!=1);
}
else if(direction=='s')
{
y+=(y!=11);
}
else if(direction=='a')
{
x-=(x!=1);
}
else if(direction=='d')
{
x+=(x!=11);
}
else {;}
return;
}
void display(int x,int y)
{
cout<<"*************\n";
for(int i=0;i<11;i++)
{
if(i+1==y)
{
cout<<"*"<<setw(x)<<"X"<<setw(13-x)<<"*\n";
}
else
{
cout<<"*           *\n";
}
}
cout<<"*************\n";
}

int main()
{
int x=6;
int y=6;
char direction='z';
while(direction!='q')
{
move(direction,x,y);
display(x,y);
cin>>direction;
system("cls");
}
system("pause");
return 0;
}

There really is no purpose to this code at all. Just a little fun. Probably not even the best written code either. If you guys want to make suggestions I am all for them.

Note:
I know of no way of detecting key presses in C++ so that is why you need to input a W, A, S, or D to move him. Also, if you put him in the top-left corner and paste in "ddddddddddssssssssssaaaaaaaaaawwwwwwwwwwsssssddddd" it will do a little box and then go to the middle. Ya...

Anywho, enjoy this random program.

60
TI Z80 / Re: Homescreen Game Pack
« on: September 13, 2011, 04:27:51 pm »
Jump can't be displayed with the calculator held normally because you would lose a whole lot of speed in the process. It uses the fast nature of the Disp command and you'd have either do some really tricky coding or switch to using Output().

As for your Space Invaders game, I'm sure using a matrix is fine but remember they take up a lot of room in memory the bigger they get.

Pages: 1 2 3 [4] 5 6 ... 207