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

[Game] Lasers

Started by TheOddByte, 19 December 2013 - 03:52 PM
TheOddByte #1
Posted 19 December 2013 - 04:52 PM
Lasers


Screenshots, since I know you love them :3

Oh what's this? No screenshots?!?

Don't worry, as soon as I've released the new version I'll post some screenshots.
The current version of this game is kinda sh*#ty IMO so I won't bother posting any screenshots until the new version :P/>


Downloads

pastebin get 0uygJmhJ Lasers



How to play

This game is simple, You avoid the lasers as long as you can to get the highest score as possible, And you can pick up powerups that will help you for 5 seconds, There are 3 different types of powerups, one that slows down the laser for 5 seconds, one that freezes the lasers for 5 seconds and finally the last one that let's you teleport anywhere by clicking the screen. You can control the character with the arrow keys and bring up the menu with the left CTRL.



Changelog


1.0: First release
1.1: Bug fixes
1.2: Various bug fixes

Planned Features


*Autoupdater[]
*New GUI[]
*Online multiplayer + Reworked rednet multiplayer[]
Please suggest a feature that you'd like to be added.




Feel free to give feedback even if it's negative or positive just as it is relative to the topic ;)/>

Also, Those who want can translate into their language and I'll add that into an update.

- TheOddByte
Edited on 29 June 2014 - 03:16 PM
oeed #2
Posted 19 December 2013 - 04:58 PM
I can't really try this out at the moment as I only have access to an iPad, could you briefly explain the gameplay?
TheOddByte #3
Posted 19 December 2013 - 05:06 PM
Well it is very simple. You avoid lasers and see how long you can survive. But the lasers go faster and faster so you kinda have to depend on powerups in the end.
unobtanium #4
Posted 19 December 2013 - 06:23 PM
Nice game design :D/>
Reminds me a lot of "The Worlds Hardest Game" just with multiplayer :)/>
awsmazinggenius #5
Posted 19 December 2013 - 08:43 PM
Awesome game. Are the colors at the bottom changeable, to make "texture packs" of sorts?
TheOddByte #6
Posted 20 December 2013 - 08:49 AM
Thanks for the feedback! :D/>
Can you specify a little more what colors on the bottom? Do you mean in-game? Anyway I will add more customization in the settings menu so you can change the menu colors as well ;)/>
awsmazinggenius #7
Posted 20 December 2013 - 10:08 AM
Thanks for the feedback! :D/>
Can you specify a little more what colors on the bottom? Do you mean in-game? Anyway I will add more customization in the settings menu so you can change the menu colors as well ;)/>

local theme = {
    bColor = colors.white,
	    defaultTextCol = colors.red,
	    activeBackCol = colors.red,
	    activeTextCol = colors.white,
	    headerBackCol = colors.red,
	    headerTextCol = colors.white,
}
Line 1444 through line 1451 of the program.
TheOddByte #8
Posted 20 December 2013 - 10:13 AM
Thanks for the feedback! :D/>
Can you specify a little more what colors on the bottom? Do you mean in-game? Anyway I will add more customization in the settings menu so you can change the menu colors as well ;)/>

local theme = {
	bColor = colors.white,
		defaultTextCol = colors.red,
		activeBackCol = colors.red,
		activeTextCol = colors.white,
		headerBackCol = colors.red,
		headerTextCol = colors.white,
}
Line 1444 through line 1451 of the program.
Well yeah ofcourse you can change them, I'll make a more efficient way so you don't have to change them in the code, So you just can load them from a file.
The file will have to look something like this

bColor = white
defaultTextCol = red
activeBackCol = red
activeTextCol = white
headerBackCol = red
headerTextCol = white
Since I already have a function in the GUI API that is capable to load themes from files without 'colors.' ;)/>
awsmazinggenius #9
Posted 23 December 2013 - 10:01 AM
Thanks for the feedback! :D/>
Can you specify a little more what colors on the bottom? Do you mean in-game? Anyway I will add more customization in the settings menu so you can change the menu colors as well ;)/>

local theme = {
	bColor = colors.white,
		defaultTextCol = colors.red,
		activeBackCol = colors.red,
		activeTextCol = colors.white,
		headerBackCol = colors.red,
		headerTextCol = colors.white,
}
Line 1444 through line 1451 of the program.
Well yeah ofcourse you can change them, I'll make a more efficient way so you don't have to change them in the code, So you just can load them from a file.
The file will have to look something like this

bColor = white
defaultTextCol = red
activeBackCol = red
activeTextCol = white
headerBackCol = red
headerTextCol = white
Since I already have a function in the GUI API that is capable to load themes from files without 'colors.' ;)/>

