Bounce game using c#
can somebody help me with my case study? its about bounce game using c# language. i'm a student and this game is my requirement. i don't know how to start and to do it. and i'm desperate. i need to pass this semester. can u guys help me? pls :'(
7 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Andy Manitara18 pointsPosted Sep 22, 2012, 9:42 AM EDT
cams sebilia5 pointsPosted Sep 24, 2012, 9:21 AM EDT
Andy Manitara18 pointsPosted Sep 24, 2012, 2:21 PM EDT
cams sebilia5 pointsPosted Sep 26, 2012, 7:49 AM EDT
pls help me with the displaying of the scores? and at the same time, it stores?
Andy Manitara18 pointsPosted Sep 26, 2012, 12:51 PM EDT
cams sebilia5 pointsPosted Sep 27, 2012, 12:38 PM EDT
it goes like this:
using System; using System.Drawing; using System.Drawing.Imaging; namespace AngryPig { public class Score { public int Count = 0; public Point Position = new Point(0,0); public Font MyFont = new Font("Chiller", 20.0f, GraphicsUnit.Pixel ); public Score(int x, int y) { Position.X = x; Position.Y = y; } public void Draw(Graphics g) { g.DrawString(Count.ToString(), MyFont, Brushes.RoyalBlue, Position.X, Position.Y, new StringFormat()); } public Rectangle GetFrame() { Rectangle myRect = new Rectangle(Position.X, Position.Y, (int)MyFont.SizeInPoints*Count.ToString().Length, MyFont.Height); return myRect; } public void Reset() { Count = 0; } public void Increment() { Count++; } }that is the class score.
and this:
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace AngryPig {public partial class Form2 : Form { private Score count; public Form2() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { dataGridView1.Rows.Add(textBox1.Text); dataGridView1.Columns.Add(Count); }on dataGridView1.Columns.Add(Count)
there is a proble,. i dont know what it is :(
Andy Manitara18 pointsPosted Sep 27, 2012, 2:02 PM EDT