Allegro.cc - Online Community

Allegro.cc Forums » The Depot » Simple Games using Allegro 5 and the Ring programming language

This thread is locked; no one can reply to it. rss feed Print
Simple Games using Allegro 5 and the Ring programming language
Mahmoud Fayed
Member #8,895
August 2007

Hello

I will present my simple Games using Allegro
I have 3 games + source code in the Ring programming language (http://ring-lang.net)

Each game is developed in little hours.

The goal is to present how to use Allegro power from the Ring programming language to get some advantages like declarative programming and creating domain specific languages on the top of object-oriented programming.

(1) Stars Fighter Game
Download : https://sourceforge.net/projects/ring-lang/files/Ring%201.0/Fayed_StarsFighter_1.0_win32.zip/download
{"name":"610346","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/b\/3\/b3fcf6db1bb4b2737e64f629888076de.png","w":815,"h":640,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/b\/3\/b3fcf6db1bb4b2737e64f629888076de"}610346

(2) Flappy Bird 3000 Game
https://sourceforge.net/projects/ring-lang/files/Ring%201.0/Fayed_FlappyBird3000_1.0_win32.zip/download
{"name":"610345","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/a\/8\/a893a221a1f5786bf6a8af0f68788357.png","w":816,"h":636,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/a\/8\/a893a221a1f5786bf6a8af0f68788357"}610345

(3) Super Man 2016 Game
https://sourceforge.net/projects/ring-lang/files/Ring%201.0/Fayed_SuperMan2016_1.0_win32.zip/download
{"name":"610347","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/1\/a\/1a84efb2ab8c31ae936db5e874a653fd.png","w":815,"h":640,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/1\/a\/1a84efb2ab8c31ae936db5e874a653fd"}610347
Remember they are just simple 2D Games but i hope that they will give you another view of Allegro programming.

This article provide introduction to Ring
http://www.codeproject.com/Articles/1089887/The-Ring-Programming-Language

Ring Documentation
http://ring-lang.sourceforge.net/doc/index.html

Ring Group
https://groups.google.com/forum/#!forum/ring-lang

Note : Ring is free open source (MIT License) and contributions are welcome!
Ring Source Code (GitHub)
https://github.com/ring-lang/ring

Greetings,
Mahmoud

Eric Johnson
Member #14,841
January 2013
avatar

Hey Mahmoud. The Ring programming language seems pretty interesting so far. What are the advantages to using Ring over native C or C++?

Mahmoud Fayed
Member #8,895
August 2007

Hello Eric

Thanks for your kind words, You are welcome :D

Ring try to provides a better way to mix between different programming paradigms in solving problems. The different programming paradigms play well together as a team in the same language. This means two points

(1) It's easy to switch from one programming paradigm to another one because the language constructs use similar syntax for similar concepts

(2) The paradigms are provided to interact and used together in different layers in the software. for example you can create a game engine using object-oriented programming but write the game code using declarative programming or natural programming and behind the scene your declarative or natural code will use the object-oriented classes

Other important features
(1) Ring is a dynamic language. you can generate and execute code during the runtime. you have dynamic typing and weakly typed language for flexibility
(2) The Garbage collector is generational (escape analysis) and also use reference counting. it's very fast and still provide control to the programmer who can delete memory at any time.
(3) Ring Compiler and Virtual Machine is just 15,000 lines of ANSI C code that can be compiled and used in any platform.
(4) You can use C/C++ libraries and Ring comes with code generator to create wrappers from C functions of C++ classes. so when you need more performance or when you need to use more libraries you can easily do that.
(5) Ring comes with support for Allegro 5 (for games) and Qt (for GUI)
(6) Ring is free open source (You can contribute)
(7) Ring is new (released in 2016.01.25) and learned a lot from other programming languages and comes with useful and new ideas. The language is practical and designed to be used by programmers looking for Simple, Flexible, Productive and Powerful language

Greetings,
Mahmoud

Go to: