Search found 3 matches

by Accelerator
Thu Oct 24, 2019 9:16 pm
Forum: Support and Development
Topic: attempt to index local 'game' (a nil value)
Replies: 4
Views: 4790

Re: attempt to index local 'game' (a nil value)

Here is the full Brick.lua code as requested in order to help me solve this error. Brick = Class{} -- some of the colors in our palette (to be used with particle systems) paletteColors = { -- blue [1] = { ['r'] = 99, ['g'] = 155, ['b'] = 255 }, -- green [2] = { ['r'] = 106, ['g'] = 190, ['b'] = 47 }...
by Accelerator
Wed Oct 23, 2019 10:04 pm
Forum: Support and Development
Topic: attempt to index local 'game' (a nil value)
Replies: 4
Views: 4790

attempt to index local 'game' (a nil value)

(Firstly, i barely understand how to fix errors in Love2D, so a little assistance in helping me solve this bug that completely OOFs my program would be a really nice treat for me. This is src (source) code for a copy of a game called 'Breakout' and this is the code for developing the bricks. Here's ...
by Accelerator
Wed Oct 02, 2019 9:58 pm
Forum: Support and Development
Topic: making a pause function
Replies: 2
Views: 4378

making a pause function

I am trying to make a replica of Flappy Bird. One part of the assignment is to make a pause function. I have implemented one but it does not work in the game. Here is the code. PauseState = Class{__includes = BaseState} function PauseState:init() self.timer = 0 self.enterParams = {} end function Pau...