Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

ThaCuber

193
Posts
7
Topics
150
Followers
45
Following
A member registered Jul 07, 2020 · View creator page →

Creator of

Recent community posts

cel7 community · Created a new topic trigonometry

here are some trig utils

(= pi 3.14159265359)
(= to_rad (fn (x) (* (/ x 180) pi ) ))
(= to_deg (fn (x) (* (/ x pi ) 180) ))

a 128 floats long sine lookup table

generated using https://github.com/ppelikan/drlut

(= sin_len 128)
(= sin_lut (list
	 0.0000000000 0.0490676743 0.0980171403 0.1467304745
	 0.1950903220 0.2429801799 0.2902846773 0.3368898534
	 0.3826834324 0.4275550934 0.4713967368 0.5141027442
	 0.5555702330 0.5956993045 0.6343932842 0.6715589548
	 0.7071067812 0.7409511254 0.7730104534 0.8032075315
	 0.8314696123 0.8577286100 0.8819212643 0.9039892931
	 0.9238795325 0.9415440652 0.9569403357 0.9700312532
	 0.9807852804 0.9891765100 0.9951847267 0.9987954562
	 1.0000000000 0.9987954562 0.9951847267 0.9891765100
	 0.9807852804 0.9700312532 0.9569403357 0.9415440652
	 0.9238795325 0.9039892931 0.8819212643 0.8577286100
	 0.8314696123 0.8032075315 0.7730104534 0.7409511254
	 0.7071067812 0.6715589548 0.6343932842 0.5956993045
	 0.5555702330 0.5141027442 0.4713967368 0.4275550934
	 0.3826834324 0.3368898534 0.2902846773 0.2429801799
	 0.1950903220 0.1467304745 0.0980171403 0.0490676743
	 0.0000000000 -0.0490676743 -0.0980171403 -0.1467304745
	-0.1950903220 -0.2429801799 -0.2902846773 -0.3368898534
	-0.3826834324 -0.4275550934 -0.4713967368 -0.5141027442
	-0.5555702330 -0.5956993045 -0.6343932842 -0.6715589548
	-0.7071067812 -0.7409511254 -0.7730104534 -0.8032075315
	-0.8314696123 -0.8577286100 -0.8819212643 -0.9039892931
	-0.9238795325 -0.9415440652 -0.9569403357 -0.9700312532
	-0.9807852804 -0.9891765100 -0.9951847267 -0.9987954562
	-1.0000000000 -0.9987954562 -0.9951847267 -0.9891765100
	-0.9807852804 -0.9700312532 -0.9569403357 -0.9415440652
	-0.9238795325 -0.9039892931 -0.8819212643 -0.8577286100
	-0.8314696123 -0.8032075315 -0.7730104534 -0.7409511254
	-0.7071067812 -0.6715589548 -0.6343932842 -0.5956993045
	-0.5555702330 -0.5141027442 -0.4713967368 -0.4275550934
	-0.3826834324 -0.3368898534 -0.2902846773 -0.2429801799
	-0.1950903220 -0.1467304745 -0.0980171403 -0.0490676743
))

high level abstractions over the LUT

(= sin (fn (x)
	(= x (floor (* (/ x pi) sin_len)))
	(= x (% (+ x sin_len) sin_len))
	(nth sin_lut x)
))

(= cos (fn (x) (sin (+ x (/ pi 4))) ))

floor and nth functions necessary to use these! either supply your own implementations (nth must be 0-indexed) or use these:

(= floor (fn (x) (- x (% x 1)) ))

(= nth (fn (l i)
	(let res nil)
	(while (<= 0 i)
		(= res (car l))
		(= l (cdr l))
		(= i (- i 1))
	)
	res
))

a (somewhat convoluted) demo program:

(= init (fn () (= time 0) ))
(= keydown (fn (k) (if (is k "escape") (quit)) ))

(= trigfn (fn (f i) (* (+ 0.5 (* 0.5 (f (* (/ i width) pi)))) height) ))
(= offset (fn (x time) (% (+ x time) width) ))

(= step (fn ()
	(fill 0 0 width height " ")
	
	(let x 0)
	(while (< x width)
		(color 0x02) (put x (trigfn sin (offset x time)) "#")
		(color 0x06) (put x (trigfn cos (offset x (* time 1.5))) "#")
		(color 0x05) (put x (trigfn sin (offset x (- 0 time))) "#")
		(= x (+ x 1))
	)
	
	(= time (+ time 1))
))

it's not august 17 smh

what I just told you happens and I'm unable to jump past the bo

(1 edit)

every single time I push something

first level

hey it's me

it looks really cool but I can't even play it properly since the dogs kind of enter into a floating state, where it looks like they're jumping but they're not jumping at all, and they can't jump when in that state... it happens when I push anything at all...

still, I appreciate the gesture, thanks for making this for me :)

the music did what :D

no game is complete without settings >:)

I kind of also wanted to make this a full game while I was making it, but idk what else to add...

you can update the tool then, I assume it's not that hard, is it?

why don't you put the load sprite code along with the exporter though

(1 edit)

also why won't the exclamation mark at the corner stop flashing

yes

it currently is in my Github page under another name which I prefer not to say just in case, try finding it ig

> I don't know if the console allows for more than 2 action buttons
nope, only O and X
> maybe a combination could have worked as well
Olbap suggested that I could make it so that you hold O to play simulation and press it to open inventory I didn't like it at the time but now it seems that people find that better than scrolling down so...

move balls into goals lol

really polished and good looking, music was nice, levels are well designed, mechanics are interesting... damn this is cool

lmao I was just doing this in script 8 too

funny thing tho

Heyyy it's Nerdy Teachers! Thanks, I actually planned most of these things in the spot haha

Whenever you get a Playtris or an All-Clear (or a T-Spin in the next update- whoops leak), the thing that appears at the bottom-left corner is the sash.

Well, the biggest highscore you got shows after you lose, over in the "Highscore" thing at the corner. But yeah, I might have to make a kind of Game Over screen...


Just realized, the main.lua file is already 1200+ lines long, I need to split it up already xd

are you okay

god, how did you make this with pulp, it looks awesome just from the screenshots

damn this is a really epic game

Thanks for making a video on the game! And also thank god you didn't play 1.5 😅

Yeah, I know, will be fixed on 1.6.

Yeah, been reported of that in Discord. I'll remove the BGM for now, I think that might be the issue.

I didn't do it in this version cuz idk what pattern to add 💀

Thank you too for playing it!

yep

And if I do I'll also remove the shake crossmark, since you can now slide the slider (redundancy) to 0 to completely deactivate shake

And thanks to you for playing it! For the screen shake reduction idea I might have to add a new menu item type, "slider"

Already programmed in :)

Sure!

Damn, no problem! Thanks to you for playing my game!

lmao this is too funny

(2 edits)

I actually ended up changing it completely lmao

It's not really that much work, heck it's just a matter of changing two if statements' conditions! But yeah, I do need to explain it.

One of the combo sounds didn't seem to load properly. It can't be my problem since i doublechecked that the directories and the files exist and they all do.