Dopo aver recentemente superato alcuni problemi :P ho deciso di avviare un mio progetto personale: un Pong in Gambas.
Ora però mi ritrovo di nuovo a sbattere la testa contro la mia ignoranza :hard:.
Vi posto quel poco codice che ho scritto fin ora:
http://img233.imageshack.us/img233/7786/schermatak.png (http://img233.imageshack.us/img233/7786/schermatak.png)
' Gambas class file
PUBLIC SUB _new()
END
PUBLIC SUB Form_Open()
ME.Text = "PonGambas"
ME.Width = 800
ME.Height = 450
ME.Border = Window.Fixed
ME.X = ((Desktop.Width) / 2) - ((ME.Width) / 2)
ME.Y = ((Desktop.Height) / 2) - ((ME.Height) / 2)
ME.Background = Color.Black
DrawingArea1.Height = ME.Height
DrawingArea1.Width = ME.Width
DrawingArea1.X = 0
DrawingArea1.Y = 0
Draw.Begin(DrawingArea1)
Draw.ForeColor = Color.White
Draw.FillColor = Color.White
Draw.FillStyle = 1
Draw.Rect(5, 185, 10, 40)
Draw.End()
END
Ora il problema è che rimane una "macchia" nel programma (non so spiegarvi, ora posto un'immagine)
Edit: eccola http://img816.imageshack.us/img816/201/schermata1n.png (http://img816.imageshack.us/img816/201/schermata1n.png)