This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's Your Projects subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. Project Ideas/Start New Projects => Your Projects
Author Message
programmer_to_be
Jesus is my Lord and Saviour.


Elite


Joined: 07 Feb 2006
Posts: 755

Posted: 23 Mar 2006 08:49:34 pm    Post subject:

Hey people! I'm currently working on a game called MazeWars. This game already has a map in it. I will make probably two or three levels too. I already have one copy of the game almost done, but I made another copy of the game called, MazeAttk. I am making this game from scratch. No tutorials to help me. Currently on the almost done version, there are stars, you, and an enemy who shoots at you. If you have any suggestions, please post them.
Back to top
Super Speler
Super Awesome Dude


Calc Guru


Joined: 28 Nov 2005
Posts: 1391

Posted: 23 Mar 2006 09:07:15 pm    Post subject:

Time limit. Whenever you shoot an enemy the timer goes up
Back to top
programmer_to_be
Jesus is my Lord and Saviour.


Elite


Joined: 07 Feb 2006
Posts: 755

Posted: 23 Mar 2006 09:09:24 pm    Post subject:

Sounds good, sounds good. I think I'll put that in the next version. Like, I'll program the original game, then optimize, then add in features! Thanks for the suggestion.
Back to top
Super Speler
Super Awesome Dude


Calc Guru


Joined: 28 Nov 2005
Posts: 1391

Posted: 23 Mar 2006 09:17:37 pm    Post subject:

Different types of weopons? Rocket Launcher slow and powerful, Shotgun fast and medium? Oh and Automatic Rocket Propelled Grenade Launcher's are a must.

Last edited by Guest on 23 Mar 2006 09:18:13 pm; edited 1 time in total
Back to top
programmer_to_be
Jesus is my Lord and Saviour.


Elite


Joined: 07 Feb 2006
Posts: 755

Posted: 23 Mar 2006 10:00:41 pm    Post subject:

Yeah, that would be cool. I'm first gonna like I said, get the main engine running. Then add in some cool features. Maybe like health packages randomly placed? And if you kill some enemies, they leave behind weapons.
Back to top
Super Speler
Super Awesome Dude


Calc Guru


Joined: 28 Nov 2005
Posts: 1391

Posted: 23 Mar 2006 10:02:08 pm    Post subject:

Remember if you need help with optimizations post code =].
Back to top
programmer_to_be
Jesus is my Lord and Saviour.


Elite


Joined: 07 Feb 2006
Posts: 755

Posted: 23 Mar 2006 10:57:01 pm    Post subject:

Okay. Man, Weregoose helped me with this last night. It was a one-line code for each getKey command for moving. Here is mine:

While 1
getKey→K
If K=24:Then
If [J](A,B-1)=0:Then
B-1→B
Output(A,B+1," "
Output(A,B,"o
-------------------------the theta sign
End
End


Can someone please help me make this into one line again? I remember it used not( in it.
Back to top
Super Speler
Super Awesome Dude


Calc Guru


Joined: 28 Nov 2005
Posts: 1391

Posted: 23 Mar 2006 11:24:39 pm    Post subject:

While 1
B-(getKey=24)not([J](A,B-1))-1→B
Output(A,B+1," "
Output(A,B,"o-------------------------the theta sign
End
End

I might of made a typo there.
Back to top
programmer_to_be
Jesus is my Lord and Saviour.


Elite


Joined: 07 Feb 2006
Posts: 755

Posted: 23 Mar 2006 11:25:44 pm    Post subject:

Could you explain that please? Last night, Weregoose was working on something else so he couldn't explain it to me. He was working on a different code.
Back to top
kalan_vod


Advanced Member


Joined: 04 Sep 2005
Posts: 446

Posted: 24 Mar 2006 06:02:01 pm    Post subject:

While 1
B-(getKey=24 and not([J](A,B-1→B
Output(A,Ans+1," /space is there
Output(A,Ans,"o-------------------------the theta sign
End


Well you want to use boolean logic as much as you can, in most cases. If getkey=24 and [J](A,B-1)=0 then it will B-1→B, and B is in Ans so you can just use Ans in the output since Ans is faster.

Edit: I assume you will end the loop some how? And make sure you define A and B before the loop starts.


Last edited by Guest on 24 Mar 2006 06:03:07 pm; edited 1 time in total
Back to top
Weregoose
Authentic INTJ


Super Elite (Last Title)


Joined: 25 Nov 2004
Posts: 3976

Posted: 24 Mar 2006 07:15:27 pm    Post subject:

That was the one-liner I pointed out. Although, I would replace [font="courier new"]getKey with whatever variable to which the last keypress was stored so as to not interfere with the later commands which depend on a keypress.

Last edited by Guest on 24 Mar 2006 07:16:34 pm; edited 1 time in total
Back to top
kalan_vod


Advanced Member


Joined: 04 Sep 2005
Posts: 446

Posted: 24 Mar 2006 07:37:25 pm    Post subject:

Well there isn't any other code there, but I would store the key and Repeat the loop till that certain key is press unless it needed to be a cerain char. in a string.
Back to top
DarkerLine
ceci n'est pas une |


Super Elite (Last Title)


Joined: 04 Nov 2003
Posts: 8328

Posted: 24 Mar 2006 08:04:11 pm    Post subject:

I might be missing something, but can't you do combine the two output statements int one?
Code:
Output(A,Ans,"/theta//space/
Back to top
kalan_vod


Advanced Member


Joined: 04 Sep 2005
Posts: 446

Posted: 24 Mar 2006 10:16:28 pm    Post subject:

Yeah that's right! lol I didn't see that one >.<. Umm, I am not sure what the placements can be though.
Back to top
Super Speler
Super Awesome Dude


Calc Guru


Joined: 28 Nov 2005
Posts: 1391

Posted: 25 Mar 2006 02:28:25 pm    Post subject:

I was looking at this code and had an idea... using a for( loop to store location. The value changes based on last key pressed.
Back to top
Display posts from previous:   
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
    »
» View previous topic :: View next topic  
Page 1 of 1 » All times are UTC - 5 Hours

 

Advertisement