Reply to thread
GBAtemp.net - The Independent Video Game Community
Search
Search titles only
By:
Search titles only
By:
Reply to thread
GBAtemp.net - The Independent Video Game Community
Home
Log in
Terms & Rules
Donate
Forums
New posts
Search forums
Groups
Public Events
New
New posts
New resources
New blog entries
New profile posts
New blog entry comments
New threadmarks
Latest activity
Cheats
Cheat Codes Add and Request group
The Legend of Zelda: Tears of the Kingdom cheat codes
Pokémon Legends: Arceus cheat codes
Xenoblade Chronicles 3 cheat codes
Fire Emblem Engage cheat codes
Request a cheat...
Tutorials
Nintendo Switch tutorials
Nintendo 3DS tutorials
Nintendo Wii U tutorials
Reviews
Overview
Official reviews
Downloads
Latest reviews
Search resources
Blogs
New entries
New comments
Blog list
Search blogs
Chat
Top chatters
Search
Search titles only
By:
Search titles only
By:
Log in
Register
New posts
Search forums
Log in
Register
Home
Forums
PC, Console & Handheld Discussions
Nintendo 3DS
[Release] - LövePotion - LÖVE API for 3DS Homebrew - BETA
Menu
Install the app
Install
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Jwiz33" data-source="post: 5731233" data-attributes="member: 350014"><p>I am a noob in Love, but I want to start learning it(I know bits of LUA)</p><p>First of all, I found this sample code on an online tutorial, what would I do to make it run on a 3DS? I get a black screen when running it currently.</p><p>[CODE]function love.load()</p><p>hero = {} -- new table for the hero</p><p>hero.x = 300 -- x,y coordinates of the hero</p><p>hero.y = 450</p><p>hero.speed = 100</p><p>end</p><p></p><p>function love.update(dt)</p><p>if love.keyboard.isDown("left") then</p><p> hero.x = hero.x - hero.speed*dt</p><p>elseif love.keyboard.isDown("right") then</p><p> hero.x = hero.x + hero.speed*dt</p><p>end</p><p>end</p><p></p><p>function love.draw()</p><p>-- let's draw some ground</p><p>love.graphics.setColor(0,255,0,255)</p><p>love.graphics.rectangle("fill", 0,465,800,150)</p><p></p><p>-- let's draw our hero</p><p>love.graphics.setColor(255,255,0,255)</p><p>love.graphics.rectangle("fill", hero.x,hero.y, 30,15)</p><p>end</p><p>[/CODE]</p><p>Thanks for your help!</p></blockquote><p></p>
[QUOTE="Jwiz33, post: 5731233, member: 350014"] I am a noob in Love, but I want to start learning it(I know bits of LUA) First of all, I found this sample code on an online tutorial, what would I do to make it run on a 3DS? I get a black screen when running it currently. [CODE]function love.load() hero = {} -- new table for the hero hero.x = 300 -- x,y coordinates of the hero hero.y = 450 hero.speed = 100 end function love.update(dt) if love.keyboard.isDown("left") then hero.x = hero.x - hero.speed*dt elseif love.keyboard.isDown("right") then hero.x = hero.x + hero.speed*dt end end function love.draw() -- let's draw some ground love.graphics.setColor(0,255,0,255) love.graphics.rectangle("fill", 0,465,800,150) -- let's draw our hero love.graphics.setColor(255,255,0,255) love.graphics.rectangle("fill", hero.x,hero.y, 30,15) end [/CODE] Thanks for your help! [/QUOTE]
Insert quotes…
Verification
Post reply
Home
Forums
PC, Console & Handheld Discussions
Nintendo 3DS
[Release] - LövePotion - LÖVE API for 3DS Homebrew - BETA
General chit-chat
Help
Users
Settings
Notifications
Miscellaneous
Inverse message direction
Display editor on top
Enable maximized mode
Display images as links
Hide bot messages
Hide statuses
Hide chatter list
Show messages from ignored users
Temporarily disable chat
Receive mention alerts
Sound notifications
Normal messages
Private messages
Whisper messages
Mention messages
Bot messages
Desktop notifications
Normal messages
Private messages
Whisper messages
Mention messages
Bot messages
Options
Options
View top chatters
AncientBoi
Loading…
BigOnYa
Loading…
K3Nv2
Loading…
Xdqwerty
Loading…
what are you looking at?
@
BigOnYa
:
I didn't see any kissing and loving, so prob not
+2
17 minutes ago
@
K3Nv2
:
True hawks have more pride
+1
16 minutes ago
@
AncientBoi
:
16 minutes ago
@
AncientBoi
:
[awaits K3Nv2's remarks for me]
15 minutes ago
@
K3Nv2
:
@AncientBoi
, would be a better lover to luke he knows how to get in personal space better
14 minutes ago
@
AncientBoi
:
[sips my
]
13 minutes ago
@
BigOnYa
:
The other night was watching tv in my screened in porch, and heard something walking on my porch roof, thought maybe it was a raccoon, so I grabbed my rifle and went out to look, it was just a duck, lol
+1
13 minutes ago
@
K3Nv2
:
Shoot the duck free meal
+3
13 minutes ago
@
BigOnYa
:
Not allowed here in Ohio without Duck hunting permit, n it not in season yet.
12 minutes ago
@
K3Nv2
:
Just say it was trespassing and you thought it was ancientboi
+1
12 minutes ago
@
AncientBoi
:
lol
12 minutes ago
@
BigOnYa
:
We can shoot racoon, possums, skunks, cayottes tho
+1
11 minutes ago
@
AncientBoi
:
I can shoot guys
+2
9 minutes ago
@
BigOnYa
:
Not from more than 2 feet tho
+1
9 minutes ago
@
K3Nv2
:
You confuse shooting for milking
+3
9 minutes ago
@
K3Nv2
:
@AncientBoi
, hasn't shot anything since 1938
+2
8 minutes ago
@
AncientBoi
:
7 minutes ago
@
AncientBoi
:
I think that was "The great depression" time
6 minutes ago
@
BigOnYa
:
It like one of those fake guns, that shoot, then a flag comes out and says, "splash"
+2
6 minutes ago
@
K3Nv2
:
Yeah a world War wasn't going on or anything
6 minutes ago
@
K3Nv2
:
Americans lied about camps for propaganda
5 minutes ago
@
Xdqwerty
:
@AncientBoi
, where is your gun at?
2 minutes ago
@
K3Nv2
:
I thought he already showed you his gun
1 minute ago
@
BigOnYa
:
"This is my rifle, this is my gun. This is for fighting, this is for fun." - Full Metal Jacket
+1
1 minute ago
@
AncientBoi
:
We actually said that in Boot Camp, waaay before the movie
A moment ago
Submit
@
AncientBoi
:
We actually said that in Boot Camp, waaay before the movie
A moment ago
Chat
4