Français
Source/ Codesnippets

Ausschneiden Ausstanzen forme Puzzle Sprite

 

Julian
Schmidt

KompilierenMarqueSéparation
Randomize
Declare pos_x&, pos_y&, way_x&, way_y&
Var sprite&=Create("hPic",-1,"C:\\Puzzle.bmp")
Var bild&=Create("hNewPic", 185, 234, $FF00FF)
MoveTo RND(%bmpx+1),RND(%bmpy+1)
StartPaint bild&
DrawPic sprite&, 0, 0, -1, RGB(255,255,255)
EndPaint
DrawBackground
DrawPic bild&, (width(%hwnd)-%bmpx)/2, (height(%hwnd)-%bmpy)/2; -1
Deleteobject sprite&
Deleteobject bild&
waitinput
end

Proc DrawBackground

    CLS RGB(200,200,200)
    UsePen 0,10,RGB(128,128,128)

    whileloop Int((width(%hwnd)+height(%hwnd))\100)

        Line 0,100*&loop - 100*&loop,0

    EndWhile

ENDPROC


KompilierenMarqueSéparation
Randomiser
Déclarer pos_x&, pos_y&, way_x&, way_y&
Var col&=RGB(128,128,128)
Var sprite&=Créer(«PCSI»,-1,"C:\\Puzzle.bmp")
Var bild&=Créer("hNewPic", 185, 234, RGB(128,255,255))
MoveTo RND(%bmpx+1),RND(%bmpy+1)
Début de peinture bild&
DrawPic sprite&, 0, 0, -1, RGB(255,255,255)
EndPaint
CLS col&

WhileNot iskey(27) or (%Umessage=16)

    Sleep 10
    Cas pos_x&<0 : way_x&=0
    Cas pos_x&+%bmpx>width(%hwnd) : way_x&=-1
    Cas pos_y&<0 : way_y&=0
    Cas pos_y&+%bmpy>height(%hwnd) : way_y&=-1
    Cas way_x&<>-1 : pos_x&=pos_x&+1
    Cas way_y&<>-1 : pos_y&=pos_y&+1
    Cas way_x&=-1 : pos_x&=pos_x&-1
    Cas way_y&=-1 : pos_y&=pos_y&-1
    CLS col&
    DrawPic bild&, pos_x&, pos_y&; -1

Endwhile

Deleteobject sprite&
Deleteobject bild&
end

...siehe: [...] 

6 kB
Hochgeladen:24.05.2012
Downloadcounter191
Download
 
XProfan X2
Win7 Home Premium, SP1, AMD Athlon(tm) II Neo K125 Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
24.05.2012  
 



dans diesem Zusammenhang ist vlt. aussi qui hPic.inc ( [...]  ) intéressant.
 
25.05.2012  
 



Zum Quelltext


Topictitle, max. 100 marque.
 

Systemprofile:

ne...aucune Systemprofil angelegt. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

s'il te plaît s'inscrire um une Beitrag trop verfassen.
 

Options du sujet

5.590 Views

Untitledvor 0 min.
Heiko Dix30.10.2023
p.specht21.11.2021
R.Schneider20.11.2021
Uwe Lang20.11.2021
plus...

Themeninformationen

cet Thema hat 2 participant:

iF (1x)
Julian Schmidt (1x)


Admins  |  AGB  |  Applications  |  Auteurs  |  Chat  |  protection des données  |  Télécharger  |  Entrance  |  Aider  |  Merchantportal  |  Empreinte  |  Mart  |  Interfaces  |  SDK  |  Services  |  Jeux  |  cherche  |  Support

un projet aller XProfaner, qui il y a!


Mon XProfan
Privé Nouvelles
Eigenes Ablageforum
Sujets-La liste de voeux
Eigene Posts
Eigene Sujets
Zwischenablage
Annuler
 Deutsch English Français Español Italia
Traductions

protection des données


Wir verwenden Cookies seulement comme Session-Cookies à cause de qui technischen Notwendigkeit et chez uns gibt es aucun Cookies de Drittanbietern.

si du ici sur unsere Webseite klickst ou bien navigierst, stimmst du unserer Erfassung de Informationen dans unseren Cookies sur XProfan.Net trop.

Weitere Informationen trop unseren Cookies et en supplément, comment du qui Kontrolle par-dessus behältst, findest du dans unserer nachfolgenden Datenschutzerklärung.


d'accordDatenschutzerklärung
je voudrais keinen Cookie