The Gold Magic 800 is a puzzle game developed in Ring, RingAllegro and RingOpenGL. The goal is to move a box around levels to collect gold and open doors by placing the box on them, solving puzzles to progress through 44 levels. Players must plan their route, move directly to targets, consider future moves, avoid and learn from mistakes, and respect the cost to open the first door. The game teaches entrepreneurial thinking and skills like planning, efficiency, foresight, and patience. Screenshots show the level selection screen and an example level with the box and gold to collect.
5. Ring Documentation, Release 1.10
switch al_get_allegro_event_type(ev)
on ALLEGRO_EVENT_DISPLAY_CLOSE
CloseEvent()
on ALLEGRO_EVENT_TIMER
redraw = true
on ALLEGRO_EVENT_MOUSE_AXES
mouse_x = al_get_allegro_event_mouse_x(ev)
mouse_y = al_get_allegro_event_mouse_y(ev)
if PRINT_MOUSE_XY
see "x = " + mouse_x + nl
see "y = " + mouse_y + nl
ok
on ALLEGRO_EVENT_MOUSE_ENTER_DISPLAY
mouse_x = al_get_allegro_event_mouse_x(ev)
mouse_y = al_get_allegro_event_mouse_y(ev)
on ALLEGRO_EVENT_MOUSE_BUTTON_UP
MouseClickEvent()
on ALLEGRO_EVENT_KEY_DOWN
switch al_get_allegro_event_keyboard_keycode(ev)
on ALLEGRO_KEY_UP
key[KEY_UP] = true
on ALLEGRO_KEY_DOWN
key[KEY_DOWN] = true
on ALLEGRO_KEY_LEFT
key[KEY_LEFT] = true
on ALLEGRO_KEY_RIGHT
key[KEY_RIGHT] = true
off
on ALLEGRO_EVENT_KEY_UP
switch al_get_allegro_event_keyboard_keycode(ev)
on ALLEGRO_KEY_UP
key[KEY_UP] = false
on ALLEGRO_KEY_DOWN
key[KEY_DOWN] = false
on ALLEGRO_KEY_LEFT
key[KEY_LEFT] = false
on ALLEGRO_KEY_RIGHT
key[KEY_RIGHT] = false
on ALLEGRO_KEY_ESCAPE
exit
off
off
if redraw and al_is_event_queue_empty(event_queue)
redraw = false
drawScene()
al_flip_display()
ok
callgc()
end
func destroy
destroyResources()
al_destroy_timer(timer)
al_destroy_allegro_event(ev)
al_destroy_allegro_timeout(timeout)
al_destroy_event_queue(event_queue)
al_destroy_display(display)
al_exit()
63.3. TicTacToe 3D Game 672
6. Ring Documentation, Release 1.10
func loadresources
func drawScene
func destroyResources
func MouseClickEvent
exit # Exit from the Events Loop
func CloseEvent
exit # Exit from the Events Loop
Screen Shot:
63.4 More 3D Samples
You will find the samples in ring/samples/3D folder
The next screen shot for the Top-Down view - Many levels of cubes sample
63.4. More 3D Samples 673
7. Ring Documentation, Release 1.10
The next screen shot for the Camera Sample
The next screen shot for the Camera and background sample
Developer : Azzeddine Remmal
63.4. More 3D Samples 674
9. CHAPTER
SIXTYFOUR
THE GOLD MAGIC 800 GAME
In this chapter we will learn about the Gold Magic 800 Game
The game is developed using Ring, RingAllegro and RingOpenGL
Steam Page (44 Levels) : https://store.steampowered.com/app/939200/Gold_Magic_800/
Ring comes with a Demo Version (21 Levels Only)
You will find the game in ring/applications/goldmagic800 folder
64.1 The Game Story
Your friend discovered a unique and special box, created by the best wizard in the world 7000 years ago, when you
close this box and move it; you will find a new gold under the box, it’s an infinite source of gold. The Box exists in
a special environment full of puzzles, no one can enter this environment because it’s protected by the magic. Your
friend created a new robot using nanotechnology that can move the box using a remote control device. Your mission
is to solve all of these puzzles and get this box forever to be the richest people in the world.
64.2 How to play?
The Gold Magic 800 is a puzzle game that will teach your unconscious mind to think like an entrepreneur.
The game is based on moving your box around to get gold score (=800) to open the First Door (Box Number 1) Then
directly put your box on the Door (this will open the next door), Then continue to put your box on all of the next doors
in the level, You need the score (800) only for the first door, The next doors doesn’t require this condition, but your
way of gold will be converted to a wall once you put the Box on any door, so select your path carefully.
64.3 What will you learn?
1- Plan First
2- Move to your target directly then go to get the required resources
3- Look to the future when you evaluate the different solutions
4- Try to avoid mistakes, Also learn from them
5- Respect the Cost (800)
6- Focus and be careful
7- Be patient and Enjoy!
676
10. Ring Documentation, Release 1.10
64.4 Screen Shots
We can select the level
The next screen shot for level (1)
The Gold Magic 800 Level Editor
64.4. Screen Shots 677