Blog
All Blog Posts | Next Post | Previous PostTMS RADical WEB, time for some fun
Monday, March 12, 2018
Last week, our team was brainstorming and as usual, lots of interesting and cool ideas come up. Based on these ideas, we have some more exciting technology being worked on now and coming up soon and youll learn about it here shortly. But, from time to time, there are also fun ideas that come up during our brainstorm sessions. One such idea was to check if it wouldnt be possible to port an existing Pascal game to TMS WEB Core and this way, make the game available via our website for playing it directly online. We thought this was not only a good idea but also a perfect validation to see how well our TMS WEB Core performed in enabling Delphi developers to move existing code over to the web. So, our software architect Pieter Scheldeman, also the architect of the cross-framework, cross-platform FNC framework, searched for some open-source Pascal games. One of the games Pieter found was the Tetris game in the Bianco Games collection from Marco Bianchini: https://torry.net/authorsmore.php?id=800
After checking out the source code of the Tetris game a bit, we were amazed that after less than 30 minutes of work by Pieter, the game was already running in the browser!
You can play with the game for yourself here:
https://download.tmssoftware.com/tmsweb/demos/tmsweb_tetris
The game does all its painting via the Delphi TCanvas in a custom control. As TMS WEB Core introduces a TCustomControl class with access to a TCanvas object with the same interface as the Delphi TCanvas, the control in which the Tetris blocks fall was working quickly with almost no code changes in the web. It shows the strength of the Pascal to Javascript compiler combined with the component framework we have designed for it.
Have fun playing the Tetris game without needing to install it on your machine. Were curious and eager to learn if you have more cool challenges to validate our TMS WEB Core technology against.
Get started today: Technical previews of TMS WEB Core, TMS FNC UI web-enabled controls, web-enabled TMS XData, the first parts under the TMS RADical WEB umbrella are exclusively available now for all active TMS-ALL-ACCESS customers.
Bruno Fierens
This blog post has received 18 comments.
We should add some code that allows tracking the hi-score and allow players to add their name, so your name would appear on top of the hi-score list :)
Bruno Fierens
The first is that, when the client press F5 on navigator, everything begins from login form again, not just reflesh the current form as the php page.
The second is that, how to avoid click one button in twice ?
The 3rd is that, how run a showmessage(or form.showmodal) which could block the whole program? Unigui has no solution for it. It could only accept the result of modal window by callback function.
Could you have the best solution to resolve above? Waiting for your reply.
Best regards
stlcours
Blom-Dahl Christen
Blom-Dahl Christen
Bruno Fierens
there is a long time that I am waiting for the worfkflow studio in web mode.
I think it s the right time to launch this task ?
what do you think ?
eric fg
luderi sarl
Repiton Pascal
Bruno Fierens
i downloaded a trial version of TMS WebCore with the demo samples. My purpose is to compare it with Intaweb because i''ll certainly need to migrate a VCL application into Web application.
I started to watch videos and some demo samples (with code). Very interesting !
I''d like to look also the source code of Web Tretis project. Where can i find it please ?
Best regards
Stéphane
Stéphane
another question please : how to add standard comments (i.e with // ou {} or (* *) ) in source code Delphi because i can''t compile the project when i add it.
Thanks
Stéphane
Stéphane
http:\\www.tmssoftware.net\public\BiancoTetris.zip
I cannot see an issue with adding comments here. What exact error do you get at what exact point?
Are you sure it is really related to the comment? Do you use any special characters in the comment text itself?
Bruno Fierens
thanks for zip file about Web Tetris project ! And about comments i try it again this morning : i just create a simple TMS webcore project, add a private member inside the TWebForm class and write just after on the same line this comment // c''est une fonction... (yes i ''m french developer. Sorry for my english !). Then i can''t compile (error = can''t find unit "System.SysUtils"). I think i find the issue : it doesn''t like the quote inside the comment because if i remove it, compilation will succeed
Stéphane
I use a WebPaintBox to draw inside it a empty rectangle with mouse events (OnMouseDown, OnMouseMove, OnMouseUp). I want to reuse existing code form Vcl project but i can''t do that because WebPaintBox1.Canvas.Pen.Mode is not recognized (i need pmNot and pmCopy values from TPenMode enumeration). compliation gets this error : identifier not found "Mode"
Best regards
Stéphane
Bruno Fierens
About basic demo titled "TableControl" : is there any restriction on the location of the cars.json file ? i download and save it inside a local www directory (using by UwAmp web server). "http://localhost/cars.json" in Firefox web adress shows the content of this file. But if i change the source code line "WebTableControl1.LoadFromJSON(''http://www.tmssoftware.biz/tmsweb/demos/TMSWEB_ResponsiveGrid/cars.json'');" by "WebTableControl1.LoadFromJSON(''http://localhost/cars.json'');" for the click event of the button "Load JSON data" then NO data are displayed by the WebTableControl1. I don''t understand why ...
Best regards
Stéphane
Blog comments is not really a good interface for handling support questions. For technical support, please use channels shown here:
https://www.tmssoftware.com/site/support.asp
For loading the JSON data, what local webserver do you use and what error do you see in the console.
Please follow-up via email.
Bruno Fierens
Unfortunately, the HTML5 Canvas element used to perform the drawing has no such mode, so we can''t map the Canvas.Mode to it. Handling this ourselves at pixel level would make this very slow.
Bruno Fierens
thank you for your answers. I''ll use the channel support if i need to ask another questions
Stéphane
All Blog Posts | Next Post | Previous Post
Been playing for more than half an hour :-)
Bernaert dominique