Thanks! When the OS is complete, can I modify this and put it in awsmazingOS? I would give you credit, and the modification would be so that the app loads the user's preferred colors in their user preferences panel.
TheOddByte #10
Posted 23 December 2013 - 10:45 AM
Sure, Go ahead! ;)/>
I've updated it so now you can change themes in the menu and change the nickname as well! :D/>
mibac138 #11
Posted 28 December 2013 - 10:26 AM
I've got error on line 99: attempt to index [? (a nil value)]
TheOddByte #12
Posted 28 December 2013 - 11:01 AM
I've got error on line 99: attempt to index [? (a nil value)]
Hmm.. Then there is a problem with your installation I think.. Try deleting '.Lasers_Data' and then run the executable again and let it install.
Do you have HTTP enabled? It needs to be enabled in order to install properly.
mibac138 #13
Posted 28 December 2013 - 12:13 PM
I've redownloaded everything and i've got this error: Lasers:102: attempt to index ? (a nil value)


@EDIT the same error
Edited on 28 December 2013 - 11:14 AM
TheOddByte #14
Posted 28 December 2013 - 01:26 PM
I've redownloaded everything and i've got this error: Lasers:102: attempt to index ? (a nil value)


@EDIT the same error
Derp.. I see in the code it's trying to use the API 'gui' before it's loaded..
Try deleting and downloading now and it should work ;)/>
mibac138 #15
Posted 28 December 2013 - 01:49 PM
gui:424: File didn't exist:
.Lasers_Data/Themes/Lasers
TheOddByte #16
Posted 28 December 2013 - 02:07 PM
Well.. The problem there was that it tries to load the theme before it's created xD
Try updating now and it shouldn't error..
mibac138 #17
Posted 28 December 2013 - 03:55 PM
Multiplayer isnt working: Lasers:1393: attempt to compare nil with number
TheOddByte #18
Posted 28 December 2013 - 09:00 PM
Why is everything erroring since the last update?!? D:
Hmm.. It seems I forgot to assign the players starting positions.. Well it's fixed now ;)/> ( I've tested it myself now )
Edited on 28 December 2013 - 08:01 PM
mibac138 #19
Posted 29 December 2013 - 10:03 AM
Another bug - when you hit CTRL, lasers are still going. Idk is it a bug, but probobly yes, i thinked it's pause (CTRL), but it isnt …

—–

And another one, when you are in Settings -> Change Theme and you will hit "a" the game turns off.

—–

And some propositions:

1. When you hit backspace then it will work as "< Back" button.
2. When you are in Pause menu then, if you are using arrow keys then, if you are in first option and you will hit arrow up then it will be in the last option, and vice-versa.
3. When you are in Pause menu then the counter to start the game also, stops.

For now, everything ;)/>

@Edit lol i think'd i posted 3 posts but ok … separated with "—–".
Edited on 29 December 2013 - 09:05 AM
TheOddByte #20
Posted 30 December 2013 - 05:19 PM
The first one isn't a bug, It's meant to be that way.
The second one was a small miss that's fixed now.

1: Sure I think I can work that out ;)/>
2: Well I figured that wouldn't be needed since you can use the mouse and I thought it would be nicer without it :P/>
3: This is pretty much as the so called "bug" but much easier to add, The reason this is hard to make is because the game uses alot of timers :P/>( I've added this now )
awsmazinggenius #21
Posted 01 February 2014 - 02:38 PM
(sorry for necro)
I've made a theme for this game, to get it run this shell command (you only need this once, so you can use pastebin run) after running the game for the first time:

pastebin run ywaiAf9d
Note that after you use the theme, you will need it every time you run the game, or else it will complain.

This theme would be a lot cooler if it affected the actual gameplay screen, but currently it does not. (Hellkid, is this a bug?)
TheOddByte #22
Posted 02 February 2014 - 07:27 AM
Well it isn't really a bug, I have just been to lazy to change it :P/>
And I'll go and check out your theme now :D/>
awsmazinggenius #23
Posted 02 February 2014 - 11:18 AM
Yeah, I think's it is a little crappy due to the aforementioned "bug".
JackCarterSmith #24
Posted 27 May 2014 - 08:15 PM
Good jobs, but recently the game not downloading gui API, the pastebin code had removed… Please fix it ?
Agoldfish #25
Posted 27 May 2014 - 09:13 PM
Good jobs, but recently the game not downloading gui API, the pastebin code had removed… Please fix it ?
Dude this game is months old, he probably isn't going to be continuing it.
TheOddByte #26
Posted 29 May 2014 - 06:36 PM
Good jobs, but recently the game not downloading gui API, the pastebin code had removed… Please fix it ?
Dude this game is months old, he probably isn't going to be continuing it.
That's correct :P/>
I deleted the gui api so that's why it isn't working.
TheOddByte #27
Posted 26 June 2014 - 12:59 PM
Ok, just wanted to let you all know that I reuploaded the gui API so that this will work again :P/>
I also wanted to tell you that I plan on remaking this sometime in the future, starting from scratch.