Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Software-Projekte der Mitglieder (https://www.delphipraxis.net/26-software-projekte-der-mitglieder/)
-   -   Zork - Ein Textadventure (https://www.delphipraxis.net/108828-zork-ein-textadventure.html)

Diamondback2007 26. Mär 2008 12:24

Re: Zork - Ein Textadventure
 
Zitat:

Zitat von Die Muhkuh
Was vielleicht noch nett wäre, wenn auf der Karte ein Punkt wäre, quasi: "Sie sind hier". Man hat es zwar fix abgesucht, wo man nun ist, aber eine kleine optische Hilfe wäre nett.

Okay, hat jemand eine idee wie ich das realisieren soll?

die karte ist ein einfaches Bild. wie soll ich di räume zuordnen?einfach die koordinaten auf dem bild zu speichern wäre blöd, da diese sich wohl verschieben können.
hat jemand sonst noch eine idee?

gruß

Jakob Ullmann 26. Mär 2008 12:42

Re: Zork - Ein Textadventure
 
Du kannst folgendes machen:

Delphi-Quellcode:
procedure TForm1.FormCreate(Sender: TObject);
var orginal: TPicture;
begin
  orginal := TPicture.Create;
  orginal.Assign(Image1.Picture);
end;
Immer, wenn sich die Koordinate ändert:

Delphi-Quellcode:
  Image1.Picture.Assign(orginal);
  Image1.Canvas.Pixels[x, y] := clRed;

BullsEye 26. Mär 2008 16:34

Re: Zork - Ein Textadventure
 
Zitat:

Zitat von Diamondback2007
Zitat:

Zitat von BullsEye
Ich habs mal getestet. Ist recht gut, bis jetzt.
Hab da noch ne Idee. Und zwar ne "Aufgabenauflistung". Also das ich sehen kann, was meine aktuelle Aufgabe ist.

Also im prinzip irgendetwas wo drin steht wo du aktuell hinmusst und so? das wäre machbar.

gruß

genau das meine ich!

Diamondback2007 26. Mär 2008 17:55

Re: Zork - Ein Textadventure
 
okay, das mit der info werd ich wohl noch machen.

gruß


Alle Zeitangaben in WEZ +1. Es ist jetzt 19:15 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz