Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Cybermonkey

Pages: [1] 2 3 ... 37
1
Code and examples / Re: Halloween Reoccurence
« on: 01. November 2017, 16:52:08 »
Not a big deal here in Germany. We have Carnival (usually in February), or as we call it in southern Germany: "Fasnet".



Wikipedia: https://en.wikipedia.org/wiki/Swabian-Alemannic_Fastnacht

2
EGSL / Re: can you help me with tiles?
« on: 10. September 2017, 09:56:12 »
It's similar to the bitmapfont function.

Let's assume you have an image with two tiles in it. Now you can load your image with
Code: [Select]
mytile=loadtileset ("image.png",1,2,"ab") or if you already loaded the image
Code: [Select]
mytile=tileset(image,1,2,"ab")
The string is similar to the fontface of a bitmapfont, so if you want to draw the first tile you do the following:
Code: [Select]
drawtile (0, 0, "a", mytile)the second tile
Code: [Select]
drawtile (0, 0, "b", mytile)or a longer line (with both tiles)
Code: [Select]
drawtile (0, 0, "aaabbaabbbbaaaabbaaa", mytile)
It's not very nice as you can see, I recommend it only for background drawing where no tiles are changing because string manipulation is slower than using numbers. (And of course you are limited to a string which means if you are using the alphabet you can handle with upper and lower case 52 tiles.)

3
That's it! And life is so desperately short...

Life moves pretty fast. If you don’t stop and look around once in awhile, you could miss it.  ;)

4
Offtopic / Re: A classic one - how does look your desktop?
« on: 16. June 2017, 23:03:24 »
Okay, I just installed Icaros Desktop 2.2; this is how it looks like.

5
Community news and announcements / Re: Recent BASIC releases
« on: 11. May 2017, 19:44:17 »
Hi Cybermonkey,

Hey! How about you? Anything in the works?
Thanks fine. At the moment I am on vacation in Scotland.
You can expect soon a download of PulsarBASIC ...  ;)

6
Community news and announcements / Re: Recent BASIC releases
« on: 10. May 2017, 18:30:08 »
Not to forget that Yabasic was updated in January 2017 ... http://yabasic.de

7
Code and examples / Re: Networking
« on: 19. April 2017, 18:59:28 »
Nice Work.

 There ought to be a way to make 3D games with this stuff. ::)

Hehe, something like ...

8
Offtopic / Re: My Workstation. What's Yours?
« on: 05. April 2017, 17:54:26 »
So, at last a picture of my (new) desk from IKEA.  ;) One display for the stationary computer and to the right sits my notebook. To the left you can see my new 8 inch converter tablet with Windows 10. Really nice keyboard.
As you can see I am coming back slowly, we had a case of death in my spouse's family (her father), so it took some time to come back to normality.
Anyway, a new project is waiting in the wings ...

9
Offtopic / Re: Windows has wiped out my Linux instalation.
« on: 16. November 2016, 19:24:46 »
Another option is to use an external USB HDD (no stick but a real HDD). You can always install Linux on that without any problems and it is booted rather quickly.

That would be a good solution for a desktop computer. Laptop? I'm not sure...
Ah, ok, it's a laptop? Well, then you are right, that's not so nice using an external HDD. i never did that with my laptop either, only with my desktop PC.

10
Offtopic / Re: A classic one - how does look your desktop?
« on: 15. November 2016, 19:43:33 »
My new desktop. It's not a tablet nor a phone but my good old desktop PC running Android x86 (6.0.1). Everything works fine including sound, wifi, 3D acceleration and a lot of apps.  ;)

How is your experience with using mouse with it?

It is a bit funny, I have to admit but most things work. I use Android x86 predominantly for gaming with a game controller. I bought one which can be used with Windows (Xinput or DirectInput) and Android. (And even PS3 - but I haven't got one.)

11
Offtopic / Re: Windows has wiped out my Linux instalation.
« on: 15. November 2016, 19:40:16 »
Another option is to use an external USB HDD (no stick but a real HDD). You can always install Linux on that without any problems and it is booted rather quickly.

12
Offtopic / Re: Windows has wiped out my Linux installation.
« on: 14. November 2016, 21:50:00 »
I had a similar issue after upgrading from Windows 7 to Windows 10. Grub was destroyed and my (logical) Linux partition was deleted. So I always backup my Linux data before installing a bigger Windows update like 1511 or 1607.

13
Offtopic / Re: A classic one - how does look your desktop?
« on: 03. November 2016, 20:27:35 »
My new desktop. It's not a tablet nor a phone but my good old desktop PC running Android x86 (6.0.1). Everything works fine including sound, wifi, 3D acceleration and a lot of apps.  ;)

14
Offtopic / The Computer Magazine Archives
« on: 09. October 2016, 17:03:45 »
Could be of interest for some of us (especially those C64 and Sinclair magazines  ;)):
https://archive.org/details/computermagazines

15
Pulsar2D / Re: Porting a LÖVE project
« on: 09. October 2016, 11:11:19 »
Sorry for writing so late. I've just recognized that we are members of many boards: https://forum.qbasic.at/, http://pascalgamedevelopment.com/forum.php and http://www.lazarusforum.de/  ;)
At the moment PulsarLua will get an update, so it uses Lua 5.3. Downloads will be soon available.
PulsarLua works differently from Löve. Löve has events, whereas PL uses one game loop. Here's the simple sprite example:

Code: [Select]
-- shows how to load an image and turn that into a sprite

require "scancodes"
knight ={}

win = openwindow ("Simple Sprite Example",-1,-1,800,600)
setactivewindow (win)
setframetimer (100)

image = loadimage ("media/sprite.bmp")
knight.image = createsprite (image)
freeimage (image)

image = loadimage ("media/grass.bmp")
grass = createsprite (image)
freeimage (image)

knight.x=windowwidth()/2
knight.y=windowheight()/2
textsize (1)
--main loop starts here:
repeat
key=getkey()
clearwindow()

if keystate (SCANCODE_RIGHT) then
knight.x=knight.x+1
end
if keystate (SCANCODE_LEFT) then
knight.x=knight.x-1
end
if keystate (SCANCODE_UP) then
knight.y=knight.y-1
end
if keystate (SCANCODE_DOWN) then
knight.y=knight.y+1
end

for i  = 0,  windowwidth(), spritewidth (grass) do
for j = 0,  windowheight(), spriteheight (grass) do
drawsprite (grass,i,j,1,1,0,false,false)
end
end

drawsprite (knight.image,knight.x,knight.y,1,1,0,false,false)

color (255,255,255,255)
texttype (1)
drawtext ("Cursor keys to move knight, ESC to quit",0,0)
texttype (2)
drawtext ("Cursor keys to move knight, ESC to quit",0,20)
sync()
until key == SCANCODE_ESCAPE
--here all comes to an end...
freesprite (knight.image)
freesprite (grass)
closewindow (win)
closeapplication()

With Lua 5.3 I would recommend changing the starting point of the sprite like this:

Code: [Select]
knight.x=int (windowwidth()/2)
knight.y=int (windowheight()/2)

Pages: [1] 2 3 ... 37