Bullet Surfing - Made by Andy (?)
I'm not Andy.
Search found 28 matches
- Tue May 02, 2017 3:48 pm
- Forum: General
- Topic: Ludum Dare 38
- Replies: 7
- Views: 8046
- Wed Apr 26, 2017 12:59 pm
- Forum: Support and Development
- Topic: Need help for my loader...
- Replies: 6
- Views: 4746
Re: Need help for my loader...
If you have level.lua file, try putting quotes around level parameter in the require command:
http://lua-users.org/wiki/ModulesTutorial
Code: Select all
Map = require "level"
- Tue Apr 25, 2017 9:32 pm
- Forum: Support and Development
- Topic: [solved] Referencing game object from collision detection shape
- Replies: 1
- Views: 1965
Re: Referencing game object from collision detection shape
Figured it out! HardonCollider has another way of checking for collisions. Each shape in HC has a collidesWith() method. Using it instead of HC.collisions() removes the need to have references to game objects from collision shapes. Also, I learned how to remove elements from tables while using the L...
- Tue Apr 25, 2017 1:04 pm
- Forum: Support and Development
- Topic: [Solved]Collision with map doesnt work
- Replies: 4
- Views: 3880
Re: Collision with map doesnt work
What I mean is that my changes seem to work, but it's likely there are better ways of doing this that I haven't learned yet.
- Mon Apr 24, 2017 8:27 pm
- Forum: General
- Topic: how can i make a .love file?
- Replies: 3
- Views: 3215
Re: how can i make a .love file?
Check out this thread in the Support and Development forum:
https://love2d.org/forums/viewtopic.php?f=4&t=451
Basically just zip the content of your project directory and rename the .zip extension to .love.
https://love2d.org/forums/viewtopic.php?f=4&t=451
Basically just zip the content of your project directory and rename the .zip extension to .love.
- Mon Apr 24, 2017 6:10 pm
- Forum: Support and Development
- Topic: [Solved]Collision with map doesnt work
- Replies: 4
- Views: 3880
Re: Collision with map doesnt work
Seems like you are only checking the top left corner of your player for collisions. Here's code that checks all four player corners before updating player position. I'm pretty new to Lua and Love, so take this with a grain of salt. (.love is attached) function getMapTileFromWorldCoord(x, y) return m...
- Mon Apr 24, 2017 1:22 pm
- Forum: General
- Topic: mouse position problem
- Replies: 4
- Views: 4140
Re: mouse position problem
but the number wont change when i move the mouse Try this as your whole main.lua program. Printed values will update when the mouse cursor is inside the game window: function love.draw() mousepos_x = love.mouse.getX() mousepos_y = love.mouse.getY() love.graphics.print(mousepos_x .. ", " ....
- Mon Apr 24, 2017 12:59 pm
- Forum: Support and Development
- Topic: [solved] Referencing game object from collision detection shape
- Replies: 1
- Views: 1965
[solved] Referencing game object from collision detection shape
I'm new to Lua and I am new to gamedev... I have a base class for all visible game objects that handles some of the update and all of drawing that covers screen wrapping. I am trying to use HardonCollider (HC) to improve collision detection. The base GameObject class constructor is passed a global H...
- Sun Apr 23, 2017 6:04 pm
- Forum: Support and Development
- Topic: [solved] HardonCollider module not found
- Replies: 6
- Views: 4053
Re: HardonCollider module not found
You are correct. I figured out how to watch an expression in ZeroBrane and HC is definitely not nil.
Looks like the tutorial is out of date with the code.
Thanks for your help!
Looks like the tutorial is out of date with the code.
Thanks for your help!
- Sun Apr 23, 2017 5:34 pm
- Forum: Support and Development
- Topic: [solved] HardonCollider module not found
- Replies: 6
- Views: 4053
Re: HardonCollider module not found
@bartbes. The error I'm actually getting is "main.lua:42: attempt to call method 'addCircle' (a nil value)". I'm thinking it's because HC is nil. I renamed the directory to all lower-case "hardoncollider". When I type HC = require 'hardoncollider' into ZeroBrane's console, I get ...