- Sky
- Blueberry
- Slate
- Blackcurrant
- Watermelon
- Strawberry
- Orange
- Banana
- Apple
- Emerald
- Chocolate
- Charcoal
pedrosgali
Members-
Content Count
42 -
Joined
-
Last visited
-
Days Won
6
Everything posted by pedrosgali
-
Paint Plus. ++Now with a library to load the pictures!++
pedrosgali replied to pedrosgali's topic in Programs
Thanks man, I used the library from this to make Minejaro. It's a front end GUI for openOS, if you like the style of this you should check it out. It needs looking at again really but I rarely have time these days. -
Paint Plus. ++Now with a library to load the pictures!++
pedrosgali replied to pedrosgali's topic in Programs
Hey guys, finally added the library for calling images yourself. Sorry it took so long but I wrote a new compression method that will save you a lot of RAM, this is done automatically on loading an image. It also required a new render method which is only marginally faster but still a little faster. Happy painting -
Paint Plus. ++Now with a library to load the pictures!++
pedrosgali replied to pedrosgali's topic in Programs
Thanks man. I've been asked to start an after school club to teach kids the basics of programming using minecraft, just been looking through my old code to see what I can salvage. -
Paint Plus. ++Now with a library to load the pictures!++
pedrosgali replied to pedrosgali's topic in Programs
Hey guys, been away for a while. I'll post an API for displaying the images as stand alone data later tonight, didn't really think about it at the time lol. -
robot.turnLeft() is the command, all commands are in camelCase so the first word is not upper case but the first letter of each subsequent word is.
-
Shouldn't it read robot.turnLeft() capitol L
-
http://www.lua.org/manual/5.2/manual.html#lua_tonumberx
-
I tend to use a slightly different method but the above example is perfectly fine, I'll post mine in case you find it easier and partly to show my favourite thing about coding... Mainly that there is never just one right answer. I do most of my processing in the loop so... local event = require("event") local keyboard = require("keyboard") local running = true while running do ev, p1, p2, p3, p4, p5 = event.pull(1, _, ev, p1, p2, p3, p4, p5) if ev == "key_down" then local char = keyboard.keys[p3] if char == "w" then --your move forward code block here
-
Nickname: Pete Age: Too old to be playing Minecraft. Minecraft Name: PedrosGali IRC nick: pedrosgali
-
Yeah, I wrote this before openOS was installable. It was OC 1.2 or something, the /lib folder was read only. *Edit: Can a moderator delete this thread as it is out of date and may cause confusion to some.
-
Added a pretty picture so you have some idea as to what this is. Please excuse the bad resolution, I broke my good monitor so I'm stuck on low res.
- 8 replies
-
- front end
- window manager
-
(and 1 more)
Tagged with:
-
Actually it's a window manager, no desktop as such. It is literally a front end GUI for openOS. It does allow multiple 'window' programs to all be running at once and I do plan to add a desktop environment at a later date. I just can't figure out how to get icons and shortcut without the framerate going down the toilet. Yet. You're right about the pictures though, I need some screen shots. I'll put some up after work.
- 8 replies
-
- front end
- window manager
-
(and 1 more)
Tagged with:
-
Added basic text editor so you can now check a file without leaving the editor, just bring up a new window.
- 8 replies
-
- front end
- window manager
-
(and 1 more)
Tagged with:
-
In fairness yeah, it should be a local.
-
I tend to opt for a boolian switch for exiting, running = true while running do run() end then you have a variable 'running' which can be toggled. Anywhere.
-
Playing multiple notes instantly, also memory leak?
pedrosgali replied to ManIkWeet's question in Programming
I made a step sequencer as my first project for OC, I ran into this problem too. My solution as yet unmade was to have multiple computers each with a copy of the 'score'waiting for a midi tick from a server. My code is still in the showcase if you'd like to take a look. -
Minejaro 0.1 Manjaro style front end for OC. ++ UPDATED ++ Now with text editing! Minejaro is currently only 5 files: A library to handle all the window spawning and such. A manager program that allows programs to run. 'konSoul' - a console program. 'Porpoise' - a file browser. 'Ate' - A Text Editor To those that like pastebin: Here's the pastebin links Screen.lua -- Install to /lib/screen.lua Manager -- Install to /bin/Manager konSoul -- Install to /bin/konSoul Browser -- Install to /bin/Brow
- 8 replies
-
- front end
- window manager
-
(and 1 more)
Tagged with:
-
Building a four-player arcade cabinet
pedrosgali replied to FredMSloniker's question in Miscellaneous
This idea is awesome, I have no clue about your networking problem however. I really want to see 4 player pong for this cabinet, each player takes one screen edge and any missing players their edge becomes a wall. So it could serve as 1-4 player pong! -
Hey man, thanks for the bug report. As far as I remember the game should only read the HDD when it loads an Image which is often as RAM limits the amount I can keep loaded. I'll look into events later today, This thing still needs an update but I've got a secret project in the works at the minute.
-
It's a trading game, most things on the screen are buttons to click. Each station has 1 product that you can buy and up to 3 resources you can sell it to operate. Explore and find more stations and AI traders who take all your best trades. Also there is a close option in the menu.
-
"cd" is the command to switch folders, so "cd SpaceGame0.1.1" then "space". You may have some trouble if you are not running in max resolution though.
-
I have seen this game crash in many (sometimes spectacular) ways but this is a new one. Well done. Where are you launching the game from? did you navigate to the SpaceGame folder and launch from there? or did you do "SpaceGame/space" to launch? That would cause a crash sort of like this as the game would not find the right working directory and thus none of the assets. Hope this helps, and thank you for the bug report. Also this is due for an update soon, working on assets at the minute but in my copy Shipyards are in so you can buy multiple ships and there are a few pieces of equip
-
Getting a single character from the keyboard
pedrosgali replied to FredMSloniker's question in Programming
You could try checking on the keypress if shift is down then use string.upper(char) Like this: if keyboard.isShiftDown() then --Shift pressed. char = string.upper(char) end print(char) Hope this helps --EDIT: After reading your post again it looks like your code will detect the pressing of shift as a keypress and print the result anyway. You'll have to account for that. Maybe like this: while true do ev, p1, p2, p3, p4, p5 = event.pull(.01, _, ev, p1, p2, p3, p4, p5) if ev == "key_down" then local char = keyboard.keys[p3] if char == "left_shif -
Looking to make basic Chat reading program using Computronics and OC
pedrosgali replied to Oizzle's question in Programming
Wasn't the chat log scanner from another mod? by richard G perhaps? I had something like this set up when I was using CC and extra peripherals but as far as I know there is no peripheral that serves this function yet in OC. I might be wrong about that... I hope I am. If I am wrong someone please let me know so I can get the IRC feed to come up in my in game chat log -
type "edit <filename>". Happy coding