Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Orpheus_2003

#1
Eine Frage.

Ich brauch aus einem Tileset ein Teil zum Kollisionen checken.
Daf?r rendere ich den screen. Grabe den Teil raus wo sich der Player befindet.

Funktioniert auch.
Aber. Die FPS gehen runter in den Keller.
Von urspr?nglich 300 FPS auf 115.

Ist das so rechenintensiv das Grabsprite?
#2
2D / DrawSpriteRect
2009-Sep-08
DrawSpriteRect pic$, x, y, start_x, start_y, breite, h?he [, frame]

An out-take of the loaded pic$ with spec. hight,width and startpos x,y will be draw onto x,y

pic$      - picture ID
x         - x coordinates
y         - y coordinates
start_x - x coordinates for startpoint in load pic.
start_y - y coordinates for startpoint in load pic.
width    -  width picture out-take
hight     -  hight picture out-take
frame    - frame if used...

That would be nice to draw some tilesets and a levelengine for jump&runs....
#3
Ich hab mal ne Frage.

Will ne Map von einem File laden.
Das File sieht so aus:

000 000 000 1AA
000 1AA 000 000  xxxxxx
xxxx
xxx

So.
Jetzt will ich das in ein DIM laden.

Code (glbasic) Select

DIM Map$ [2000][2000]

FUNCTION loader:
OPENFILE(1, "load_map1.dat", TRUE)

FOR Zeile=0 TO 20
GETFILE "load_map1.dat", Zeile, a$
FOR Spalte=0 TO 20
  Map$[Spalte][Zeile] = MID$(A$, (Spalte*4) +1, 3)
//IF Map$[Spalte][Zeile]="" THEN Map$[Spalte][Zeile]="000"
NEXT
NEXT
CLOSEFILE 0

ENDFUNCTION


Aber er l?dt mir die Daten nicht rein.
Weiss einer Hilfe?

Thx and Greets