瀏覽代碼

changed the look and fixed bugs

tags/earlywindows
Madiwka3 3 年之前
父節點
當前提交
f89f660953
共有 2 個檔案被更改,包括 15 行新增0 行删除
  1. +4
    -0
      entities/ship/ship.lua
  2. +11
    -0
      readme.md

+ 4
- 0
entities/ship/ship.lua 查看文件

@@ -40,7 +40,9 @@ function ship:update(dt)
end
if love.keyboard.isDown('s') then
self.speed = math.sqrt(self.dx^2 + self.dy^2)
if self.speed > 0 then
self.speed = self.speed - 0.5
end
self.dx = math.cos(self.vector) * self.speed
self.dy = math.sin(self.vector) * self.speed
end
@@ -50,6 +52,7 @@ function ship:update(dt)
self.dx = math.cos(self.vector) * self.speed
self.dy = math.sin(self.vector) * self.speed
end
--[[
if love.keyboard.isDown('left') then
self.dx = self.dx - 0.5
end
@@ -62,6 +65,7 @@ function ship:update(dt)
if love.keyboard.isDown('down') then
self.dy = self.dy + 0.5
end
]]--
print(self.speed)
--[[


+ 11
- 0
readme.md 查看文件

@@ -0,0 +1,11 @@
#Nuclear Gravity (name subjecct for change)

Have you ever used gravity to escape to your base when your spaceship's fuel runs out? no? well you should




In this new game you do exactly that. WASD controls camera, everything else is done via the mouse button.


To launch the game, use debuggame.sh. Lua is required

Loading…
取消
儲存