Search found 234 matches

by Beelz
Mon Dec 07, 2015 4:08 am
Forum: Support and Development
Topic: Distance and Angle
Replies: 6
Views: 2512

Re: Distance and Angle

Hmm, still not what I was expecting... Here, take a look at the source: https://github.com/Beezlebub/JAZG

The function is in game.lua(line 115), and I have a temporary print in hud.lua(line 70).
by Beelz
Mon Dec 07, 2015 1:53 am
Forum: Support and Development
Topic: Distance and Angle
Replies: 6
Views: 2512

Distance and Angle

I can't figure out what I'm screwing up here... I had it working with another project, but it was between two objects instead of the mouse. function checkDis(x, y) local mx, my = lm.getPosition() local tx = mx - x local ty = my - y local angle = (math.atan2(ty, tx) / math.pi*2) local dis = ((tx^2) +...
by Beelz
Thu Dec 03, 2015 1:43 am
Forum: Support and Development
Topic: What can I do with love.graphics.point ???
Replies: 11
Views: 6246

Re: What can I do with love.graphics.point ???

I'm not exactly sure what you mean... Do you want the stars to all move around randomly, or all together? If you want them moving together I would suggest just translating the camera. Also I would tile an image of stars, as opposed to rendering hundreds of points. IMO point is only useful for things...
by Beelz
Tue Dec 01, 2015 2:35 am
Forum: Games and Creations
Topic: crossfire
Replies: 13
Views: 5964

Re: crossfire

Thank you for your feedback if you could point me towards a good tutorial for the highscore idea it would be much appreciated This is a snippet I snagged from... somewhere. Can't remember where, but here you go. Just call this function at the end of the round. function highScore(newScore) saveDir =...
by Beelz
Sun Nov 22, 2015 3:06 am
Forum: Support and Development
Topic: An idea I have, but have no idea where to start
Replies: 4
Views: 2096

Re: An idea I have, but have no idea where to start

When ya don't know where to start, go back to the beginnin'. Starting a project always seems monotonous to me... But once you get past setting most of the globals, and have the cards' images and stats loading properly, the rest will be a breeze. I'm working on a card game myself, but with only 52 c...
by Beelz
Thu Nov 19, 2015 9:14 pm
Forum: Support and Development
Topic: Obtaining body by point.
Replies: 5
Views: 2795

Re: Obtaining body by point.

I'm not sure if this is what you mean, but this is a way to identify when an object is inside a designated region.

Controls:
WASD - Green Block
D-Pad - Red Block
by Beelz
Sun Nov 15, 2015 2:22 am
Forum: General
Topic: physics library?
Replies: 3
Views: 1997

Re: physics library?

That depends what kind of game you plan on making. I find that for small projects its easier to just use the built-in physics. Larger, more complex projects I would use a library like BUMP.
by Beelz
Sun Nov 15, 2015 1:36 am
Forum: Support and Development
Topic: Constant speed in the X axis of a body
Replies: 11
Views: 6580

Re: Constant speed in the X axis of a body

Not getting into collisions... This will move you along at a constant rate:

Code: Select all

love.update(dt)
   object.x = object.x + distancePerSecond * dt
   object.y = 500
end
by Beelz
Tue Nov 10, 2015 1:47 am
Forum: Games and Creations
Topic: [Dev] RocketBox
Replies: 0
Views: 994

[Dev] RocketBox

I'd like to introduce RocketBox! Is it just another boring space game? Yes! Does it have a horrible name? Of course! And is it laggy? Most definitely! But F U all, because I made it! In all seriousness though, this is my first game I'm releasing into the wild and would love some feedback. Hell, if y...