Jump to content




CCRedirection

game lua

18 replies to this topic

#1 RamiLego4Game

  • Members
  • 51 posts
  • LocationSyria,Damascus

Posted 23 February 2014 - 11:33 PM

CCRedirection, Dan200 Game on ComputerCraft

This is my First Topic and the First Game

It's The Same idea of Dan200's Game, But it's 2D
Currently The Game Support Custom Levels, So i will ask NitrogenFinger To Create Level Editor

How To Play:
To Launch The Game After Downloading use "CCR/CCR 3" 'Replace 3 With Level Number'
   The Available Levels Are From 0 To 6 (Level 0 is Not Beatable)
   Blocks:
	  The (Light Gray Spaces) are Ground
	  The (Light Gray Spaces With Arrows) are Robots Start Point, Robots Just Spawns At The Start of The Game
	  The (Light Gray Spaces With X) are Exit Point For Robots
	  The (Gray Spaces) are Wall
	  The (Block Spaces) are Space
	  The (Blue or Red or Green or Yellow Spaces) are Robots

   Robots Movement:
	  The Robot Turn If He Face Another Robot or a Wall
		 The Blue and Green Robots Turns Left
		 The Red and Yellow Robots Turns Right
	  The Robot Get Deleted if He Fall To Space
	  The Robot Stops if it Stepped on Exit with The Same Color Of The Robot

   If You Clicked on Ground or Exit or Start You Will Change it To Wall

   Game Goal:
	  The Goal is To Add Needed Block To Get The Robots on Exit

   Info:
	  The Game Creates Logs At CCR/Logs
Happy Playing :D/>

Download :
pastebin get 4FwbMjUr CCRIns
And Then Launch The File
Source Code : http://www.github.co...e/CCRedirection

Change Log:
Alpha1.3A: Now There is Speed Button Near The Exit Button
Fixed Log Error (Thanks for Bomb Bloke)
Alpha1.4A: New There is Block Limit

I will Copy Official Levels Soon Copied First 6 Levels

To Run a Level Use "CCR/CCR 3" 'Replace 3 With Level Number'

ScreenShots:
Posted ImagePosted ImagePosted Image

Edited by RamiLego4Game, 01 March 2014 - 01:29 PM.


#2 Csstform

  • Members
  • 410 posts
  • LocationU.S.A.

Posted 24 February 2014 - 09:20 AM

A diamond means you are following it... I'll test it as soon as you have a pastebin.

#3 RamiLego4Game

  • Members
  • 51 posts
  • LocationSyria,Damascus

Posted 24 February 2014 - 09:56 AM

Ok, Now I'm Working On Pastebin Done
i have Startup file that loads Log API so you should Backup startup file, And Level 1,2 for Debugging use Level 3, theres no anu level to play.

Edited by RamiLego, 27 February 2014 - 06:48 PM.


#4 Csstform

  • Members
  • 410 posts
  • LocationU.S.A.

Posted 27 February 2014 - 07:33 PM

I'll take a look as soon as I get a chance. Currently, I'm out of town. Also, you should enclose the pastebin like this:
 pastebin get (code here) name
in addition, I would suggest a link.
Sample link

#5 RamiLego4Game

  • Members
  • 51 posts
  • LocationSyria,Damascus

Posted 28 February 2014 - 08:08 AM

Currently the pastebin downloads the latest installer from github and save it as CCRInstaller
And CCRInstaller downloads all the files

#6 oeed

    Oversimplifier

  • Members
  • 2,095 posts
  • LocationAuckland, New Zealand

Posted 28 February 2014 - 09:43 AM

The best way to get people to use your program is to show screenshots.

Also, I'm getting an error when I try to run it:

log:7: attempt to call nil

#7 RamiLego4Game

  • Members
  • 51 posts
  • LocationSyria,Damascus

Posted 28 February 2014 - 01:02 PM

I create fix for your Problem
You Should Delete CCR folder and reinstall the game

#8 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 28 February 2014 - 01:43 PM

That's odd, I'm not seeing any recent changes on the hub suggesting you've submitted anything in the last few hours...?

In any case I suspect it'll still error; it likely has to do with this CC-version-dependent issue. Assuming I've got it right, in CCR\log, changing line 6 to this should resolve it:

log = fs.open(sDir,fs.exists(sDir) and "a" or "w")

For me, the main script downloaded under the name "CCR" (as opposed to "CCR.lua", as it is on the hub). Hence I needed to enter eg "CCR\CCR 0" to play it.

For those wondering, the basic premise is that arrows bounce around a grid, changing direction based on tiles they pass over (think Chu Chu Rocket). They can pass through light grey spaces, turn if encountering dark grey spaces, and are lost if they move into black spaces. Your goal is to bump them into their respective X tiles.

You can turn light grey into dark grey tiles by clicking, but there doesn't seem to be a limit on how many you can flip and I can't see an obvious way to revert them once you do.

I've been able to play through all levels except 0, which appears to be unbeatable?

It appears you cannot place blocks directly in front of arrows. You can place ON arrows, however, which has the side effect of instantly pushing them forward. Speaking of which, a fast forward button would be nice.

