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
Harrierfalcon
The Raptor of Calcs


Super Elite (Last Title)


Joined: 25 Oct 2006
Posts: 2535

Posted: 30 Apr 2007 06:08:03 am    Post subject:

Urghh......*foams at mouth, takes swig from flask*

*hiccups*

I'm kinda busy right now, if I get time I'll release what I have so far...I might rewrite the second boss, he's really lame right now.


Last edited by Guest on 30 Apr 2007 06:33:29 am; edited 1 time in total
Back to top
IAmACalculator
In a state of quasi-hiatus


Know-It-All


Joined: 21 Oct 2005
Posts: 1571

Posted: 30 Apr 2007 07:02:43 am    Post subject:

For all your motivational needs, go to despair.com!
Back to top
Harrierfalcon
The Raptor of Calcs


Super Elite (Last Title)


Joined: 25 Oct 2006
Posts: 2535

Posted: 30 Apr 2007 03:47:44 pm    Post subject:

Ha ha...engineers smell bad...tee hee

j/k :D

I am motivated now, though. I'm rewriting the second boss to something a little cooler than a theta that follows you around.
Back to top
frenchcalc1
جان ألعريم


Active Member


Joined: 14 Mar 2007
Posts: 648

Posted: 30 Apr 2007 04:53:29 pm    Post subject:

Harrierfalcon wrote:
Ha ha...engineers smell bad...tee hee

j/k :D

I am motivated now, though.  I'm rewriting the second boss to something a little cooler than a theta that follows you around.
[post="102307"]<{POST_SNAPBACK}>[/post]

That sounds cool! Great job by the way Smile
Back to top
Harrierfalcon
The Raptor of Calcs


Super Elite (Last Title)


Joined: 25 Oct 2006
Posts: 2535

Posted: 30 Apr 2007 06:46:44 pm    Post subject:

Thanks! The second boss is a Dark Samus-kind of boss--he follows you an shoots at you. I'm having a few problems with the shooting part, but I'll figure it out.
Back to top
garrett01001


Member


Joined: 21 Apr 2007
Posts: 135

Posted: 30 Apr 2007 09:10:26 pm    Post subject:

for the last boss you should do something similar to the following:

have a weird looking sprite, which is really just pi and e overlapped, then have them separate and pi shoots 3.141592etc (pi) at you and e shoots 2.71828etc (e, eulers number) at you

just an idea.. feel free to change it if you want
Back to top
Harrierfalcon
The Raptor of Calcs


Super Elite (Last Title)


Joined: 25 Oct 2006
Posts: 2535

Posted: 30 Apr 2007 09:24:32 pm    Post subject:

Well, it has to be a plain Pi symbol, because overlapping symbols would take too long, and the strongest enemy is a Pi (hence, Metroid Pi)...

Ok, I am stuck. I want the theta to shoot a beam of stuff at the character (Samus?). The theta follows the same gravity and jumping power Samus does. How would I come up with a formula that would give me the length from the theta to the wall, (The walls are at 0 and 11), factoring in which way Samus is in regards to the theta?
Back to top
garrett01001


Member


Joined: 21 Apr 2007
Posts: 135

Posted: 30 Apr 2007 09:34:39 pm    Post subject:

theta position = 7
samus position = 3
shoot = 7,6,5,4,3,2,1,0 (stops moving when it hits something)
Back to top
Harrierfalcon
The Raptor of Calcs


Super Elite (Last Title)


Joined: 25 Oct 2006
Posts: 2535

Posted: 30 Apr 2007 09:36:03 pm    Post subject:

Uhhh....that's not exactly what I meant. I wanted a formula to give me the length from the theta to the wall. Not for the shot to move, just a beam.
Back to top
Weregoose
Authentic INTJ


Super Elite (Last Title)


Joined: 25 Nov 2004
Posts: 3976

Posted: 30 Apr 2007 09:38:09 pm    Post subject:

If there are two axes, find the hypotenuse. If there is one axis, simply subtract the wall position from the theta position and take the absolute value. If you want the wall in the direction away from Samus, then it'd make sense that if θpos minus Spos is positive, then it'd be one way; if it's negative, then it'd be in the other direction. Make sense?

Last edited by Guest on 30 Apr 2007 09:42:32 pm; edited 1 time in total
Back to top
garrett01001


Member


Joined: 21 Apr 2007
Posts: 135

Posted: 30 Apr 2007 09:39:49 pm    Post subject:

11-(current pos) = distance to right side
(current pos)-1 = distance to left side

?
Back to top
Harrierfalcon
The Raptor of Calcs


Super Elite (Last Title)


Joined: 25 Oct 2006
Posts: 2535

Posted: 30 Apr 2007 09:46:38 pm    Post subject:

Umm....OK, let me clarify.

