Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/janwerder/soelar
a fairly simple solar system simulator
https://github.com/janwerder/soelar
game-development love2d lua
Last synced: about 1 month ago
JSON representation
a fairly simple solar system simulator
- Host: GitHub
- URL: https://github.com/janwerder/soelar
- Owner: JanWerder
- License: unlicense
- Created: 2017-02-04T12:10:34.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-04T12:23:48.000Z (almost 8 years ago)
- Last Synced: 2024-08-02T06:17:10.441Z (3 months ago)
- Topics: game-development, love2d, lua
- Language: Lua
- Size: 1.95 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
## Sölar
Updated version of Sölar.
Sölar is a fairly simple solar system simulatorOriginally made by Ubermann, who gave credit to Saegor for the realtime stars algorithm.
The license is public domain (source: https://love2d.org/forums/viewtopic.php?f=14&t=11805&p=70865&hilit=s%C3%B6lar#p70790).Example:
```
function love.load()
require "stars"
require "comets"
endfunction love.update(dt)
stars:update()
if comet.e then comet:update(dt) end
endfunction love.draw()
stars:draw()
if comet.e then comet:draw() end
endfunction love.keypressed(key)
if key == "escape"
or key == "return" then
love.event.push("quit")
end
if key == "tab" or key == "c" then
comet:new()
end
end
```