Autor Beitrag
blume283
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 23


Delphi 7
BeitragVerfasst: Mo 22.10.07 09:52 
hallo,

ich habe in einer anwendung folgendes:

eine "spielfläche", bestehend aus zb. 10x10 timage.
diese werden nach einer aktion des spielers neu gezeichnet (mit onclick werden solche aktionen zb ausgelöst, zb eine einheit von feld a nach feld b bewegen)

ist das gut, das so zu regeln? oder sollte man eher mit EINEM großen image arbeiten und dann mit onclick zuerst die cursorposition bestimmen und daraus dann die koordinate berechnen (10x10)? oder gibt es noch andere möglichkeiten? oder sollte man lieber so etwas wie delphix dafür verwenden?

viele grüße

nils
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Mo 22.10.07 10:00 
1. DelphiX ist Kacke: Es wird nicht mehr weiterentwickelt, kann vieles nicht, ist unperformant für realistische Einsatzzwecke, ...

2. In der Programmierung gilt: Resourcen schonen soweit es geht. Jedes genutzte Byte ist eines zu viel!

3. Was ist daran so kompliziert, aus der Cursor-Position die Position des angeklickten Spielsteins zu errechnen?

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
blume283 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 23


Delphi 7
BeitragVerfasst: Mo 22.10.07 12:18 
hi benbe,

danke für deine antwort.

1. wo könnte ich mich einarbeiten, um eine "schnelle" grafische oberfläche selbst zu erstellen? ich brauche nicht viel - nur die standards. hättest du einen link?

2. ok. also verbrauchen viele kleine images mehr ressourcen als ein großes?! ok.

3. gar nichts.

viele grüße

nils
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Mo 22.10.07 19:09 
1. OpenGL bietet hier einige gute Dinge an. Fear3D wäre ggf. ne Idee. Ansonsten DelphiGL.com

2. Jip.

3. Verstehen wir uns ja ... Andere ja nur mit nachfragen ... :mrgreen:

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
alias5000
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: Mo 22.10.07 20:15 
user profile iconBenBE hat folgendes geschrieben:
1. OpenGL bietet hier einige gute Dinge an. Fear3D wäre ggf. ne Idee. Ansonsten DelphiGL.com


hm, der Herr, wenn ich mal kurz dürfte...

user profile iconBenBE hat folgendes geschrieben:
1. OpenGL bietet hier einige gute Dinge an. Fear2D wäre ggf. ne Idee. Ansonsten DelphiGL.com


So, sitzt, passt wackelt und ist hoffentlich angenehm, einen schönen Tag noch!

Gruß
alias5000

_________________
Programmers never die, they just GOSUB without RETURN