1. Dashboard
  2. Mitglieder
    1. Letzte Aktivitäten
    2. Benutzer online
    3. Team
    4. Mitgliedersuche
  3. Forenregeln
  4. Forum
    1. Unerledigte Themen
  • Anmelden
  • Registrieren
  • Suche
Alles
  • Alles
  • Artikel
  • Seiten
  • Forum
  • Erweiterte Suche
  1. AutoIt.de - Das deutschsprachige Forum.
  2. Mitglieder
  3. yxyx

Beiträge von yxyx

  • Doodle Jump für Pc

    • yxyx
    • 6. Juni 2010 um 19:35
    Zitat von Ubuntu

    Also bei mir siehts jetzt so aus:

    Spoiler anzeigen
    Code
    extern "C" int __declspec(dllexport) myfunc (int mobexist, int coordcheck, float coordold, float coord1, float coord2, float coord3, float moveright, float mobset, float platmovespeed, int ufoset, float moveup)
    {
    int mobcheck=1;
     	   switch(mobexist) {
    	   			 case 1 || 2:
    				 	  if (coordcheck == 0) {
    					  	 			coordold = coord1;
    					  	 			coordcheck = 1;}
    					  if (coord1 == coordold || coord1 == coordold + 6) {
    					  	 		moveright *= -1;}	 			
    	  	 			  coord1 += moveright;
    	  	 			  return (mobexist, coordcheck, coordold, coord1, coord3, moveright, mobcheck);
    				 case 3:
    				 	  if (mobset == 0) {
    					  	 		if (coordcheck == 0) {
    								   			   coord3 = coord2 + 33;
    								   			   coordcheck = 1;}}
    					  else {
      	   		  		        	mobcheck = 0;}
    					  return (mobexist, coordcheck, coordold, coord1, coord3, moveright, mobcheck);
    				 case 5:
    				 	  if (coord1 > 261-39) {moveright = -3;}
    				 	  if (coord1 < 39) {moveright = 3;}
    				 	  coord1 += moveright;
    //				 	  if (moveright < 0) {aktuellerMob = 
    					  if (coordcheck == 0) {
    					  	 			coordold = coord2;
    					  	 			coordcheck = 1;}
    					  coordold += platmovespeed;
    					  if (coord2 > coordold +5 || coord2 < coordold) {moveup *= -1;}
    					  coord2 += moveup;
    					  return (mobexist, coordcheck, coordold, coord1, coord3, moveright, mobcheck);
    				  case 6:
    				  	  if (ufoset == 0) {
    					  	 		 if (coordcheck == 0) {
    								 				coordold = coord1;
    								 				coordcheck = 1;}
    				 				 if (coord1 <= coordold || coord1 >= coordold + 5) {
    								 			moveright *= -1;}
    								 coord1 += moveright;
    								 mobcheck = 96;
    								 }
    			       	return (mobexist, coordcheck, coordold, coord1, coord3, moveright, mobcheck);		 
    				   case 7:
    				   		if (coordcheck == 0) {
    						   			   coordold = coord1;
    						   			   coordcheck = 1;
    									   }
    						if (coord1 == coordold || coord1 > coordold + 100) {moveright *= -1;}
    						return (mobexist, coordcheck, coordold, coord1, coord3, moveright, mobcheck);
    
    }}
    Alles anzeigen

    6 von 9 Calls hab ich :)

    mfg Ubuntu


    wo is -1 und 4 ?
    meins sieht jetz so aus
    hat aba noch fehler

    Spoiler anzeigen
    Code
    extern "C" int __declspec(dllexport) Mobcheck (int scheinheight, int coord1, float coord2, float x, float y, float yalt, int border, void* dLinks, void* dRechts, void* dsfglinks, void* dsfgrechts, void* dsfrechts, float dwidth, float dheight, int fSprung, int huton, int raketeon, int Mobexist, int mobheight, int mobwidth, int protect, int soundoff, int sprung, int Sprungf, int sprungkraft, int Sprungnu, int sprungtr, int t, int Zeitschrit, int mobtimeron, int yboden)
    {
           int playsound = 0;
    	   int die = 0 ;
           void* AktuellerDoodle;
    	if ((((coord1 <= x + dwidth - border) && (coord1 + mobwidth >= x + dwidth- border)) || ((coord1 <= x) && (coord1 + mobwidth >= x)) || ((coord1 >= x) && (coord1 + mobwidth <= x + dwidth))) && (((y <= coord2 + mobheight + scheinheight) && (y + dheight >= coord2 + mobheight + scheinheight)) || ((y <= coord2)  && (y + dheight >= coord2 + mobheight))) && protect = 0 ) 
        {
    		if ((huton = 1) || (raketeon = 1))
             {
    			Mobexist = 0;
            }
    		else
    		{
    			die = 1;
    		}
        }
    
    
    	if (((coord1 <= x + dwidth - border && coord1 + mobwidth >= x + dwidth- border) || (coord1 <= x && coord1 + mobwidth >= x) || (coord1 >= x && coord1 + mobwidth <= x + dwidth)) && (y + dheight <= coord2 && y + dheight + 15 >= coord2) ) {
    		if (yalt + 1 < y ) {
    			if (soundoff = 0 ) { int playsound = 1;}
    			t = Zeitschrit ;
    			yboden = coord2 ;
    			Mobexist = 0 ;
    			if (sprung = 1 ) {
    				sprung = 0 ;
    				sprungkraft /= 1.5 ;
    			}
    								if (sprungtr = 1 ) {
    									fSprung = 0;
    									sprungtr = 0;
    									sprungkraft /= 2;
    								}
    								if (Sprungf = 1 ) {
    
    
    
    
    									if (AktuellerDoodle = dsfrechts )
                                         {
    										AktuellerDoodle = dsfgrechts;
                                        }
    									else
    									 {
    										AktuellerDoodle = dsfglinks;
    									}
    
    
    
    
    									if (Sprungnu = 6 ) {
    										Sprungf = 0;
    										Sprungnu = 0;
    										sprungkraft = 50;
    										if (AktuellerDoodle = dsfgrechts )
                                             {
    											AktuellerDoodle = dRechts;
    										}
    										else
    										 {
    											AktuellerDoodle = dLinks;
    										}
                                        }
    									else
    								 {
    										Sprungnu += 1;
    									}}
    
    			sprung = 1;
    			sprungkraft *= 1.5;
    		}
    	}
    return( AktuellerDoodle, Sprungnu, sprungkraft, Sprungf, sprungtr, sprung, playsound, t, yboden, Mobexist);
    }
    Alles anzeigen

    edit
    code von ein paar fehlern befreit
    edit 2
    noch n paar fehler beseitigt
    aba einen find ich grad nich
    in zeile neun macht er ne meldung: Non-Ivalue in assignment
    ka was das heißt :D

  • Scite für C(++)

    • yxyx
    • 6. Juni 2010 um 15:33

    aso :D

  • Scite für C(++)

    • yxyx
    • 6. Juni 2010 um 15:30

    @lev
    wie kann man da was kompilieren?

  • Scite für C(++)

    • yxyx
    • 6. Juni 2010 um 15:03

    wenste was gutes gefunden hast darfst dich bei mir melden :D
    vorallen die scite variante find ich iwie interessant

    edit
    in scite
    optionen -> Open User Options File

  • Doodle Jump für Pc

    • yxyx
    • 6. Juni 2010 um 14:33

    das wird ja n monsterdllcall :D

  • Doodle Jump für Pc

    • yxyx
    • 6. Juni 2010 um 14:26

    ich glaub jetz hab ichs verstanden :D

  • Scite für C(++)

    • yxyx
    • 6. Juni 2010 um 14:24

    das program hat bei mir bugs ohne ende :D

  • Doodle Jump für Pc

    • yxyx
    • 6. Juni 2010 um 14:15
    Zitat

    _gdiplus_loadimagefromfile ist doch das gleiche wie _GDIPlus_ImageLoadFromFile.


    oh da hab ich mich wohl verschrieben
    aba ganz komm ich noch nich mit :D

  • dlls für berechnungen

    • yxyx
    • 6. Juni 2010 um 14:12

    ma ne frage wie kann man einen hex wert an eine dll übergeben
    oda anders was muss ich dan in der dll schreiben

  • Doodle Jump für Pc

    • yxyx
    • 6. Juni 2010 um 14:07

    hmm da kommt hex dabei raus
    soll ich das jetz als string machen oda gibts für hex noch was

  • Doodle Jump für Pc

    • yxyx
    • 6. Juni 2010 um 14:02

    hab keine ahnung was das zurück gibt
    vll ja ne dll
    ne oda
    boa da müssen wa ja 25 vars übergeben lool

  • Doodle Jump für Pc

    • yxyx
    • 6. Juni 2010 um 13:57

    boa hat die viele vars :D
    wie mach ich das mit den rückgaben von _gdiplus_loadimagefromfile
    int?
    string?
    hab echt ka :D

  • Doodle Jump für Pc

    • yxyx
    • 6. Juni 2010 um 13:51

    ok :D
    wenn du das machen willst
    wollte ja nur helfen :D
    ich fang an die mobcheck zu c++sen :D

  • Doodle Jump für Pc

    • yxyx
    • 6. Juni 2010 um 13:40

    ok ich mach ma die cases von unten nach oben :D

  • Doodle Jump für Pc

    • yxyx
    • 6. Juni 2010 um 13:36
    Zitat

    Wieso


    weil die funks in dem bereich sin

    sonst müssen wa das in autoit machen
    also dan einfach i einen return auf 1 setzen damit autoit das überprüft

  • Doodle Jump für Pc

    • yxyx
    • 6. Juni 2010 um 13:33

    dann müssen wa aba die mobcheck und createmob auch machen
    ähm was macht es wenn im return mehrere drine sin?

  • Doodle Jump für Pc

    • yxyx
    • 6. Juni 2010 um 13:21

    joa das kommt mir auch so vor
    auserdem brauchma nur 3 übergabeparameter oda?
    hmm sin doch mehr

  • Spiel - Problem

    • yxyx
    • 6. Juni 2010 um 04:01

    noch kürzer :D

    [autoit]

    Global $ziele[10][2], $ziel[10], $count = 10
    GUICreate("Spiel", @DesktopWidth, @DesktopHeight - 70)
    CreateTargets()
    GUISetState()
    While 1
    $pos = GUIGetCursorInfo()
    If @error Then ContinueLoop
    If $pos[2] Then
    For $i = 0 to UBound($ziele)-1
    If $pos[4] = $ziel[$i] Then
    GUICtrlSetImage($ziel[$i], @ScriptDir & "\data\explosion.jpg")
    Sleep(500)
    GUICtrlDelete($ziel[$i])
    $count -= 1
    If $count = 0 Then CreateTargets()
    EndIf
    Next
    EndIf
    If GUIGetMsg() = -3 Then Exit
    WEnd
    Func CreateTargets()
    $count = 10
    For $i = 0 to Ubound($ziele) -1
    $ziele[$i][0] = Random(1, @DesktopWidth - 67, 1)
    $ziele[$i][1] = Random(1, @DesktopHeight - 137, 1)
    $ziel[$i] = GUICtrlCreatePic(@ScriptDir & "\data\ziel.jpg", $ziele[$i][0], $ziele[$i][1], 66, 66)
    Next
    EndFunc

    [/autoit]
  • dlls für berechnungen

    • yxyx
    • 6. Juni 2010 um 00:50
    Zitat


    Und den Quellcode zum Tic Tac Toe gibts NOCH nicht, damit yxyx ein bissl nachdenken muss


    ja das is klar :D
    naja idee hab ich schon nur iwie will das programm wenn ich was änder die änderungen nich übernehmen

  • dlls für berechnungen

    • yxyx
    • 5. Juni 2010 um 23:32

    kling interessant :D

Spenden

Jeder Euro hilft uns, Euch zu helfen.

Download

AutoIt Tutorial
AutoIt Buch
Onlinehilfe
AutoIt Entwickler
  1. Datenschutzerklärung
  2. Impressum
  3. Shoutbox-Archiv
Community-Software: WoltLab Suite™