Yeah, not modern. Anyways basically the map size has to be at least 240 X 320. As that's the size of the zune screen. So multiples of that would be good.
Like a 480 X 640. Just however big and wide you want it.
I already worked on something like this a bit when I first got my Zune 8. Though I only got as far as a selection system featuring the touch pad (Couldn't decide how to map the other controls) If you need any programming assistance I would be happy to help.
Code:
public void Update(GameTime gameTime, InputHandler input)
{
if (input.BeginTouch)
{
selectionStart.X = (int)input.touchPositionPixel.X;
selectionStart.Y = (int)input.touchPositionPixel.Y;
isSelecting = true;
}
if (input.EndTouch)
{
foreach (SelectableObject s in selectableObjects)
{
s.selected = false;
if (selectArea.Contains(new Point((int)s.location.X, (int)s.location.Y)))
{
s.selected = true;
}
}
isSelecting = false;
}
if (isSelecting)
{
int selectHeight, selectWidth;
selectWidth = Math.Abs(selectionStart.X - (int)input.touchPositionPixel.X);
selectHeight = Math.Abs(selectionStart.Y - (int)input.touchPositionPixel.Y);
selectArea = new Rectangle(Math.Min(selectionStart.X, (int)input.touchPositionPixel.X),
Math.Min(selectionStart.Y, (int)input.touchPositionPixel.Y),
selectWidth, selectHeight);
}
arrowpos = input.touchPositionPixel;
}
Code:
namespace Zune_RPG
{
class InputHandler
{
public ZunePadState oldzpstate = new ZunePadState();
public ZunePadState zpstate = new ZunePadState();
public Vector2 oldTouchPositionPixel = new Vector2();
public Vector2 touchPositionPixel = new Vector2();
public bool insideSafeTouch = false;
public void Update()
{
oldzpstate = zpstate;
oldTouchPositionPixel = touchPositionPixel;
zpstate = ZunePad.GetState();
touchPositionPixel = zpstate.TouchPosition;
touchPositionPixel.X *= 168f;
touchPositionPixel.X += 120f;
touchPositionPixel.Y *= -1f;
touchPositionPixel.Y *= 224f;
touchPositionPixel.Y += 160f;
if ((touchPositionPixel.X > 0 && touchPositionPixel.X < 240) && (touchPositionPixel.Y > 0 && touchPositionPixel.Y < 320))
{
insideSafeTouch = true;
}
else
{
insideSafeTouch = false;
}
}
public bool BeginTouch
{
get
{
if (oldzpstate.IsTouched == false && zpstate.IsTouched == true)
return true;
return false;
}
}
public bool EndTouch
{
get
{
if (oldzpstate.IsTouched == true && zpstate.IsTouched == false)
return true;
return false;
}
}
}
}
ZunePad just converts input to zune friendly names.
__________________
I am working on: Zune TD - Version 1.0.5 released 2/25/2009
Zune TD - Version 2.0.0 Unreleased (50% done)
I think I would be of assistance for an enemy/ defense / building person. I would be able to make the stats for enemys, towers, buildings, ect. I have played many of these games before (such as Warcraft III, C&C, AOE, AOM, ect.). I could even produce a great storyline for you if you needed one. Just thought I would offer my help!
__________________
I need Zune Social Friends: Sir Justin1020
You mean like balancing the game play, so that people aren't overpowered? I can't see why not. Figuring out how much damage they should deal, what percentage of a chance they have of hitting their enemy, the health for each character.
There will be 4 different types of soldiers. Starting with something like footman, going to soldier, etc... That's the sort of things to take into consideration.
That will take a bit of load off my soldiers and let me focus on the engine.
Yeah that is what I mean! Alright I would love to help. Perhaps we could also use Nam's site for programmers to talk quickly together?
(Also if Nam reads this post, I am completely remaking the enemys/ towers. The towers only have 5 levels now except for the Ultimate Tower and I got rid of the Emergency Tower. I am not sure this was needed but I can add them back easily. And actually, the only thing I think I have to do is correct a few levels after lvl 50 then I can start on this project since you are gonna make it open source.)
__________________
I need Zune Social Friends: Sir Justin1020
If you want to use my site I don't mind making you guys your own forum, I know its easier to discuss issues when you can make a thread for each one (Zune TD has a nice number for how completed it was when I made it). Just let me know via PM or e-mail.
If you host it on my forum I can easily help you with any programming questions as well.
I can attest to how good sir justin is at balancing, my only complaint is that he got stuck and kept wanting to make all towers cost the same
Its not really an option in an SRPG though.
__________________
I am working on: Zune TD - Version 1.0.5 released 2/25/2009
Zune TD - Version 2.0.0 Unreleased (50% done)
yeah make a forum for it and make me moderator of it k nam? also once it is made give me link, ima post in the first post so other tram members will know were to go
check the first post. i got you all down under team
Quote:
Originally Posted by AndroidAdam
Yeah, not modern. Anyways basically the map size has to be at least 240 X 320. As that's the size of the zune screen. So multiples of that would be good.
Like a 480 X 640. Just however big and wide you want it.
yeah bout the map andriod you said 240x320 is the size of the screen. but the game is gunna scroll right? so it wouldnt matter what size
Alright! Well, once we have a running game going I will be able to test my balancing. I will make rough information soon but I wont be able to test yet.
__________________
I need Zune Social Friends: Sir Justin1020