#9 RamiLego4Game

  • Members
  • 51 posts
  • LocationSyria,Damascus

Posted 28 February 2014 - 02:39 PM

I'm Testing on CCDesk
Now i'm working on blocks limit
I will add The Log Fix, Thanks :)/>/>
Yep, At offical Block Game the level 0 is for main menu

View PostBomb Bloke, on 28 February 2014 - 01:43 PM, said:

That's odd, I'm not seeing any recent changes on the hub suggesting you've submitted anything in the last few hours...?

In any case I suspect it'll still error; it likely has to do with this CC-version-dependent issue. Assuming I've got it right, in CCR\log, changing line 6 to this should resolve it:

log = fs.open(sDir,fs.exists(sDir) and "a" or "w")

For me, the main script downloaded under the name "CCR" (as opposed to "CCR.lua", as it is on the hub). Hence I needed to enter eg "CCR\CCR 0" to play it.

For those wondering, the basic premise is that arrows bounce around a grid, changing direction based on tiles they pass over (think Chu Chu Rocket). They can pass through light grey spaces, turn if encountering dark grey spaces, and are lost if they move into black spaces. Your goal is to bump them into their respective X tiles.

You can turn light grey into dark grey tiles by clicking, but there doesn't seem to be a limit on how many you can flip and I can't see an obvious way to revert them once you do.

I've been able to play through all levels except 0, which appears to be unbeatable?

It appears you cannot place blocks directly in front of arrows. You can place ON arrows, however, which has the side effect of instantly pushing them forward. Speaking of which, a fast forward button would be nice.
As Alpha 1.3A, Now There is Speed Button Near The Exit Button
Simply Delete CCR Folder and Reinstall The Game

Edited by Lyqyd, 28 February 2014 - 05:34 PM.


#10 RamiLego4Game

  • Members
  • 51 posts
  • LocationSyria,Damascus

Posted 01 March 2014 - 05:12 PM

New Verstion, Àlpha 14A
Now with Speed button, Space Background And Centered Map
ScreenShots Updated
Please Give Me Feeeed Backkkk :( :( :(

#11 masterdisasterHD

  • Members
  • 172 posts
  • LocationThe Netherlands

Posted 06 March 2014 - 09:23 AM

i like it

Edited by masterdisasterHD, 06 March 2014 - 09:23 AM.


#12 RamiLego4Game

  • Members
  • 51 posts
  • LocationSyria,Damascus

Posted 06 March 2014 - 02:05 PM

Finally Feed Back :D :D :D :D , I Started Working On Main Menu B)

#13 TheOddByte

    Lazy Coder

  • Members
  • 1,607 posts
  • LocationSweden

Posted 09 March 2014 - 07:53 PM

Really cool, Though I've detected a bug.
When the turtles go torwards eachother and finally get at the same position one of them will turn around I think and the other one will disappear or it's at the same position as the other one.
Posted Image
Posted Image
Posted Image

#14 RamiLego4Game

  • Members
  • 51 posts
  • LocationSyria,Damascus

Posted 10 March 2014 - 04:40 PM

View PostHellkid98, on 09 March 2014 - 07:53 PM, said:

Really cool, Though I've detected a bug.
When the turtles go torwards eachother and finally get at the same position one of them will turn around I think and the other one will disappear or it's at the same position as the other one.
Posted Image
Posted Image
Posted Image
Can you send the latest log from CCR/Logs/Log#. Edit : Fixed With a Changing a Letter at Line 360 (Changing "o" to "t") Now at Alpha 1.5B
also how do you have green computer ?

Edited by RamiLego4Game, 10 March 2014 - 04:47 PM.


#15 TheOddByte

    Lazy Coder

  • Members
  • 1,607 posts
  • LocationSweden

Posted 12 March 2014 - 12:50 PM

I'm using CCEmu by tomass1996, So that's how I have a green computer :3

#16 RamiLego4Game

  • Members
  • 51 posts
  • LocationSyria,Damascus

Posted 13 March 2014 - 12:40 PM

View PostHellkid98, on 12 March 2014 - 12:50 PM, said:

I'm using CCEmu by tomass1996, So that's how I have a green computer :3
Can You Send Me The .ccemu and the launcher to my email ([email protected]) ?

#17 TheOddByte

    Lazy Coder

  • Members
  • 1,607 posts
  • LocationSweden

Posted 13 March 2014 - 03:22 PM

Uhmm.. I uploaded it to mediafire a long time ago.
Here's the topic I posted the links in: http://www.computerc...post__p__164619
Edit: Here's the original topic http://www.computerc...ccemu-launcher/

Edited by Hellkid98, 13 March 2014 - 03:28 PM.


#18 RamiLego4Game

  • Members
  • 51 posts
  • LocationSyria,Damascus

Posted 03 April 2014 - 02:50 PM

Now I Started Adding Computercraft 1.6+ Support :D

#19 RamiLego4Game

  • Members
  • 51 posts
  • LocationSyria,Damascus

Posted 29 April 2014 - 11:48 AM

My Game is Now in Computercraft since 1.63





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users