Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

westin444

Members
  • Posts

    723
  • Joined

  • Last visited

    Never

westin444's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. double rub[] = {23.0, -102.1, 88.23, 111, 12.02, 189.119, 299.88};[/font] double dub[] = {1, 2, 3, 4, 5, 6, 7, 8, 9};[/font] Write a single line of code (using arraycopy) that will result in dub looking like this: {1, 2, 3, 4, 111, 12.02, 189.119, 8, 9} System.arraycopy(rub,3,dub,4,3); //Copy 3 elements from rub starting at index 3 into dub starting at index 4. double[] zz, top = {12.1, 13.1, 14.1, 15.1, 18};[/font] zz = top; zz[2] = 99; top[3] = 100.2; Show what “both” arrays would look like at the completion of the above code. zz and top = {12.1,13.1,99,100.2,18}; //Since arrays are actually object references, so setting zz to top results in a reference. char[] a, b;[/font] a = “Groovy dude”.toCharArray( ); b = “I like this”.toCharArray( ); System.arraycopy(a, 1, b, 0, 4); What do the two arrays look like at the completion of this code? a = {G,r,o,o,v,y, ,d,u,d,e} b = {r,o,o,v,k,e, ,t,h,i,s} //Copies "roov" from Groovy into array b. Assume the array myArray in #12 has been correctly sorted. What would be printed with the following? System.out.println( Arrays.binarySearch(myArray, 56) ); System.out.println( Arrays.binarySearch(myArray, 102) ); Where is #12? What does the following print? int xc[] = {123, 97, -102, 17};[/font] int pk[] = {123, 79, -102, 17};[/font] int gs[] = {123, 97, -102, 17};[/font] System.out.println( Arrays.equals(xc, pk) + “\n” + Arrays.equals(xc, gs)); false, true Since the _contents_ of the array xc != pk, and the contents of xc and gs are the same.
  2. Ok well I wasn't sure. My suggestion would be to use some type of speed based system. A certain amount, say 5 is taken from your current rate every loop, and every loop 'W' is pressed, 6 is added. Then at the end you simply add the speed to your current position.
  3. What I think he may be asking for is simply making a smooth transition from tile to tile. EX: The entity doesn't simply jump between tiles, it has to move over to the next one pixel by pixel, yet pressing a movement key only once will move you a whole tile. That's my best guess.
  4. westin444

    List of Donators

    Just give them this link: [http://www.touchofdeathforums.com/smf2/index.php?action=mlist;sa=search;search=Donator](http://www.touchofdeathforums.com/smf2/index.php?action=mlist;sa=search;search=Donator) xD
  5. I would have entered, but it was during the school year, so no time. Ehhh… I really should do more programming with eclipse and less on my own random projects.
  6. And the people that can are generally to lazy to actually do so.
  7. I'm back again, though I'm not sure who remembers me. I just recently got Windows again so I could play some games, and decided to come back to eclipse. The languages I know the most in right now are probably VB6, C++, and Java. I wouldn't call myself expert, but I'm more than capable it all of them. Right now I do mainly Java, which I use to work on a game engine, (so I know graphics, networking, and all that jazz), in C++ I know networking and a little bit of graphics. VB6, I'm familiar with the EO engine, and know enough of DirectDraw to add things to that. In addition I know PHP, HTML, and CSS to some extent. Regarding payment, I really only accept payments via PayPal, and will only do so once you are satisfied with my work. You'll get a closed source test engine, and when I'm paid, the actual source. I'll fix any bugs caused by my code, and also may end up fixing other bugs, if they get in my way. (I'll make sure to ask you about these.) If you want me to comment my code extensively just ask, and I'll do so. Short Version: I know… VB6 (General, DirectX) Java (General, Networking, OpenGL & Java2D) C++ (General, Networking) PHP (General, MySQL, GD) HTML & CSS I'll give you an estimate beforehand, and negotiate a final price after I'm finished. You get a no source code test to see if it works. I fix any bugs that are caused by my code for free. Just to make it easier on both of us I require plenty of details on what you want. You can contact me at my E-mail: [email protected], or on here. (I check my email more often) Some VB6 work I dredged up from on of my older posts: >! ![](http://www.freemmorpgmaker.com/files/imagehost/pics/b8e0b103a3bb90bcad3d1373615ff406.jpg) >! ![](http://www.freemmorpgmaker.com/files/imagehost/pics/7b40327ffd0c364c56d0ca3305b182cb.jpg) ![](http://www.freemmorpgmaker.com/files/imagehost/pics/d77bf966826ddabc36094000fdf33308.jpg) If you want Java examples, or anything besides VB6 just ask. I figure most don't care about the other languages though.
  8. This code seems to be working for me. I think I might have made some changes to it.. http://pastie.org/2815489
  9. @Rithy58: > I'm stealing Origin's AI system for my VB.Net AI and also using 314piwm for my Java AI. > Thanks for that. There might be an error in that code, at the beginning of the findPath command. I have the row and col values flipped (fail)
  10. [http://aichallenge.org/starter_packages.php](http://aichallenge.org/starter_packages.php) > You will need to download the tools in addition to the starter pack. Choose [Windows](http://aichallenge.org/tools.zip) or [Linux / MacOS](http://aichallenge.org/tools.tar.bz2) Download that, get yourself python, and run-game-once-live or whatever is in the tools folder. If you want to use your *own* bot, then open up the script and find the code in the quotes. EX: "python ""%~dp0sample_bots\python\LeftyBot.py""" and replace with the launch code for your own: "java -cp mybot MyBot"
  11. Seeing that people were looking for A*…. Here is a snippet of AStar in use with my game engine that I converted to this. Note: This code also acts as if ants are impassible. [http://pastie.org/2802840](http://pastie.org/2802840) Its just has a static method findPath(Ants ants, Tile start, Tile end) that returns an array of tiles.
  12. You are so right. That's an epic website. unfortunately, now I'm likely to spend lots of time programming a bot for that. *sigh* Well there is a trade-off.
  13. ![](http://www.draynor.net/stat/default/male/default/314piwm.png) I've also got a quest cape.
  14. its i=FindPLayer(Name) He doesn't want to use the index arg, but rather the player's name. And he doesn't want to show his stats, but rather i's stast.
×
×
  • Create New...