Hiy'all! It's me again. After my success of my first working public game, I decided to make a second one. It's a tower defence game!
I currently need suggestions for the movement of the "enemies" and the trigonometrical calculations of the tower's "projectiles". This tower defence game uses only the .NET managed resources (again) and nothing else (like XNA, OpenGL etc...) but that :) So, if you're good in graphical mathematics, maybe you might wanna help with the tower's "projectile" movement and also the "enemies" movement. (If you have any other better .NET Managed Resources Game Loops you know, you might also want to share it here!) I have just started this game today and it's in its ultimate infancy. Anyways, here's the code in case there's an error. (Note that there is nothing functional... ):
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Diagnostics;using System.IO;namespace EnemyMakerTD1 {publicpartialclass Form1 : Form {public Form1() { InitializeComponent(); } }#region Enemy classpublicclass Enemy {public EnemyType TypeOfEnemy;publicdouble x = 0;publicdouble y = 0;public TurnCompleted CompletedTurn = TurnCompleted.none;public Enemy(EnemyType etype) { TypeOfEnemy = etype; }publicvoid MoveIt() {#region noneif (CompletedTurn == TurnCompleted.none) {if (x == 50 && y == 300)//Not too sure about the first turn's coordinates... Just guessing { }else { } }#endregion#region one#endregion#region two#endregion#region three#endregion#region four#endregion#region five#endregion#region six#endregion#region seven#endregion#region eight#endregion#region nine#endregion#region ten#endregion#region eleven#endregion#region twelve#endregion#region thirteen#endregion } }#endregion#region enumspublicenum EnemyType { basic, duo, tri, quad, duotri, quadduo, fivehit, tenhit, twentyhit, fiftyhit, quadtenhit }publicenum TurnCompleted { none, one, two, three, four, five, six, seven, eight, nine, ten, eleven, twelve, thirteen }#endregion }
Thanks for all your awesome suggestions and help!
Have a Byte on some Pi! www.hexprogramming.blogspot.com http://code.google.com/p/open-source-any-song-tap-game/ 3141592653589 7 8 9 4 3 6 2 2 3 6