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: 3 days 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 (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-02-04T12:23:48.000Z (over 7 years ago)
- Last Synced: 2024-10-31T11:12:16.586Z (5 days 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
- awesome-love2d - Sölar - A fairly simple solar system simulator. (Drawing)
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
```