Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


AnatolyAnatoly Mod
edited December 2019 in Suggestions Posts: 881

I believe it has been already suggested many times before, but here are some good use of it. Instead of New Class and New Blank File we could have:

New > Blank

New > Empty Class

className = class()

function className:init(t)


New > UI Class

className = class()

function className:init(t)
    self.pos = vec2(t.x, t.y)
    self.size = vec2(t.w, t.h)
    self.touching = false

function className:draw()
    rect(self.pos.x, self.pos.y, self.size.x, self.size.y)

function className:touched(t)
    if self:isTouched(t) and t.state == BEGAN then
        self.touching = true
        self.touching = false

function className:isTouched(t)
    if t.pos.x > self.pos.x and t.pos.y > self.pos.y and self.pos.x + self.size.x > t.pos.x and self.pos.y + self.size.y > t.pos.y then
        return true
    return false

New > Empty Object

className = className or {}

New > Comment


New > 2D Moveable Class


... and many more ...

Aside of that, can we please save the tabulation based on the user choice. When you work with { ... } comments it's annoying that the indent always jumps back to 4 spaces, when you e.g. need 16.


  • dave1707dave1707 Mod
    Posts: 8,065

    What could be done is the user can create their own templates. Any name beginning with template, ie. template1, template 2, etc would show when a new project is created. The user could then select which one they want. They can fill in each template with the initial code they want.

  • Posts: 1,520

    @dave1707 - that's just the suggestion we have already made. Not sure if it has been added to the todo list.

Sign In or Register to comment.