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 - Roland Chastain

Pages: [1]
1
Pulsar2D / Re: Porting a LÖVE project
« on: 08. November 2016, 22:47:37 »
Thank you for your answer.  ;)

Yes, it seems that we like the same programming languages.  :)

Glad to hear that a new version of PL is coming. Thank you for the sprite example.

As soon as I have started something, I will come back to that discussion.

2
Pulsar2D / Porting a LÖVE project
« on: 14. July 2016, 19:56:23 »
Hello!

I made a chessboard with LÖVE and would like to port it to Pulsar2D.

Here is where you can find the LÖVE project:
http://www.eschecs.fr/lua.html

I wonder how to start. I would like to get advices. In the meanwhile I begin to study Pulsar2D Lua examples.  :)

Best regards.

Roland

3
Pulsar2D / Re: Pulsar2D is still alive ...
« on: 30. December 2015, 12:43:23 »
Oh, this is because you have to/can set it yourself within the script/program. Load an image with image=loadimage("blabla.png") and use seticon (image).

Perfect! Thank you.

4
Pulsar2D / Re: Pulsar2D is still alive ...
« on: 29. December 2015, 12:03:15 »
Not very important, but here the PulsarLua window has no icon. It's the Win32 binary downloaded on this page:

http://pulsar2d.org/

In Windows Explorer no problem.

5
Pulsar2D / Re: Pulsar2D is still alive ...
« on: 28. December 2015, 22:59:47 »
Works perfectly. Thank you.  :)

6
Pulsar2D / Re: Pulsar2D is still alive ...
« on: 28. December 2015, 09:58:35 »
Hello!

@Cybermonkey

Congratulations for your work. I love this project! I tested successfully (under Windows 10) the FreeBASIC and the Lua examples. For the Free Pascal examples, I need SDL2 unit and don't know where to find it. I tried one that I have found somewhere but it seems it wasn't the good one. Anyway, I will follow the development of the project with interest and will certainly use it.

What is exactly the difference between "Pulsar2D" and "PulsarLua"? I would say that Pulsar2D is a library, usable with different compilers, and PulsarLua is an interpreter based on Pulsar2D. Is it correct?

Good continuation!  ;)


7
Offtopic / Re: Dead or Alive
« on: 06. February 2015, 11:49:02 »
Hello gentlemen!

@Cybermonkey

EGSL is a very nice realization. Good luck for Pulsar2D! We will wait for it.  ;)



8
Offtopic / Re: A classic one - how does look your desktop?
« on: 24. June 2014, 09:42:45 »
Here is mine.  :)

9
ChipmonkeyLua / Re: Version 1.3.1
« on: 03. June 2014, 06:38:27 »
Thank you, Cybermonkey. Unfortunately the result is still the same.


10
ChipmonkeyLua / Re: Version 1.3.1
« on: 01. June 2014, 13:42:13 »
Maybe there is no relation, but I noticed something that seemed to me weird, when I open your archive. Have a look.

11
ChipmonkeyLua / Re: Version 1.3.1
« on: 01. June 2014, 13:29:06 »
Thank you for your answer, Cybermonkey.

I tried from the console: the result is the same.

The snake works fine.


12
ChipmonkeyLua / Re: Version 1.3.1
« on: 01. June 2014, 11:11:18 »
Hello Cybermonkey!

When I double click on chipmonkeyLua.exe, I get a Windows error message : "Out of memory", and the interpreter doesn't open.  (It's Windows 8.1.)

Have you an idea of what happens?

Best regards.

Roland



13
EGSL / Re: First impression
« on: 03. March 2014, 22:17:05 »
Thank you for the informations. I will have a look at PulsarLua.

14
EGSL / First impression
« on: 03. March 2014, 12:49:13 »
Hello gentlemen !

I have just discovered EGSL, and I would like to congratulate the author. I tested it under Windows 8. The IDE is simple, clean and easy to use. The examples are nice (I mean the code and also the result).

The only correction I would wish to see in a future release, is that the IDE would remember the last directory opened. (I saw that another user already complained about that.)

Here is a Lua script of mine, quickly adapted to EGSL. :)

Code: [Select]
--------------------------------------------------------------------------------
-- Nom du fichier : oudin.lua
-- Date de Pâques par l'algorithme d'Oudin
-- Roland Chastain 26/02/2014
--------------------------------------------------------------------------------

function div(a, b)
  return math.floor(a / b)
end

Y = os.date("*t").year

G = Y % 19
C = div(Y, 100)
C4 = div(C, 4)
E = div(8 * C + 13, 25)
H = (19 * G + C - C4 - E + 15) % 30
K = div(H, 28)
P = div(29, H + 1)
Q = div(21 - G, 11)
I = (K * P * Q - 1) * K + H
B = Y + div(Y, 4)
J1 = B + I + 2 + C4 - C
J2 = J1 - 7 * div(J1, 7)
R = 28 + I - J2

--[[
if R < 32 then
  D = R
  M = "mars"
else
  D = R - 31
  if D == 1 then
    D = "1er"
  end
  M = "avril"
end

print("En " .. Y .. ", le dimanche de P" .. string.char(131) .. "ques est le "
  .. D .. " " .. M .. ".")
]]

-- EGSL

if R < 32 then
  D = R
  M = 3
else
  D = R - 31
  M = 4
end

screen(320, 200, 0, "Date of Easter")
backcolour (0, 0, 0)
cls()

loadmonofont("monofonts/Courier New Regular 10.bmp")
colour(255, 255, 255)
monotext(0, 0, "Current year : "..Y)
monotext(0, 15, "Date of Easter : "..os.date("%m/%d", os.time{year=Y, month=M, day=D}))
sync()

inkey()
closewindow()

P.-S. The games (Astrorocks, Brickmaster and Wallman) are really beautiful.

Pages: [1]