UEZ Posted May 16, 2009 Posted May 16, 2009 (edited) Here my 1st game ever. A try to remake of the arcade classical 2D game Asteroids® by Atari (1979). More information about Asteroids® here or here! Play online here Please don't link to file below directly from other websites! Downloads (2263 previously): AUTOITEROIDS v1.019 Build 2016-01-14.7z (use e.g. 7-Zip to extract archive) Only compiled version incl. needed files here: <4shared.com> or <MediaFire.com> LEGAL NOTICE: This game is an unoffical clone of the original Asteroids®game and is not endorsed by the registered trademarkand copyright owners Atari Interactive, Inc. Short description: AUTOITEROIDS is a remake of the video arcade game released in 1979 by Atari, Inc.It was one of the most popular and influential games of the Golden Age of Arcade Games.The player controls a spaceship in an asteroid field which is periodically traversed by flying saucers.The object of the game is to shoot and destroy asteroids and saucers while not colliding with either,or being hit by the saucers' counter-fire. Keys: ctrl - shoot,up - thrust,left - turn left,right - turn right,space - hyper jump Game details: game is starting with 3 asteroidsevery 10.000 points increase of level (among other things amount of asteroids + 1)every 30.000 points extra livebiggest asteroid = 20 pointsmedium asteroid = 50 pointssmallest asteroid = 100 pointsbig alien spaceship = 200 pointssmall alien spaceship = 1000 point Credits: Main code: UEZBass UDF: BrettFBass DLL: www.un4seen.comGDI+ font loader code: YashiedMenu item code: rasimSound + sound code modifications: Spiff59Font: ck! [Freaky Fonts]GetKeyboardState code: eukalyptusAtari for the original game conceptAutoIt forum for all the help and the source of knowledge Have fun UEZ Change log:2009-05-16 release of the game AUTOITEROIDS2009-05-17 thanks to Spiff59 for modification of the sound part -> now the sound is much smoother2009-05-18 adjusted collision parameters -> now much better collision detection2009-05-24 added highscore feature and fixed several bugs (RC1)2009-05-31 pre final version released (only credit intro left)2009-06-09 some bugs fixed and made some game setting modifications -> game play now smoother; also collision detection adjusted again; credit intro still in building phase :-(2009-06-11 fixed some wrong game settings and change highscore file format -> now encrypted to avoid highscore manipulation ;-). Old score will be overwritten!2009-06-13 display of level in GUI title menu was not working properly -> fixed2009-06-14 released final version but without a credit part (will come later, if I find more time)2009-06-16 minor: forgot to calculate font size when you change the window resolution (720x480 is optimized for collision detection - other window resolutions may not working properly for collision detection)2009-06-17 minor: still overlooked font size parameteres and alien spaceship shoot parameters when windows sizes <> 720x4802009-06-18 minor: some game settings added (will wait a few seconds after all asteroids have been destroyed) and added shadow at Asteroids label in About window2009-07-01 minor: last update of the game code -> explosion of human spaceship fixed (copy/paste bug), change routine for copy bmp to GUI and added fps display counter2009-12-21 minor: fixed some small bugs, replaced IsPressed() with WinAPI_GetKeyboardState function (thanks Eukalyptus), added latest Bass.dll, made game play specific modifications and changed code to be compatible with AutoIt v3.3.2.0!2009-12-29 minor: forgot to undo silly modifications and added faster GDI+ backbuffer technique (thanks to AndyG for the idea)!2011-04-12 minor: made small modifications, tried some optimizations (it is very hard to remember what I did in the code after a very long time of absence) 2011-04-29 minor: GUIRegisterMsg($WM_ERASEBKGND, "WM_ERASEBKGND") caused About window to look awful and added check for aero to place game graphic window to GUI more precise using _WinAPI_BitBlt()2011-05-13 minor: cleaned up WinAPI display settings and forgot to undo About window settings.2011-05-31 minor: speeded up game play by adding bitmaps instead of using one _WinAPI_CreateCompatibleBitmap(). I don't know why this is faster 2011-06-09 minor: changed FPS code because old code displayed too high FPS values2012-07-30 minor: changed drawline function from integer to float to avoid wobbling of asteroids and spaceship2016-01-14 minor: fixed code to run on AutoIt v3.3.14.2 when no highscore exists and changed GDI+ variable Edited January 14, 2016 by UEZ mLipok, argumentum and xan 3 Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
Valuater Posted May 16, 2009 Posted May 16, 2009 (edited) REALLY GOOD UEZ!!! It's just like the real game... movement, sounds, feel-of-control, visuals. I can even fly through the screen. I used to line up 2 rows of space ships on the pay-to-play game. I do miss the ability to shoot 4 times in a row though. I used to lay-out a blanket of bullets for the ships. Can this be added? Thanks 8) Edited May 16, 2009 by Valuater
UEZ Posted May 16, 2009 Author Posted May 16, 2009 REALLY GOOD UEZ!!!It's just like the real game.I can even fly through the screen. I used to line up 2 rows of space ships on the pay-to-play game.I do miss the ability to shoot 4 times in a row though. Can this be added?Thanks8)Thanks Valuater.Yes, you are right - the code is not working properly ($amount_of_shoots_max = 4 is already set) I put it also to my to do list UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
oMBRa Posted May 16, 2009 Posted May 16, 2009 Well Done UEZ!!, very nice game, I like the realistic movements
UEZ Posted May 16, 2009 Author Posted May 16, 2009 Well Done UEZ!!, very nice game, I like the realistic movementsThanks, the human ship movement was a lot easier than the other parts.UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
Yashied Posted May 16, 2009 Posted May 16, 2009 UEZ, good job! My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More...
Skizmata Posted May 16, 2009 Posted May 16, 2009 Amazing! 100% Amazing Thank you so much lots of great work very much to be learned from the source. An amazing demonstration! AutoIt changed my life.
UEZ Posted May 16, 2009 Author Posted May 16, 2009 UEZ, good job!Thanks.Amazing! 100% AmazingThank you so much lots of great work very much to be learned from the source. An amazing demonstration!Thanks for the feedback - currently I lost the overview over my code UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
corgano Posted May 16, 2009 Posted May 16, 2009 you should remove bullet limit to make it more authentic 0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e
UEZ Posted May 16, 2009 Author Posted May 16, 2009 (edited) you should remove bullet limit to make it more authenticI wanted to make it 1:1 as much as possible - keep it simple with all its limitations!I forgot to implement the explosion of the human space which is not an explosion of 10 pixel but breaks in several parts!I will implement it in the next release.UEZ Edited May 16, 2009 by UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
Spiff59 Posted May 16, 2009 Posted May 16, 2009 This is absolutely fantastic! Kudos, UEZ. I wonder if this would speed collision detection? ;check space ship for border collision $z = $border_limes * $object_scale If $x < -$z Then $x = $width + $z If $x > $width + $z Then $x = -$z If $y < -$z Then $y = $height + $z If $y > $height + $z Then $y = -$z
UEZ Posted May 16, 2009 Author Posted May 16, 2009 (edited) This is absolutely fantastic! Kudos, UEZ. I wonder if this would speed collision detection? ;check space ship for border collision $z = $border_limes * $object_scale If $x < -$z Then $x = $width + $z If $x > $width + $z Then $x = -$z If $y < -$z Then $y = $height + $z If $y > $height + $z Then $y = -$z Thanks for feedback. Btw, the check of the border is not the real problem but your are right UEZ Edited May 16, 2009 by UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
Spiff59 Posted May 16, 2009 Posted May 16, 2009 Thanks for feedback.Btw, the check of the border is not the real problem but your are right UEZYes, I noticed that's not the "collision" that I'd like to see happening more often That area just jumped out at me. I'm good at cleanup, but all this GDI+stuff is greek to me.How long ago did you start this?I just have to say, again, I'm flabberghasted. Extremely impressed.
UEZ Posted May 16, 2009 Author Posted May 16, 2009 (edited) Yes, I noticed that's not the "collision" that I'd like to see happening more often That area just jumped out at me. I'm good at cleanup, but all this GDI+stuff is greek to me.How long ago did you start this?I just have to say, again, I'm flabberghasted. Extremely impressed.I started it approx. 2 weeks ago but I had this in mind a long time ago (just dreamt of it).Btw, how can I set up the music speed using bass.udf (_BASS_ChannelSetAttribute?)? Because the sound of the alien starship is too slow...Thanks,UEZ Edited May 25, 2009 by UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
WideBoyDixon Posted May 16, 2009 Posted May 16, 2009 UEZ this is just totally awesome. Kudos to you my friend. Here comes 5* WBD [center]Wide by name, Wide by nature and Wide by girth[u]Scripts[/u]{Hot Folders} {Screen Calipers} {Screen Crosshairs} {Cross-Process Subclassing} {GDI+ Clock} {ASCII Art Signatures}{Another GDI+ Clock} {Desktop Goldfish} {Game of Life} {3D Pie Chart} {Stock Tracker}[u]UDFs[/u]{_FileReplaceText} {_ArrayCompare} {_ToBase}~ My Scripts On Google Code ~[/center]
Valuater Posted May 16, 2009 Posted May 16, 2009 UEZ this is just totally awesome. Kudos to you my friend. Here comes 5* WBDPosted my 5 stars too! 8)
Zedna Posted May 16, 2009 Posted May 16, 2009 Really nice UEZ!! Resources UDF ResourcesEx UDF AutoIt Forum Search
gseller Posted May 17, 2009 Posted May 17, 2009 Way Cool UEZ! Jumpy for me but looks just like the orig....
Spiff59 Posted May 17, 2009 Posted May 17, 2009 (edited) The smaller files attached below seem to behave better... Edit: I also tinkered with the definitions for the alien ship sounds to make them looping, then moved the Play() to the random statement that brings the ship out, so it's only called once. Then I put a ChannelStop in your alien_ship_reset routine. So it only starts the sound once when the ship appears and lets it loop until the ship is gone. Seems to sound real smooth with no pauses. I was playing with the control logic for the thump/thump game sounds too, so better make sure I didn;t screw it up. Anyway, it was easier to attach the changes in the whole file than paste them into this post. (Hope you don't mind me playing with your baby, I think it's pretty cool , and I guess I'm bored). Edit: Deleted attachments to free up some disk space. Edited May 17, 2009 by Spiff59
UEZ Posted May 17, 2009 Author Posted May 17, 2009 (edited) The smaller files attached below seem to behave better...Edit: I also tinkered with the definitions for the alien ship sounds to make them looping, then moved the Play() to the random statement that brings the ship out, so it's only called once. Then I put a ChannelStop in your alien_ship_reset routine. So it only starts the sound once when the ship appears and lets it loop until the ship is gone. Seems to sound real smooth with no pauses. I was playing with the control logic for the thump/thump game sounds too, so better make sure I didn;t screw it up. Anyway, it was easier to attach the changes in the whole file than paste them into this post. (Hope you don't mind me playing with your baby, I think it's pretty cool , and I guess I'm bored).Thanks Spiff59, the sound is really much smoother. I updated it (1st post)!UEZ Edited May 17, 2009 by UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
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