1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Love:2Dゲームエンジンその2

Posted at

02:png画像表示まで
環境:Mac OSX 10.7.5 Love2Dインストール済み。

ファイル配置
作業ディレクリに以下を配置。

kobito.1418562225.257699.png

main.lua

main.lua
--load Image
function love.load()
   gpz = love.graphics.newImage("gpz.png")
   --width = gpz:getWidth()
   --height = gpz:getHeight()
   w650 = love.graphics.newImage("w650.png")

end
--draw
function love.draw()
	love.graphics.setColor(0, 255, 123);
 	love.graphics.print("I love2d and my Bikes", 10, 10)
 	love.graphics.draw(gpz, 30, 30)
 	love.graphics.draw(w650, 300, 300,0,0.5,0.5)
end

pngはお好みで

作業ディレクトリより、以下コマンドを発行

cmd
zip -r ../${PWD##*/}.love *

実行するとこんな感じです。

kobito.1418563465.363662.png

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?