Search found 11 matches

by DjPoke
Sat Mar 25, 2023 10:12 am
Forum: Games and Creations
Topic: JellyBall: Softbody Based Physics Platformer [WIP]
Replies: 6
Views: 5905

Re: JellyBall: Softbody Based Physics Platformer [WIP]

Hi,

Beautifull game ! I like how the character's body can turn on the floor with more than physics. :)
by DjPoke
Sat Mar 25, 2023 8:07 am
Forum: Games and Creations
Topic: A level editor and a minimalist GUI
Replies: 3
Views: 7742

A level editor and a minimalist GUI

Hi,

I've started writting a gui for love2d, in pure lua. It is at work in progress state.
I also made a little level editor with it.

https://github.com/DjPoke/minGUI
https://github.com/DjPoke/minLevelEditor

minLevelEditor
minLevelEditor
screenshot2.jpg (64.63 KiB) Viewed 7695 times
minGUI
minGUI
screenshot1.jpg (41.02 KiB) Viewed 7695 times
by DjPoke
Wed Mar 22, 2023 3:19 pm
Forum: Support and Development
Topic: [SOLVED] Pass a canvas (userdata) to a function
Replies: 3
Views: 796

Re: Pass a canvas (userdata) to a function

Sorry, you are right. I've not checked the right place... :)
Thank you !
by DjPoke
Wed Mar 22, 2023 3:13 pm
Forum: Support and Development
Topic: [SOLVED] Pass a canvas (userdata) to a function
Replies: 3
Views: 796

Re: Pass a canvas (userdata) to a function

Hi pgimeno,
I've checked but its not the case. This is the source code...
minGUI.zip
(3.57 KiB) Downloaded 26 times
by DjPoke
Wed Mar 22, 2023 1:41 pm
Forum: Support and Development
Topic: [SOLVED] Pass a canvas (userdata) to a function
Replies: 3
Views: 796

[SOLVED] Pass a canvas (userdata) to a function

Hi, I'm trying to pass a canvas id to a function. The canvas id is an userdata, but inside the function, it become a number. So i get an error. Sorry for the noob question but what should i do to keep my canvas id usable by my function ? function draw_9slice(num, width, height, canvas) love.graphics...
by DjPoke
Mon Apr 18, 2022 5:12 pm
Forum: General
Topic: [SOLVED]Accessing an usb pendrive
Replies: 13
Views: 5775

Re: [SOLVED]Accessing an usb pendrive

BrotSagtMist wrote: Sat Apr 16, 2022 9:14 pm Nothing of this tells you if its a thumbdrive or not. I already told you to read the connection type in /dev/disk/by-id.
But actually there is an even easier way, simply read "dmesg" and scan for "USB Mass Storage device detected".
I'll search about /dev/disk/by-id.
by DjPoke
Sat Apr 16, 2022 9:04 pm
Forum: General
Topic: [SOLVED]Accessing an usb pendrive
Replies: 13
Views: 5775

Re: Accessing an usb pendrive

Solved by executing lsblk and searching for sdbX. This doesnt make sense at all. Youre looking for a partition on any harddrive that happens to be found second during boot here. Also not every usb drive even uses a partition table, they will not have a number. Sorry, i've not understood. I've chang...
by DjPoke
Sat Apr 16, 2022 2:57 pm
Forum: General
Topic: [SOLVED]Accessing an usb pendrive
Replies: 13
Views: 5775

Re: Accessing an usb pendrive

Solved by executing lsblk and searching for sdbX.
by DjPoke
Sat Apr 16, 2022 8:39 am
Forum: General
Topic: [SOLVED]Accessing an usb pendrive
Replies: 13
Views: 5775

Re: Accessing an usb pendrive

This is the solution for Windows with Powershell. Missing a solution for Ubuntu Linux. Any idea ? -- check if drive is external and return its size function GetDriveSize(driveLetter) local text = "" local ret = "" local script = [[ Get-WmiObject -Class win32_logicaldisk -Filter &...
by DjPoke
Fri Apr 15, 2022 3:30 pm
Forum: General
Topic: [SOLVED]Accessing an usb pendrive
Replies: 13
Views: 5775

Re: Accessing an usb pendrive

Thank you BrotSagtMist

May be i can try to get something like the drive space, telling that less than 128 gigabytes should be an usb pendrive ?