togfoxy / marslander Goto Github PK
View Code? Open in Web Editor NEWA re-creation of the 1979 Atari classic Lunar Lander with some new game play.
License: MIT License
A re-creation of the 1979 Atari classic Lunar Lander with some new game play.
License: MIT License
Bitser seems to fall over when serialising images in a table.
Requires a tileable or procedurally generate background.
Perhaps each base needs a 'fuelqty' that is decreased when refuelling. This is more realistic and will allow the player to actually re-use bases (which is not a good way to win but might be useful when the player is in trouble).
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.
Thanks!! Documenting your contribution. :)
Kind of like level design. Need to work out distance between bases. How many bases. Altitude of bases etc.
Options:
As the player gets rewarded, the player will be able to upgrade the lander with new gear, equipment, technology, modules etc. These upgrades need some consideration but this issue is about designing the screen/GUI that will let the player do those upgrades.
Need to process the lander only when WORLD scene is active.
This assumes there is a 'right' base and a 'wrong' base.
Moving between bases quickly rewards more money for more upgrades.
Or perhaps moving quickly and efficiently already has saved fuel as a reward?
I'm thinking about a slim gauge on the left or right side of the screen - like a thermometer. Other options is to have a circular dial with a needle - like a car has.
For example:
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.