punni01
(punni01)
July 31, 2024, 2:48pm
#1
Version 1 KF Framework
The Module
Here are the function you can currently use in KF:
position : {x,y},
size : {x,y},
color_rgb : {0,0,0},
looped : bool
id : string
wait_time : integer
two_dimentional(x, y)
three_dimentional(x, y, z)
clear()
line
rect(position, size, color_rgb)
collision(object, object2)
velocity(object, velocity)
position(object, position)
image(position, size, id)
image_button(position, size, id)
animation_frames(position, size, ids, wait_time, looped)
setup:
Known issues and bugs
Collision is really weird. sometimes you can walk mid air wven if an object isnt there.
(it would be appreciated if you take time time to reply and help me solve the issue. thanks.)
1 Like
It looks cool, but can you post some examples of how it works? What do you mean by drawing on a frame or window?
punni01
(punni01)
July 31, 2024, 2:58pm
#3
Sure i can do that here is a demo of a 3d spinning cube
punni01
(punni01)
July 31, 2024, 2:59pm
#4
ignore the framerate its my recording software.
Awesome! It reminds me of three.js for rendering 3d stuff in websites! Is it possible to work with animatable 2D, say triangles?
You know web chart (taken from online website, credits: Zoho)
So like, can it animate and change those lines?
punni01
(punni01)
July 31, 2024, 3:03pm
#6
you can draw lines yes but not polygons or triangles yet. but if you want to make a game then you actually can make animations frames but i dont think that is related.
1 Like
punni01
(punni01)
July 31, 2024, 3:26pm
#7
OK i made a really simple one
1 Like
Nice! Going to use it with my line drawing needs.