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

[Game] Gold Rush || Update: Difficulty, Suicide key, Better parallel

Started by jesusthekiller, 06 June 2013 - 10:37 AM
jesusthekiller #1
Posted 06 June 2013 - 12:37 PM
GoldRush


This is a small (370 lines…) game that I've just created.

Goal: Collect as much gold as you can (beware of falling ceiling)!


Pastebin: Pd24Sama


Screenies:

Spoiler






License: here


Updates:

1.2:
  • Better graphics
1.3:
  • Added 4 difficulty levels
  • Added suicide key (K)
  • 1 thread less in parallel
Share your best scores in this thread :D/>
superaxander #2
Posted 07 June 2013 - 05:06 AM
Looks really nice well done!
jesusthekiller #3
Posted 07 June 2013 - 08:25 AM
Thanks! :D/>
theoriginalbit #4
Posted 07 June 2013 - 08:36 AM
Functionally its good. A few things could be tweaked to make it look better. Maybe a white $ in the gold for example, and the person arrow changing direction on the pixel "< > ^ v" also maybe allowing for monitors in code by either having a scalable map or centring the map on the monitor. Also allowing for "monitor_touch"

EDIT: oh also if you do error( "message", 0) it will print the message with no extra details such as line number and file name.

EDIT 2:
SpoilerIdea for coins (in map.print

term.setTextColor(colors.orange)
return write('$')
when defining the player table

local player = {currentChar = '^'}
when 'w' is pressed

player.currentChar = '^'
when 's' is pressed

player.currentChar = 'v'
when 'a' is pressed

player.currentChar = '<'
when 'd' is pressed

player.currentChar = '>'
in player.print

write(player.currentChar)

EDIT 3: just tested the arrow direction code, and it makes it look a lot better.
Edited on 07 June 2013 - 07:03 AM
jesusthekiller #5
Posted 07 June 2013 - 09:26 AM
Gonna look into it, thanks for ideas :P/>

I like arrow idea, "^" was intended to be head tho :P/>

EDIT: oh also if you do error( "message", 0) it will print the message with no extra details such as line number and file name.

Didn't knew that




EDIT: Everything done besides of monitor support, but going to make it it soon.
theoriginalbit #6
Posted 07 June 2013 - 09:48 AM
Gonna look into it, thanks for ideas :P/>
No problems :)/>

I like arrow idea, "^" was intended to be head tho :P/>
Well it can still be the head, just think of it as a directional head.

EDIT: oh also if you do error( "message", 0) it will print the message with no extra details such as line number and file name.

Didn't knew that
Neither did I until I read some code in bios.lua.
unobtanium #7
Posted 07 June 2013 - 02:52 PM
Hehe! Well done. 111 one my first try. However it is getting really boring and annoying if you get trapped in a small area. If you would increase the amount of falling blocks over time it would help to kill the player earlier instead of letting him go up and down for 50% of the game while waiting for a $ to spawn or a block blocks one more of his space ;D
jesusthekiller #8
Posted 07 June 2013 - 06:17 PM
Gonna add it :-) .
And maybe suicide key.
unobtanium #9
Posted 07 June 2013 - 07:23 PM
Never give up! Never surrender :P/>
Wouldnt use it unless i am in a 1x1 free space xD There allways might be a chance to get one more gold. Maybe wouldnt be possible if you increase the speed of falling ceiling blocks, but whatever :D/>
M4sh3dP0t4t03 #10
Posted 08 June 2013 - 03:58 AM
Suicide key sounds nice! I hate it when I'm stuck in a 1x1 free space. Also it would be nice to have 3 levels of difficulty(easy, middle and hard). And my first score was 107
jesusthekiller #11
Posted 08 June 2013 - 09:28 AM
Mine was 103 :P/>

I'm panning to add levels too :P/>

Note: Working on update now :ph34r:/>


Update out:
  • Added 4 Difficulty levels
  • suicide key
  • 1 thread less in parallel
unobtanium #12
Posted 08 June 2013 - 09:48 AM
Awesome! :D/>
jesusthekiller #13
Posted 08 June 2013 - 09:50 AM
My best at hardcore: 32 :P/>