Computer Science Canada Texted-Based Game (Turing) by Jack140 |
Author: | Jack140 [ Fri Nov 14, 2008 7:40 am ] | ||
Post subject: | Texted-Based Game (Turing) by Jack140 | ||
Hey Everyone! ![]() ]I'd like to quickly introduce myself, My name or username is Jack140. I've been programming for nearly 3 months. I've been using the turing software, and up to this point I've learned a lot ![]() Its actually fun and interesting (much like zork8-) . I hope everything goes well with my first new game... please leave comments, suggestion and report any bugs. Don't be too harsh with me, remember I am a beginner. ![]() on it, Since its not quite finished. By the way, I think this website is great! Keep it Up! ![]() Thanks, Jack140 PS. I'm not sure of how to post it as an attachment yet, so I will just post it with the message.
Mod Edit: Code tags! |
Author: | Jack140 [ Fri Nov 14, 2008 7:47 am ] |
Post subject: | RE:Texted-Based Game (Turing) by Jack140 |
If interested, I will be posting a tutorial, based on this game. |
Author: | metachief [ Fri Nov 14, 2008 4:36 pm ] |
Post subject: | RE:Texted-Based Game (Turing) by Jack140 |
... how much time do you have on your hands! I bet this took like a week to make! And it is all if statements. There is other type of code to do this thing. You should check out how to use cases. Nice job, but don't waste your time on things like this, not saying that it's bad... |
Author: | Jack140 [ Fri Nov 14, 2008 4:54 pm ] |
Post subject: | Re: Texted-Based Game (Turing) by Jack140 |
lol, I actually have a lot of time on my hands. I shall study "cases"... you know what? I actually never heard of that... I think it reduces lines of code or something along those lines... I think thats what it is... anyway, Thanks metachief! ![]() |
Author: | SNIPERDUDE [ Sat Nov 15, 2008 4:58 pm ] |
Post subject: | RE:Texted-Based Game (Turing) by Jack140 |
It is pretty good. These types of games are great for testing what you know, but then we move on. check out the turing tutorial to get started on some new ideas, coding practices, and even graphic programming. I don't know why, but reading through everything you wrote in your first post I kept thinking - "Finally, someone who uses proper English!". Lol |
Author: | Jack140 [ Sat Nov 15, 2008 5:34 pm ] |
Post subject: | Re: RE:Texted-Based Game (Turing) by Jack140 |
lol SNIPERDUDE!!! I don't normally speak "slang" or whatever you call it in todays era, I just write out the full actual words... (Thats why I have a long program lol) Yes, I am new to turing (its been 3 months), and I am glad you and other people liked it (which means that, so far I have a good understanding and my knowledge is developing and soon I will master the basics)... Currently, I am working on a more complexed game. (Pacman! ) I can't wait to post it... ![]() Thanks, Jack140 SNIPERDUDE @ Sat Nov 15, 2008 4:58 pm wrote: It is pretty good.
These types of games are great for testing what you know, but then we move on. check out the turing tutorial to get started on some new ideas, coding practices, and even graphic programming. I don't know why, but reading through everything you wrote in your first post I kept thinking - "Finally, someone who uses proper English!". Lol |
Author: | Insectoid [ Sat Nov 15, 2008 7:04 pm ] |
Post subject: | Re: Texted-Based Game (Turing) by Jack140 |
guh, PacMan. It is definitely possible, but it is very complicated, especially if you want to include things like pathfinding AI and the cool little things that were in the original game (speedy, confused ghost, etc.) |
Author: | Jack140 [ Sat Nov 15, 2008 7:42 pm ] |
Post subject: | Re: Texted-Based Game (Turing) by Jack140 |
So far I'm doing pretty good... I have the fundamentals down. (8 point movement, graphics, image, collision detection and other stuff) I just have to know how to create pacman's and ghost's velocity constant so that when I press the right arrow key for example, it will continue on in that direction. Unless otherwise, I press the up, down or left arrow key. (I will most likely find the answer to this question, because this site has a lot of tutorials about that) My goal for this is to make my Pacman run smoothly, and obviously get something out of it. It will take me a long time to do this but hey its worth the experience. ![]() |
Author: | SNIPERDUDE [ Sun Nov 16, 2008 7:16 pm ] |
Post subject: | RE:Texted-Based Game (Turing) by Jack140 |
Awesome, it's good to see your effort is really helping you in your knowledge. For the velocity constant just store what was pressed in a variable (so the moving procedure would use this variable to determine where to move). Pretty simple. |
Author: | syntax_error [ Sun Nov 16, 2008 11:42 pm ] |
Post subject: | Re: RE:Texted-Based Game (Turing) by Jack140 |
metachief @ Fri Nov 14, 2008 4:36 pm wrote: ... how much time do you have on your hands! I bet this took like a week to make! And it is all if statements. There is other type of code to do this thing. You should check out how to use cases. Nice job, but don't waste your time on things like this, not saying that it's bad...
why would he use case? If and case are exactly the same thing. You can to case to if, but not always if to case; I never have meet a single point in my programming life, where I needed to use case over if. |
Author: | delparnel [ Mon Nov 17, 2008 12:03 am ] |
Post subject: | Re: RE:Texted-Based Game (Turing) by Jack140 |
syntax_error @ Sun Nov 16, 2008 11:42 pm wrote: metachief @ Fri Nov 14, 2008 4:36 pm wrote: ... how much time do you have on your hands! I bet this took like a week to make! And it is all if statements. There is other type of code to do this thing. You should check out how to use cases. Nice job, but don't waste your time on things like this, not saying that it's bad...
why would he use case? If and case are exactly the same thing. You can to case to if, but not always if to case; I never have meet a single point in my programming life, where I needed to use case over if. I find Case/Switch statements (In general, not necessarily in Turing) useful when you're dealing with a range of integer options. It cleans things up a lot, and makes them more readable. It's not necessarily more efficient in any way. |