Search found 20 matches

by nickelodeon0077
Fri Mar 08, 2019 11:41 pm
Forum: Support and Development
Topic: Problem to make an Orbit (circle with sin(x) and cos(x)) [SOLVED]
Replies: 5
Views: 1930

Re: Problem to make an Orbit (circle with sin(x) and cos(x))

ingsoc451 wrote:
Fri Mar 08, 2019 3:38 am
Ignore it, it is a copy-paste error (I was searching through some github projects at the time)
I used the equation from the following page to calculate speed
https://en.wikipedia.org/wiki/Elliptic_orbit
i'm imagineted ;)
by nickelodeon0077
Fri Mar 08, 2019 1:46 am
Forum: Support and Development
Topic: Problem to make an Orbit (circle with sin(x) and cos(x)) [SOLVED]
Replies: 5
Views: 1930

Re: Proble to make an Orbit (circle with sin(x) and cos(x))

formula is (x_0, y_0) + (R1 * sin(t), R2 *cos(t)) for t= 0 to 2* PI and R1 = R2 for circle it seems like you are updating your initial points in the function foo, you probably meant "x = point.x + sin(a)" ? edit: I tried something random... rather than fixing it man thnks with your code i understoo...
by nickelodeon0077
Thu Mar 07, 2019 1:41 am
Forum: Support and Development
Topic: Problem to make an Orbit (circle with sin(x) and cos(x)) [SOLVED]
Replies: 5
Views: 1930

Problem to make an Orbit (circle with sin(x) and cos(x)) [SOLVED]

i have an problem with the algorythm of make an circle with sin and cos
when i call this algorythm i have an spiral and not a circle
pls help

an example

Code: Select all

x = 100
y = 50
point = {x = 50, y = 50}

function foo()
	a = math.atan2(y-point.y, x-point.x)
	x = x + sin(a)
	y = y + cos(a)
end
:cry:
by nickelodeon0077
Thu Feb 28, 2019 11:52 pm
Forum: Games and Creations
Topic: snake12
Replies: 6
Views: 6216

Re: snake12

Xugro wrote:
Wed Feb 27, 2019 7:10 pm
I got to level 99! :D

After level 30 or so too many points are spawning and just sitting in the middle and moving around a bit lets you finish the levels.

But it is a very interesting idea and a neat implementation. :)
;), i'll tell a glitch!!
if you still in the center you dont die!!!
by nickelodeon0077
Sun Feb 17, 2019 6:00 pm
Forum: Games and Creations
Topic: snake12
Replies: 6
Views: 6216

Re: snake12

Nice, fun, simple game. Novel idea, good execution, I like it. I could only get 4 points, though. Also, you might want to consider adding a .love download for Linux and Mac users. EDIT: New top score is 8 thank you!!! i considered upload the .love here ;) good luck -my best without code changes : 7
by nickelodeon0077
Sat Feb 16, 2019 5:16 pm
Forum: Games and Creations
Topic: snake12
Replies: 6
Views: 6216

snake12

to get acces:
https://nickelodeon0077.itch.io/snake12

a single BattleRoyale snake game
Image
Image

*the source is a little bit confused
by nickelodeon0077
Mon Feb 11, 2019 11:09 pm
Forum: Libraries and Tools
Topic: PixelFX Desinger *NEW VERSION*
Replies: 7
Views: 3773

Re: PixelFX Desinger *NEW VERSION*

It is so humbleness of you. But one more thing is that os.execute not able to get archive files. You have to put dontRemove folder inside effects folder in rar file you published. I take look at LOVE.zip. by the way I am thinking about how i gonna use it for love game jam submission. i'll take a lo...
by nickelodeon0077
Mon Feb 11, 2019 10:47 pm
Forum: Libraries and Tools
Topic: A little library for convert colors
Replies: 5
Views: 2951

Re: A little library for convert colors

It's a good try, but forum veteran Grump already beat you to it. You may want to look at his library for inspiration. Briefly going over the code, the "hex" function is not very good. There are more efficient ways to convert a hex value into RGB. For example, you can use tonumber specifically with ...
by nickelodeon0077
Mon Feb 11, 2019 10:46 pm
Forum: Libraries and Tools
Topic: A little library for convert colors
Replies: 5
Views: 2951

Re: A little library for convert colors

To be fair, this one does different things from mine - mine is (on purpose) only concerned with value ranges and function patching, not so much with different color representations. In addition to ivan's remarks, I would expect that all components are to be given in the same value range. It makes l...
by nickelodeon0077
Sun Feb 10, 2019 3:14 am
Forum: Libraries and Tools
Topic: A little library for convert colors
Replies: 5
Views: 2951

A little library for convert colors

here are my library for convert color the github link is: GITHUB LINK!!! a little example: require("colorized") love.draw() love.graphics.setBackgroundColor(hex("#fff")) --this will go turn the background into white and 1 of alpha love.graphics.setColor(rgba(255, 140, 10)) --a type of orange i think...