Jump to content

snake (Survival!)


Xand3r
 Share

Recommended Posts

LOL.... i don't know how but it looks like i double posted :|... sry!!!!(mod pls del the other :P )

lets see how much u cand handle it :)

p.s: i only managed to hold on for 10.96 secs :)

snake.rar

Edited by alexmadman

Only two things are infinite, the universe and human stupidity, and i'm not sure about the former -Alber EinsteinPractice makes perfect! but nobody's perfect so why practice at all?http://forum.ambrozie.ro

Link to comment
Share on other sites

Nice idea, but it crashes all the time for me (every down move) - AutoIt 3.2.49.

P.S

And as seguestion - make the window bigger, there is no room for big snake :) - or it's not growing yet?

 

Spoiler

Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1

AutoIt_Rus_Community.png AutoIt Russian Community

My Work...

Spoiler

AutoIt_Icon_small.pngProjects: ATT - Application Translate Tool {new}| BlockIt - Block files & folders {new}| SIP - Selected Image Preview {new}| SISCABMAN - SciTE Abbreviations Manager {new}| AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize Program

AutoIt_Icon_small.pngUDFs: OnAutoItErrorRegister - Handle AutoIt critical errors {new}| AutoIt Syntax Highlight {new}| Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF
 
AutoIt_Icon_small.pngExamples: 
ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation Demo

Like the Projects/UDFs/Examples? Please rate the topic (up-right corner of the post header: Rating AutoIt_Rating.gif)

* === My topics === *

==================================================
My_Userbar.gif
==================================================

 

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

Link to comment
Share on other sites

I'm getting the crash within one second of running the program too. However, looks like it's going to be a great program once it works!

I like seeing somewhat original things on this forum (I think snake has been done once before, but not with prospeed)... all these web browsers and notepad replacements... sigh...

My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]
Link to comment
Share on other sites

Its not a conventional snake game, it just adds snake "heads" to the end until you die to see how long you last. Greate game, I like it. And is a good example of how to use prospeed! I didn't really get into prospeed until I found this game. Nice and simple!

Link to comment
Share on other sites

Its not a conventional snake game, it just adds snake "heads" to the end until you die to see how long you last.

Really? I don't get that... What happens for me is that it starts with a snake that is two circles long and then I control the snake for several seconds and then AutoIt crashes. (I did mange to die once by going straight up though... .78 second survival!)

EDIT: Btw, the snake stays two circles long the whole game on my computer...

Edited by Piano_Man
My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]
Link to comment
Share on other sites

I got a crash ... subscript used with non-array variable when moving my "snake" on the inside...I mean....Bha deci :)) pe romana e mai simplu. Cand am mers cu rama si am incercat strategic spre interior sa fac patrate pana mor atunci cam la a 2-a ocolire inspre interior mi-a dat crashu :) in rest daca nu merg spre interior nu imi da...weird :P

Link to comment
Share on other sites

crashes if I let it get near any of the sides (without touching them).... sometimes.

no real error info:

>Running:(3.2.4.9):C:\Program Files\AutoIt3\SciTE\..\autoit3.exe "C:\Documents and Settings\Ken\Desktop\New Folder\snake.au3"

!>17:37:51 AutoIT3.exe ended.rc:-1073741819

+>17:37:52 AutoIt3Wrapper Finished

>Exit code: -1073741819 Time: 7.947

My Projects - WindowDarken (Darken except the active window) Yahsmosis Chat Client (Discontinued) StarShooter Game (Red alert! All hands to battlestations!) YMSG Protocol Support (Discontinued) Circular Keyboard and OSK example. (aka Iris KB) Target Screensaver Drive Toolbar Thingy Rollup Pro (Minimize-to-Titlebar & More!) 2D Launcher physics example Ascii Screenshot AutoIt3 Quine Example ("Is a Quine" is a Quine.) USB Lock (Another system keydrive - with a toast.)

Link to comment
Share on other sites

Hello, I am currently fixing up my GUItar Hero project which uses prospeed. I've found out that when it returns:

"!>AutoIT3.exe ended.rc:-1073741819", this means that you are using a prospeed function on a variable which isn't a sprite.. This usually happens with stuff like this:

For $i = 0 To UBound($MySpriteArray)-1
    If HasSpriteArrived($MySpriteArray[$i]) = 1 Then ;...
NextoÝ÷ ØÌ ¹ë,Ëajܨ¹ªÞºÈ§©Ú®¶²ÂÊ'µ¨§²Ø^²âµç(ÚèÈhÁƧʬ¶bµúèÊÚ²§È¦¦®±æ®¶­sdf÷"b33c¶ÒFòT&÷VæBb33c´×7&FT'&Ó¢bb33c´×7&FT'&²b33c¶ÒfÇC²fwC²gV÷C²gV÷C²FVà¢b57&FT'&fVBb33c´×7&FT'&²b33c¶ÒÒFVâ²ââà¢VæF`¤æWoÝ÷ Ù8b²Z(§¥z-w%¹×­éèÊk×¢{k¢[0ØbØ^jºÚÈ   l¢Æ²#§¶ÚzW­y«)®+^جmë-i×b©è¶«)Þ¶­Â)ejË.­ëazö«¦åzËkx"±é©·&®¶­sdFVÆWFU7&FRb33c´×7&FUf"¢b33c´×7&FUf"ÒgV÷C²gV÷C°

These problems might not be the problems within your script, but I'm guessing it is. If I have more time later I will look over the script quickly.

Kurt

Awaiting Diablo III..

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...