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.


Topics - meishe91

Pages: [1] 2 3 ... 5
1
TI-BASIC / Snake Game
« on: March 19, 2015, 06:53:26 pm »
Well...it has been quite a while since I posted here. Hey everyone.

Anyways, point of this. A few years ago I wrote a snake game. That snake game was probably one of the smallest snake games (if not the smallest), at least at the time. 361 bytes (or whatever the unit is...I don't remember).

I was planning on not only releasing the game to you guys, but was also going to write a complete tutorial on basic game writing because I had kept each stage of the game. It would have just been about one way of going about a game. Places to start, how to think about it, maybe some optimization. I don't remember all the details.

Unfortunately, I have not come bearing this tutorial. I do come though with the game...in text form. I've been planning on just posting it for a while now so you guys could play with it, but haven't had the time/motivation. So I figured why not today.

Code: [Select]
ClrHome
{8.4,7.4→L1
DelVar DDelVarS2→C
DelVar Y1→X //DelVar Y then 1→X
Repeat min(L1≠F
randInt(1,16)+.1randInt(1,8→F
End
Output(10fPart(F),iPart(F),"+
Repeat L>1
getKey→K
Output(10fPart(L1(1)),iPart(L1(1)),"*
If Y
Then
(K=26)-(K=24→X
If Ans
DelVar Y
Else
.1((K=34)-(K=25→Y
If Ans
DelVar X
End
Output(10fPart(L1(C)),iPart(L1(C)),"_ //_ = Space
X+L1(1
Ans-16((Ans>=17)-(Ans<1
Y+Ans
Ans-.8((fPart(Ans)=.9-not(fPart(Ans
augment({Ans},L1→L1
If F=L1(1
Then
S+1→S
Repeat min(L1≠F
randInt(1,16)+.1randInt(1,8→F
End
Output(10fPart(Ans),iPart(Ans),"+
C+1→C
End
C→dim(L1
sum(L1=L1(1→L
End
ClrHome
Output(1,1,"SCORE:_
Output(1,8,S

I'll be honest, I don't remember how exactly everything works. But I do know that it basically just refreshes the start of the snake, deletes the last, and ya. Hopefully some of you guys can answer the questions about what things are doing what :P

I remember I had Kerm look this over after I wrote it and I don't think he saw any other spots to make it smaller or faster. I'm curious if you guys see anything.
I also apologize for if there is a typo somewhere in there. I don't think there is one, but could be.
Enjoy.

SIDE NOTE:
If I ever am able to get the actual file off my calculator I'll try to attach that.

2
TI-BASIC / Weregoose's Binary Conversion
« on: September 04, 2013, 01:35:19 am »
So...this is awkward as it has been so long since I've posted anything, let alone started a topic. But, does anyone happen to have Weregoose's binary conversion algorithm? The really small one that outputs into a list. I could probably go track it down, but I feel like it is somewhere in the nether-regions of this website by now...

Thanks O0

3
General Calculator Help / Random Space Filling
« on: October 19, 2011, 08:51:08 pm »
Does anyone have a good algorithm for filling in a box randomly with pixels until it is completely filled? I couldn't think of a good way of doing this. The only way I can think of doing it is by randomly generating an X- and Y-coordinate, checking if it's on, and if it isn't then turn it on. The only issue with this is that the bigger the box gets and the more pixels you fill the longer it can take to find a pixel that is turned off. The point of it is to seem random but it doesn't have to be necessarily. Any help would be greatly appreciated :)

Note:
I tried searching on Google but couldn't think of good keywords to find something like this. All I kept coming up with is space filling algorithms for like filling shapes into.

Edit:
The purpose for this is to materialize a title from nothing into the final results fast but supposedly random.

4
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.

5
TI-BASIC / Pseudo-Recursive Binary Converter
« on: September 10, 2011, 03:58:09 pm »
Last semester I took a logic and program design class and had to make a recursive program that turned a decimal number into it's binary equivalent using recursion. This gave me the idea a couple days ago to come up with one in TI-BASIC (don't ask me why, just seemed fun). However, true recursion (or at least the way I was doing it in C++) isn't really possible in TI-BASIC so I had to come up with a way of simulating it, which is what I did. This has no real use or anything, I just thought it was a neat little thing that someone might want to see. Also, in no way is it probably optimized as much as it could be.

Code: (prgmC) [Select]
C→dim(L1
2fPart(A/2→L1(C
iPart(A/2→A
If A>0
Then
C+1→C
prgmC
End
If C>0
Disp L1(C
C-1→C
Output(1,1,"

To use this you need to set C to one and A to the decimal number you want to convert before you run the program.



Edit:
Here is the code I'm basically trying to simulate.

Note: I know it may not be the best written but I'm still new to C++ and it works so I'm happy.

Code: [Select]
#include <iostream>
using namespace std;
void convert(int num)
{
if(num>0)
{
convert(num/2);
}
else {;}
cout<<num%2;
return;
}
int main()
{
int num;
cout<<"Enter a number: ";
cin>>num;
convert(num);
cout<<endl;
system("pause");
return 0;
}

6
Other Calculators / No more DONE message?
« on: September 09, 2011, 02:36:41 pm »
Hello peoples of Omni,
I know I haven't really been here a whole lot lately and I do apologize for that. However that is not what this post is about (I might make one later to share what has been going on.). The reason for this post however is because I recently got a new TI-84+SE. I have since gotten rid of that horrid 2.55MP OS and put 2.43 back on but while I was messing around with making a pseudo-recursive binary converter I noticed that the "DONE" was still missing from the end of my program execution. Is this because of the new 1.03 Boot Code or is something else going on? I tried finding the answer but couldn't find anything about it, so sorry if someone has already made a post about this. It was just messing with the output so that's why I'm asking. Thanks for anything :)

7
TI-BASIC / Sprite to Hex Routines
« on: March 26, 2011, 06:13:16 pm »
So SirCmpwn's new topic about his 60 byte converter got me thinking about trying to beat it in Pure TI-BASIC...however I don't think it's possible. So, I just decided to try to make the smallest one I could possible and thought I'd share what I came up with. However, that's not the point of this thread. This thread is for people to post their own Pure TI-BASIC routines to convert a image on the graph screen into hex data. Just thought it'd be interesting to see what other people come up with.

Spoiler For People's Codes:
Mine:
Code: (Slower; 92 bytes) [Select]
"_
For(A,0,7
For(B,0,1
Ans+sub("0123456789ABCDEF",sum(seq(2^(3-C)pxl-Test(A,4B+C),C,0,3))+1,1
End
End
sub(Ans,2,16

Code: (Faster; 103 bytes) [Select]
"_
For(A,0,7
For(B,0,1
Ans+sub("0123456789ABCDEF",8pxl-Test(A,4B)+4pxl-Test(A,4B+1)+2pxl-Test(A,4B+2)+pxl-Test(A,4B+3)+1,1
End
End
sub(Ans,2,16

Code: (Just displays; Based off of Nemo's; 85 bytes) [Select]
For(A,0,15
Output(1,A+1,sub("0123456789ABCDEF",sum(seq(2^(3-B)pxl-Test(iPart(A/2),B+8fPart(A/2)),B,0,3))+1,1
End

Code: (Same as above but uses Text() to shave off an extra byte) [Select]
For(A,0,15
Text(8,4A,sub("0123456789ABCDEF",sum(seq(2^(3-B)pxl-Test(iPart(A/2),B+8fPart(A/2)),B,0,3))+1,1
End

Code: (Just displays; Based off of Phenomist's optimization; 84 bytes) [Select]
For(A,0,7
For(B,0,1
Output(1,2A+B+1,sub("084C2A6E195D3B7F",sum(seq(2^Cpxl-Test(A,4B+C),C,0,3))+1,1
End
End

Code: (Same as above but uses Text() to shave off an extra byte) [Select]
For(A,0,7
For(B,0,1
Text(8,8A+4B,sub("084C2A6E195D3B7F",sum(seq(2^Cpxl-Test(A,4B+C),C,0,3))+1,1
End
End

Nemo's:
Code: (92 bytes) [Select]
"_
For(A,0,15
Ans+sub("0123456789ABCDEF",sum(seq(2^(3-B)pxl-Test(iPart(A/2),B+8fPart(A/2)),B,0,3))+1,1
End
sub(Ans,2,16

Phenomist's:
Code: (Optimized from my slower one; 88 bytes) [Select]
"_
For(A,0,7
For(B,0,1
Ans+sub("084C2A6E195D3B7F",sum(seq(2^Cpxl-Test(A,4B+C),C,0,3))+1,1
End
End
sub(Ans,2,16

See what you can come up with and I'll add them to the list :)

Mine so far is the smallest at 84 bytes, 83 byte if done on graph screen, but it only displays it. For storing it Phenomist now holds the record at 88 bytes. Can anyone beat them? ;)

P.S. Sorry for using [code][/code] tags inside the [spoiler][/spoiler] tags but just want to see what people come up with without being influenced by other people's code.

8
Site Feedback and Questions / MOVED: Experimental Updates
« on: March 02, 2011, 09:27:15 pm »
This topic has been moved to Randomness.

http://ourl.ca/9454

9
Miscellaneous / Meishe's Catch Up Day and Status
« on: January 23, 2011, 10:11:29 pm »
Intro

Well today I’m going to attempt to play “catch up” and go through, and reply to, as many topics as realistically and mentally possible. I, however, am not replying into each thread individually as you can see and will instead just do it all in one thread. Don’t ask why, it will just be easier for me :P

News:

Congratulations on the release, and feature, Z! Glad you finally were able to get this finished and released. However, I must admit I have not been able to try it yet (with the computer and time issues and such :() But, I will definitely try this soon! It looks great though and it seems that everyone has really enjoyed it. Great job, again.

Awesome! I will have to check them out. I have skimmed them very briefly before but never read them yet so I will do that soon. But since I haven’t gotten to anything about Correlation yet I’ll just say I can’t wait for it and beta testing and all :D Hope it’s all going well.

Not much to really say but congrats to Quigibo on winning with Axe Parser and congrats to Kerm for coming in second with DCS7. Both are great applications. Also, great job to the other people who were entered and did great in the results and everything.

Well I didn’t read too much of the full topic but just wanted to say congrats on getting the beta out. I know it’s been in development for a while. Hope future progress goes well on this and is smooth. I don’t know how much I will be using this really but it looks great so far.

Have said it in the main thread but just wanted to say good luck to everyone in the competition. Should be interesting to see all of the entries.

Wow, that looks really cool. I’m sure I’ll stumble upon the actual thread later but looks really cool. I saw it in the download section a while ago but didn’t look too much into it but thought it looked neat. Nice job, good luck on other games if you go for trying to make them.

Our Projects:

So I haven’t read the whole topic from the last time I read it but wow, it has come a long way since I last saw it. Great job on this, Squidgetx. Can’t wait for a release of this and all. Looking so great.

Much like with Ash:Phoenix I haven’t read all the topics but it looks great from last I saw of it. Has come quite a ways and great job with it. Good luck with future progress on this, Yunhua98.

Wow, this is looking so great. I can’t wait to try this out and mess around with it! Hope progress on it is going well and continues to go well.

Glad to hear that progress is still being made on this. Hope things go smoothly.

Well this one is a new one to me. It looks great though! The story is also very nice, I think. Good luck on any future progress with this. It looks like it will be turning out great :D

Other Calc-Related Projects And Ideas

This looks really cool. Wasn’t this originally an iTouch app or something similar like that? I know I’ve seen a couple other versions of this floating around Omni before but yours looks really sweet. Great job on it.

That is looking really cool. I haven’t tried it out but I will if I have the time. It looks really fun and interesting. Good luck on it (if there is any more progress that needs done on it) and great job so far.

Wow, that looks like a really cool game. I don’t really know the status of it right now but it looks great. I’ve been kind of hoping that someone would come up with some sort of isometric type game with it (I think the idea was thrown around a few times but nobody really did it). Anywho, again it looks great and hope future progress goes well with it.

Looks really great, Deep Thought! I especially like the scrolling background faces. That’s really nice. I personally like the gray-on-white background look better because you can see the score better and I just like how it looks. But either one is fine. Great job, again, on it.

This looks like a really cool and very fun game! I’ve always liked those types of game. Great job on it. I’ll have to try it out sometimes. Good luck on any future updates!

This seems like a really awesome project! I can’t wait to see how you work out the third and fourth dimension! Good luck on it. It looks great so far.

I’m am very sorry to hear that this has now died :( But that’s cool about you releasing the physics engine. It looked really impressive from what I remember of it and all.

This looks like a very cool game. I remember seeing Raylin’s version of this as a TI-BASIC game a while ago and always loved the idea of it. Great job with it and can’t wait for more progress on it.

Looks really sweet! I saw this in the download section a while ago and wanted to give it a try but didn’t have time. I’ll definitely have to when I get some more time. Great job on it! Like I said with cUbEs, I really have always liked the sliding game type.

This looks really impressive. I don’t think I’ve seen a RPG without magic in a long time. Very cool though, hope this goes well. Can’t wait to see how this all turns out. Good luck on it.

Wow, it is looking so great. I haven’t checked on it in a long time but it looks really nice. Great job on it!

This looks really cool. Great job on it. I hope the development is going well. I really like the sprite you use for the explosions.

As I said before this looks really cool. I have absolutely no idea how to play the game but it looks really interesting.

Conclusion

So ya, I think that’s really all I have to say for now. I know I missed a lot of topics and didn’t reply to a lot but hey, I’m only human :P

As for my activity around here…unfortunately I have absolutely no idea what it will be like. I’ll always be keeping an eye on things though, whether I’m posting or not (I mean I’m not in the top people online most for nothing ;)). I do hope to get a contest entry in for The Storm contest that’s going on right now, but there still aren’t any guarantees since I do have school going on right now along with some personal stuff going on in life too. I also hope to get another game or two out as well soon, though I need to kind of start them over again or something because either I forgot what I was doing or just need to restart.

Anywho, just wanted to make a post like this for the fun of it and because it was easier for me. I, at some point, may go and put these replies in their respective topics but for right now I’ll just keep them here.

10
Art / Cage Match Userbar Template
« on: December 14, 2010, 05:11:33 am »
Ok, so I'm making a template that will be the universal userbar for winners of the Cage Matches. I do not know if I will be posting it (mainly since it's .psd and barely anyone will be able to do anything with it) though. Anywho, the basic layout I will have is in text the Omnimaga logo, what ever you guys decide want included, and then have a screenshot (a 96*64 one, not the double sized) of the winning game. What I'm asking you all is what you want included in the text.

Option One Example:
Omnimaga
Cage Match #29
Winner: Meishe91 (with or without "Winner:")
Pure BASIC
Graphscreen Tunnel

Option Two Example:
Omnimaga
Cage Match #29
Pure BASIC
Graphscreen Tunnel

Option Three Example:
Omnimaga #29
Winner: Meishe91 (with or without "Winner:")
Pure BASIC
Graphscreen Tunnel

Option Four Example:
Omnimaga #29
Pure BASIC
Graphscreen Tunnel

Option Five Example:
Omnimaga
Cage Match #29
Pure BASIC
Graghscreen Tunnel

Option Six Example:
Omnimaga
Cage Match #29
Pure BASIC

Option Seven Example:
Omnimaga
Cage Match #29
Winner: Meishe91 (with or without "Winner:")
Pure BASIC

Option Eight Example:
Omnimaga #29
Winner: Meishe91 (with or without "Winner:")
Pure BASIC

Option Nine Example:
Omnimaga
Cage Match Winner
Graphscreen Tunnel
(background screenshot)

So there are many more examples but this is all I could think of right now. If you have another option feel free to give it and I'll add it. This is for you guys so please let me know. I need as many people to vote as possible so please let the other members who don't see this know they should answer.

Just so you know too all the text will be in calculator font, which will be a pain in the ass to do but I think it will honestly look the best and be the most appropriate.

But ya, thanks for anyone who votes :)

Edit/Note:
Remember, the more text included means the bigger the userbar.

11
TI-BASIC / For( Loop Slowdown Update
« on: November 11, 2010, 12:50:19 am »
Most of us know about the For( slow down issues. If you don't, I'll explain it really fast.

Basically if you have a piece of code that does something like this:

Code: [Select]
For(A,1,9
If fPart(A/2
\Do something.\
End

When ever that conditional is false it will cause a slow down for the loop, which is annoying. However there are three ways to fix this. First, you can simply put a parenthesis at the end of the For( loop line (so it'd become For(A,1,9)), second, there is a OS fix by BrandonW that apparently fixes it and, three, you can make the If statement an If:Then statement.

Now to the point of this thread. I know I have been curious about this question for quite a while, as I'm sure a few other people. The question is basically: What about if you have nested For( loops? Do you have to close both of them?

Well to be honest we still don't have a definitive answer to this but the current thinking, by a lot of people is that you only have to close the nested one. So for example:

Code: (Took 44 seconds.) [Select]
For(A,0,94
For(B,0,62
If not(AB
Pxl-On(B,A
End
End

could become:

Code: (Took 37 seconds.) [Select]
For(A,0,94
For(B,0,62)
If not(AB
Pxl-On(B,A
End
End

I just did a quick test with just this example and it seems to have checked out however this hasn't been concretely proven yet. Just thought I'd let everyone know :)

Courtesy of DJ:
Quote
In some rare cases, not closing the parhentesis of a for( loop under such circumnstances can cause the calc to slow down by about 1.5 until the ON key is pressed or the program is exited.

12
Miscellaneous / Dragon Cave Image Thread
« on: November 07, 2010, 05:49:26 pm »
So I just became aware of the image hosting problem that Dragon Cave is having. So since the solution to this is to basically upload the images to {AP}'s Removed From Game server, or something like that, I decided to make a thread of all the images we can of eggs, hatchlings, and dragons to help keep from uploading the same images over and over again on the same servers. Feel free to contribute the images you have and links, as they will save space :) Plus it might just be a little more hassle free when you get an egg so you don't have to upload it each time.

Eggs:

Un/Common:



Rare/Special:

Legendary Trio:



Metallics:



Non-Dragon:



Other Types:



Holiday Specials:



Hatchlings:

Un/Common:



Rare/Special:

Legendary Trio:



Metallics:



Alts:



Non-Dragon:



Other Types:



Holiday Specials:



Mature-Hatchlings:

Un/Common:



Rare/Special:

Legendary Trio:



Metallics:



Alts:



Non-Dragon:



Other Types:



Holiday Specials:



Adult:

Un/Common:



Rare/Special:

Legendary Trio:



Metallics:



Alts:



Non-Dragon:



Other Types:



Holiday Specials:



When posting URLs and images and such please specify between hatchlings and eggs just in case there are dragons that look like hatchlings.

Note:
This is not a thread to boost your click or view can't. Period. Only upload either images, provide the link to the egg, or the egg image itself. If there are any links to profiles/eggs/etc. I ask all CoT and Admins to remove said links. Like I said, this is just to help us keep this game going and keep from uploading duplicate pictures to the same servers over and over again. Thank you.

13
Miscellaneous / My Activity
« on: October 28, 2010, 05:10:53 am »
Ok, so I figured it was time that I just kinda finally got around to telling everyone what's up lately. As many of you may have noticed I haven't been to active lately. Well that's kinda true and kinda not, I'm here just not really posting and not checking stuff very much (which means there's a lot I've missed, I'm sure).

Well, for the past couple weeks have been really rather hectic. I have been the Tech Director for my former high school to be in charge of building the set for the fall musical (for those of you who care, it was Anything Goes (music written by Cole Porter) and it all went quite well with performances). Well that was causing a lot, and I mean A LOT, of stress on me and that's why some of my posts may have seemed a bit rash or rude or something (such as the one about defending RuneScape and such). (Again, I deeply apologize for that and all.) The reason for the stress was mainly due to the fact that we were falling way behind and a lot needed to be done, and I ended up spending a lot more time doing things than I should have. But, things got finished, sort of, and the shows went great (ya, there are the things that went wrong *cough*sugar glider in the theater*cough* :P) and we got the set taken down and all Saturday night after the show.

So now, yes the musical is all over and such but I'm afraid that my activity here will still remain a little static since I have a lot of stuff to sort out and get taken care of. I will still be here however checking stuff and such. If I get in a Cage Match, depending what the challenge is and all, I still will hopefully take it and ya. I just wanted you all to know kinda what's been going on and why I haven't been here much lately and just to let you know that though I may not reply much I'll still be here and all. I just don't know when I'll be getting more time and such (probably just when I decide to stop being lazy and actually get shit done :P). But yup, I think that's about all. Thanks.

14
TI-BASIC / Any Reason This Shouldn't Work?
« on: October 06, 2010, 04:59:28 am »
Ok, so I started working on my own version of a calendar generator, just for the fun of it. But when I get to my display routine something happens and I can't figure out why it's happening :( It really is not making any sense to me and I can't explain this.

The code section is this:

Code: [Select]
Text(H,12F-9,E
H=14
F=4
E=1


It just doesn't make sense to me because Text(H,39,E and other things without a variable in the second argument work fine. Anyone know?

15
Miscellaneous / {AP}'s Return?
« on: October 04, 2010, 01:37:18 am »
I have no idea and I don't want to get people's hopes up but as some of us know {AP} hasn't really been here for a while due to some stuff he posted in another topic somewhere else, I'm to lazy to find it right now :P However, I thought he'd be gone for a while but then I got onto DeviantArt tonight and noticed he had a new picture up that he posted about an hour ago. No idea if this means he is going to be back soon or anything, just thought I'd let ya know. Maybe if he pops in he can clarify :)

Feel free to move this to Randomness if you want to, wasn't sure which to put it in.

Pages: [1] 2 3 ... 5