This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Woodside235's profile picture

[Game] Avoidance like game

Started by Woodside235, 07 February 2013 - 03:46 PM
Woodside235 #1
Posted 07 February 2013 - 04:46 PM
This is probably the most advanced program I've ever written. It's not exactly the cleanest of code but I thought I'd share it anyway.

Video of (somewhat) current version: https://www.dropbox....amethingy81.wmv
The song in the video is "Theme from 'Mr. Broadway'" from The Dave Brubeck Quartet, if you're wondering.

Videos of older versions: http://www.youtube.c...eature=view_all

It began with me messing with the Parallel api. I've made grids that you can move a character around in before but I decided to add enemies that move independently from the character. Then I pretty much ran with it from there.

Pastebin for the installer: http://pastebin.com/cNAWjUWz

Pastebin for the main code: http://pastebin.com/XZxgjeNs

Pastebin for the blank highscore file: http://pastebin.com/g4a2C28K

Pastebin for the credits file: http://pastebin.com/iKsjmYjd

How to install it:

If you have the HTTP API enabled
Run the command "pastebin get cNAWjUWz installer".
Run installer.
OR
Create a new file and name it whatever you want. Paste in the code from the installer pastebin above.
Run the program.

If you don't have the HTTP API enabled
Create 3 files ingame, name one "credits", another "hs_0" and the third whatever you want. Open them in your text editor of choice (I use notepad++). Paste the code from credits file into "credits", from the highscore file into "hs_0", and from the main file to whatever you named it.
Run the main file.

EDIT: I'd also like to point out I'm not finished with it. I've yet to really balance the different difficulties and make it so you can enter in your name for the high scores.

EDIT2: I forgot to test the failsafes for missing files. They work sorta, though. If you run the main program and nothing happens then you've done something wrong with the files. Double check the names of them. They are case sensitive.

EDIT3: Fixed the failsafes.
Sorry moderators. I'm forgetful and OCD about fixing mistakes.

EDIT4: Updated it a bit. Now you're able to put your name in if you beat a highscore.

EDIT5: Made an installer.
NeptunasLT #2
Posted 09 February 2013 - 01:55 AM
Cool.
Sammich Lord #3
Posted 09 February 2013 - 02:02 AM
You could write a easy installer to download the files and set everything up for ease of use.
Woodside235 #4
Posted 09 February 2013 - 09:02 AM
You could write a easy installer to download the files and set everything up for ease of use.

Done.
redeye83 #5
Posted 09 February 2013 - 09:07 AM
wow that looks really good. Might have to add this to my arcade I will be building at some point.
NeptunasLT #6
Posted 09 February 2013 - 10:56 AM
Love this game :)/>
imef #7
Posted 09 February 2013 - 12:24 PM
Quite a nice game!
I like the blinking when you select something in a menu.