Say I had homescreen-sized graphics, but with the top left corner being (0,0) instead of (1,1). The theta is at (6,5) (row,col). How would I get the distance from the theta to (6,1) or (6,10)?

EDIT: Hrmm....I was attempting to avoid any If-Thens....I'll make this work. Thanks guys!


Last edited by Guest on 30 Apr 2007 09:47:28 pm; edited 1 time in total
Back to top
garrett01001


Member


Joined: 21 Apr 2007
Posts: 135

Posted: 30 Apr 2007 10:37:05 pm    Post subject:

use basic distance formula:

sqrt((x2-x1)^2+(y2-y1)^2)

(i think thats right..)
Back to top
Harrierfalcon
The Raptor of Calcs


Super Elite (Last Title)


Joined: 25 Oct 2006
Posts: 2535

Posted: 30 Apr 2007 10:38:48 pm    Post subject:

Umm....sure? That's a too complicated.

I think with a clever combination of Booleans I can make this work. Thanks!
Back to top
garrett01001


Member


Joined: 21 Apr 2007
Posts: 135

Posted: 30 Apr 2007 10:43:07 pm    Post subject:

complicated... that's super easy..

you are at (6,2) you want distance to (5,3)

sqrt((5-6)^2+(3-2)^2)
= sqrt(1+1)
= sqrt(2)

can't get much better than that?


EDIT: and of course, if the X or Y is the same then you just subtract the two that are different..


Last edited by Guest on 30 Apr 2007 10:47:21 pm; edited 1 time in total
Back to top
Xphoenix


Elite


Joined: 04 Apr 2007
Posts: 756

Posted: 30 Apr 2007 10:49:52 pm    Post subject:

I've been unable to shoot, so I was wondering if anyone else has experienced this?
Back to top
Weregoose
Authentic INTJ


Super Elite (Last Title)


Joined: 25 Nov 2004
Posts: 3976

Posted: 30 Apr 2007 10:55:43 pm    Post subject:

Assuming I have this right:

Define [font="courier new;font-size:9pt;line-height:100%;color:darkblue"]θ
as the x-coordinate of the theta, and [font="courier new;font-size:9pt;line-height:100%;color:darkblue"]S as the x-coordinate of Samus.

If [font="courier new;font-size:9pt;line-height:100%;color:darkblue"]θ-S is positive, then [font="courier new;font-size:9pt;line-height:100%;color:darkblue"]θ is to the right of [font="courier new;font-size:9pt;line-height:100%;color:darkblue"]S, so to get the distance from [font="courier new;font-size:9pt;line-height:100%;color:darkblue"]θ to the right wall, we want [font="courier new;font-size:9pt;line-height:100%;color:darkblue"]abs(θ-10).

If [font="courier new;font-size:9pt;line-height:100%;color:darkblue"]θ-S is negative, then [font="courier new;font-size:9pt;line-height:100%;color:darkblue"]θ is to the left of [font="courier new;font-size:9pt;line-height:100%;color:darkblue"]S, so to get the distance from [font="courier new;font-size:9pt;line-height:100%;color:darkblue"]θ to the left wall, we want [font="courier new;font-size:9pt;line-height:100%;color:darkblue"]abs(θ-1).

Simple optimization: [font="courier new;font-size:9pt;line-height:100%;color:darkblue"]abs(θ-1-9(θ>S→D

[EDIT]—Replaced [font="courier new;font-size:9pt;line-height:100%;color:darkblue"]θ-S>0 with [font="courier new;font-size:9pt;line-height:100%;color:darkblue"]θ>S.

Last edited by Guest on 15 Jun 2007 02:55:57 am; edited 1 time in total
Back to top
Harrierfalcon
The Raptor of Calcs


Super Elite (Last Title)


Joined: 25 Oct 2006
Posts: 2535

Posted: 01 May 2007 06:05:52 am    Post subject:

Yay! Thanks guys!

@Xphoenix: That is part of the game. You have to get the powerup that lets you shoot.
Back to top
Xphoenix


Elite


Joined: 04 Apr 2007
Posts: 756

Posted: 01 May 2007 08:21:40 pm    Post subject:

Oh. So you can change screens... I must be a slow learner.
(That's what readmes are for)
Back to top
Harrierfalcon
The Raptor of Calcs


Super Elite (Last Title)


Joined: 25 Oct 2006
Posts: 2535

Posted: 01 May 2007 09:29:07 pm    Post subject:

........:|

Anyways...I've finished the second boss, and I've decided to update the demo. Should be self explanatory, controls are simple...any suggestions?

Here:[attachment=1455:attachment]
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
    » Goto page Previous  1, 2, 3, ... 16, 17, 18  Next
» View previous topic :: View next topic  
Page 2 of 18 » All times are UTC - 5 Hours

 

Advertisement