monoceres Posted March 6, 2008 Posted March 6, 2008 (edited) Thought I never update this...?New version! - Complete rewrite!I took a look at this project some time ago and the source looked like sh*t.So I decided to rewrite every single line and apply the things I learned since the first release.I'm actually quite proud of the result so here it goes http://monoceres.se/Uploads/autoiTron.zipControls:P1: WASDP2: Arrow up,down,left,rightBacking in menus, exiting: Esc keyNew game: SpacebarI tested this on xp in my virtual machine and it had two problems (no in game text and the floor isn't probably collision detected), but I'm not sure if it's my VM or xp so it would be great if someone running xp could confirm so I could fix it And for archive purpose, here's the old version:autoitron.rarNote: Even though the bot it rewritten it's still equally dumb as before. AI is hard! Edited August 5, 2008 by monoceres Broken link? PM me and I'll send you the file!
Uriziel01 Posted March 6, 2008 Posted March 6, 2008 (edited) Woow! Im supriesed ! This is realy simple but also really good coded script You may add some sound or graphics, but from the coding site i dont see any misteakes (meaby add some options like setting the colors and speed ?) Keep it going ! Little bugs I have founded: 1)If I manualy change the speed (change sleep's) colision detect is bugy 2)Few times after runing the script i havent the board with "Press Space" label, the whole screen was grey Edited March 6, 2008 by Uriziel01
A. Percy Posted March 6, 2008 Posted March 6, 2008 Great! But I think to use prospeed to improve graphics. Só o que posso lhe dizer, bom é quando faz mal!My work:Au3Irrlicht - Irrlicht for AutoItMsAgentLib - An UDF for MSAgentAu3GlPlugin T2 - A 3D plugin for AutoIt...OpenGl Plugin - The old version of Au3GlPlugin.MAC Address Changer - Changes the MAC AddressItCopter - A dragonfly R/C helicopter simulator VW Bug user Pinheiral (Pinewood) city: http://pt.wikipedia.org/wiki/Pinheiral
weaponx Posted March 6, 2008 Posted March 6, 2008 When I open it all that is show is a solid grey screen, no instructions or anything. Pressing space starts the game but this just seemed strange.
monoceres Posted March 6, 2008 Author Posted March 6, 2008 (edited) Thank you for your comments!Little bugs I have founded:1)If I manualy change the speed (change sleep's) colision detect is bugy2)Few times after runing the script i havent the board with "Press Space" label, the whole screen was grey1) What sleep did you test? I don't have any problems changing the sleep (The collision detection shouldn't be affacted by sleep)2) Since I don't use a grey brush it must be the background color of the GUI, maybe it was redrawn? If it's because the window was redrawn, I will fix this in next release with GUIRegisterMsg()But I think to use prospeed to improve graphics.I will definitly look into it! It looks really great!When I open it all that is show is a solid grey screen, no instructions or anything. Pressing space starts the game but this just seemed strange.That is strange, GDI should clear the screen to black after started and the text should be visible Maybe GDI didn't start up properly? Edited March 6, 2008 by monoceres Broken link? PM me and I'll send you the file!
Alek Posted March 6, 2008 Posted March 6, 2008 (edited) awsome idea i love it. bug: -if you crash into yourself you win. -if they hit head to head they both win. Edited March 6, 2008 by Alek [font="Impact"]Never fear, I is here.[/font]
weaponx Posted March 6, 2008 Posted March 6, 2008 awsome idea i love it.bug: -if you crash into yourself you win.-if they hit head to head they both win.Sounds pretty good to me, well maybe just the second part.
monoceres Posted March 6, 2008 Author Posted March 6, 2008 bug: -if you crash into yourself you win.-if they hit head to head they both win.Well the first I haven't been able to reproduce (are you sure player 1 won when he crashed into himself?) and the second is exactly like I made it Broken link? PM me and I'll send you the file!
sensalim Posted March 6, 2008 Posted March 6, 2008 Very neat. We need the bot so we can play single player . ideas: >Bot: 3 difficulties (st00pid, good, awesome) -- or 2 (good and awesome) >Lives (start with 3), get new life after x seconds alive (timer reset upon dying) >Bonuses: (common, frequent spawn) .Place Bomb...... Spell. Place a bomb nearby you (at the time of casting). Bomb acts as a wall. .Remove Bomb.. Spell. Disarms a nearby bomb (if any). (not so common) .Sticky Shoes ... Enchantment. slow yourself down for x seconds .Haste Other ..... Hex. Speed up opponent (if more than 1 opponent, speed up random opponent) for x seconds .Eraser ............ Spell. cut (erase) part of your 'tail' .Magic Mirror .... Enchantment. For x seconds, next time you get a hex, it fails & the one casted it gets that hex instead. .Steal Shoes...... Spell. Strip off opponent's enchantment (if any). If any enchantment stripped, you gain a random spell. .Transfer Hex..... Spell. Transfers one hex and its remaining duration from you (if any) to nearest opponent. .Lower IQ.......... Hex. For x seconds, next time target uses a spell or casts an enchantment, it fails. (rare spawn) .Restoration....... Rare Enchantment. For x seconds, you cannot be hexed and if you die, you will gain 1 life back. If this enchantment ends prematurely, you gain a random spell. ... you can tell I play Guild Wars
monoceres Posted March 6, 2008 Author Posted March 6, 2008 I have been woring on the bot today and it's a real pain in the ass! I'm currently working the basic survival instinct and it's quite annoying, so don't excpect to much on the IQ of the bot Really like your idea with bonuses maybe I include it in future releases! Broken link? PM me and I'll send you the file!
Delta Posted March 7, 2008 Posted March 7, 2008 Sweet game. would be cool to make it multiplayer over the net. [size="1"]Please stop confusing "how to" with "how do"[/size]
James Posted March 8, 2008 Posted March 8, 2008 That is one amazing game! If only you had made this for the AutoIt game comp! I think you should also draw the map edges because we couldn't see when it ended. Maybe some sound aswell? Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
monoceres Posted March 8, 2008 Author Posted March 8, 2008 New version, read first post Broken link? PM me and I'll send you the file!
Delta Posted March 8, 2008 Posted March 8, 2008 (edited) Slight bug with the bot.Also got this error when the bot tried to hit the floor.C:\Documents and Settings\Jim\Desktop\TRON.au3 (285) : ==> Array variable has incorrect number of subscripts or subscript dimension range exceeded.: If $grid[Ceiling(($fx2 + ($size * $fx2dir)) / $size) ][Ceiling(($fy2 + ($fy2dir * $size)) / $size) ] = True Then If ^ ERROR Edited March 8, 2008 by Deltaforce229 [size="1"]Please stop confusing "how to" with "how do"[/size]
James Posted March 9, 2008 Posted March 9, 2008 (edited) Nice! I have the same problem as Delta. I think you just need to edit where the checking of a player snake is. It's out of place slightly. Edit: There is a lot of whitespace in your code. Remove it to shorten down the script. Edited March 9, 2008 by JamesB Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
James Posted March 9, 2008 Posted March 9, 2008 Oh, the first time I played Player vs Player, this happened: Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
i542 Posted March 9, 2008 Posted March 9, 2008 Cool game nice as rest from high-graphic games... I can do signature me.
James Posted March 9, 2008 Posted March 9, 2008 While I was eating, I though about a couple of things!You should let the player(s) pick the snake coloursHighscores - Longest times played for, longest snakeChange the background colour to images/coloursPlayer(s) namesAnything else I think of I shall post here! Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now