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

[lua]Game not working

Started by ikke009, 31 January 2013 - 10:38 PM
ikke009 #1
Posted 31 January 2013 - 11:38 PM
I'm working on a game in which you have to shoot baddies. It works fine untill you level up for the first time, pick a ship, and get into the next level, then it draws the headers and ship one time and it freezes.
I have no idea what's causing this, so if someone can look into my code and see what's up, I would very much appreciate it.
[[link has been snipped away :)/>]]
On a side note, since the code is nearly 1k lines long, I'll try to make it easier for you. I suspect the problem lies somewhere in one of the following functions
level1()
level2()
playerShipUpdate()
mainGame()

If the problem isn't clear, try running the program yourself, you should run into it soon enough.
ikke009 #2
Posted 01 February 2013 - 04:49 AM
Fixed it.. Turned out I missed my update timer while running other functions, so I had to start a new timer
TheOddByte #3
Posted 02 February 2013 - 10:32 AM
What is this "game" of yours?
Is there so we can test yet?
ikke009 #4
Posted 03 February 2013 - 05:47 AM
Im working on more content atm but im hoping to release it soon