Retrogamecoding(.org) > EGSL
EGSL IDE (Haiku) Templates
lelldorin:
I split viewing this, i have examples, thats are complete programs to show the user that he can do with the programming language and on the other hand there are templates. Little code files to make working with the IDE easier. We have IDE templates and User based templates. The IDE templates should have included some codes like openwindow, read file, save file... and the User templates are stored by the user himself with his own files.
Examples:
Templates:
But if no one find this is a good idea... Thats ok.
GEEK:
I don't think it's a bad idea, don't take it that way please.. :-\
Ok, where do you need help?
I saw you don't know how to print something to the console?
use: io.write("hello")
maybe you can give me a list with things I can help you with? (if I have the time for it) :)
also googling "Lua" can be a great help..
lelldorin:
This is nice, have added this into the templates.
I think it will be fine to have somthing like:
- readout a textfile
- readout a directory
- draw a button
- draw a image button
- draw a image
- scrolling left to right
- scrolling right to left
- scrolling bottom to top
- scrolling top to bottom
- scrolling all ways
- get key message
- get joystick message
- get mouse message
I am not a EGSL developer, i use yab to make this IDE, i does not know that templates are good and that not. I will take a look into EGSL if i have a good idea for a game... at the moment i create more programs not games.
GEEK:
ok, I let you know if I have something :)
GEEK:
hey :) just started:
--- Code: ----- readout a textfile
function read_file(path)
local file = io.open(path)
local string = file:read("*all")
file.close()
print(string)
end
read_file("my_file.txt")
--- End code ---
readout a directory ???
for these you just have to take a look at the documentation:
draw a button
draw a image button
draw a image
can you explain these a bit more? don't get what you want "scrolling"
scrolling left to right
scrolling right to left
scrolling bottom to top
scrolling top to bottom
scrolling all ways??
get key message is an internal egsl function = getkey()
get joystick message is internal to:
joystickplugged()
getjoyx()
getjoyy()
getjoybutton(button)
numberjoybuttons()
get mouse message? same here:
mousex()
mousey()
mouseb()
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version