GithubHelp home page GithubHelp logo

marslander's People

Contributors

madbytede avatar philbywhizz avatar togfoxy avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

marslander's Issues

Runtime error when placing too many bases

local function InitialiseGround()
-- initialie the ground array to be a flat line

	for i = 0, gintScreenWidth do
		garrGround[i] = gintScreenHeight * 0.80
	end
	
	-- Place a single tower for testing purposes
	local randomx = love.math.random(100, gintScreenWidth - 100)
	garrObjects[randomx] = 1	-- 1 = tower
	
	-- Place bases
	local basedistance = cf.round(gintScreenWidth * 1.5,0)
	**for i = 1, 3 do**
		fun.CreateBase(2, basedistance)
		basedistance = cf.round(basedistance * 1.3,0)
	end
	
	-- Place spikes
	
end

The bolded text works fine when loop is 1,3 but runtime errors when larger than 3. Suspect terrain is not being generated far enough into the future.

Need to work out how to get more fuel.

Options:

  • you land at a base and you get paid money. You can use money to buy fuel and/or upgrades
  • you land at a base and you are given a fixed amount of fuel. This has a built in challenge that as the game progresses, a lack of fuel will become a constant concern that you can't simply buy your way out of.
  • similar to above, there are 'fuel pods' you land on top of to collect more fuel. It's really just a variation of the above

Screen resize. See comments

The TLFRES module currectly allows for resizing and scaling of the window.

The problem is that the terrain doesn't reset/redraw after the screen is resized. Need to work out how/why.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.