|
#21
|
|||
|
|||
|
I was hoping for access to the screen buffer for screenshot type code but it seems it's not supported.
|
|
|
|||
|
|
|
#22
|
|||
|
|||
|
I wonder if screenshot support could be added by creative through a firmware upgrade.
|
|
#23
|
|||
|
|||
|
Oh I can pretty much guarantee it. Getting screen data is a must for games that want to be proficient.
|
|
#24
|
|||
|
|||
|
|
|
#25
|
||||
|
||||
|
Kwl - I like it, it has a kind of etch-a-sketch quality. I have a couple of suggestions for the next version :P
>Make the buttons slightly wider, I have a protective case and it took me several attempts to get it to touch >The lag is unfortunately something that there is no way to get rid of (see the back & forth in my thread) but you're using os.sleep(4), you can probably get away with a lower value.. Other than that it's a very good addition to the available apps - what with ThievingSix and Jan_DK's releases mainly being experimental, and mine all being games
|
|
#26
|
||||
|
||||
|
I'm getting flashbacks from a year ago when I was beginning programming
the Cowon O2 in C, one of the demo's I made was this draw thingy. It just load a image as background and 3 brush images in different colours and change them via the volume buttons, and then you just draw and get this weird 3d effect: maybe this could be in Paint 2.0 ![]() Screenshot from the O2 dated 1303-2009: yes you can do that on the O2 Creative ! Jan_DK |
|
#27
|
|||
|
|||
|
Quote:
Btw I just started programing in Lua a few days ago and I think that it is the easiest language out there |
|
#28
|
|||
|
|||
|
Lol, I'm going to take a guess but we all started lua because of the XFi2
|
|
#29
|
|||
|
|||
|
yeah pretty much
|
|
#30
|
|||
|
|||
|
Quote:
Edit: Odd...I just tried no sleep or wait in my application and I didn't run into any problems like I had before. Weird. |
|
#31
|
||||
|
||||
|
Quote:
Right now I'm playing with Pong and line 335 os.sleep(2) = 20ms delay to os.wait(10) 10 ms. delay. Using os.wait(10) the game main menu acts normal. using os.wait(9) the game main menu do no respond, only way out is reset. Jan_DK Last edited by Jan_DK; 01-15-2010 at 10:06 AM. Reason: error |
|
#32
|
||||
|
||||
|
Quote:
and bought the book 'C programming -A modern approach" My latest book is 'Beginning Lua Programming' by Kurt Jung so it's not a wild guess. ![]() Jan_DK |
|
#33
|
||||
|
||||
|
Quote:
![]() It's my favorate language now, it's so simple yet so powerful
|
|
#34
|
|||
|
|||
|
Uploaded the newest Apeopex sample that works without sleep or wait. It might have to do with how the Event loop is either: A) In a module, or B) Just in a different function. The good thing is I'm getting no input lag from the touch.move() event which seems to be the bottleneck for everyone(including pong).
|
|
#35
|
||||
|
||||
|
Quote:
|
|
#36
|
|||
|
|||
|
touch.move(), group of touch.pos(): Same thing. I'm just saying that sleeps and waits are what are holding back our heavy drawing apps.
|
|
#37
|
||||
|
||||
|
Quote:
gets overloaded. Jan_DK |
|
#38
|
|||
|
|||
|
I remember the calculator application that you found did a control.read(1) which confused me. Maybe there are parameters that we don't know about that, for example, let us get the most recent addition to the touch queue instead of the oldest.
|
|
#39
|
||||
|
||||
|
Quote:
it gave me the impression that it acted as a kind of A=GETKEY in basic, the program halted until touch input, but only for a time like 10 sec. but then suddenly it did not do anything, so i left it. I've just tried to limit the touch.pos and control.read and it only makes it worse. It now only reads the touch input every fifth run, but if you generate a lot of input(holding the finger on the screen all the time), then the buffer will then also only get empty, or the queue is moving forward every fifth run. pong function game loop line 280 Code:
local count = 0;
count=count+1;
if count==5 then
touch_x, touch_y = touch.pos();
count=0;
if control.read() == 1 then
if (control.isButton() == 1) then
if (button.home() == 1) and (button.click() == 1) then
room[2] = 0;
end;
end;
end;
end;
Last edited by Jan_DK; 01-15-2010 at 02:37 PM. |
|
#40
|
|||
|
|||
|
Quote:
Programs can use no sleep or wait if they use control.read(1) instead of control.read(). |
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
All times are GMT -5. The time now is 03:43 PM.














Linear Mode
