-
Notifications
You must be signed in to change notification settings - Fork 23
Examples
Below are example games and tech demos created with Scage. Links to the source code are available. You can also run any of this games using the link "Launch Demo" in the footer of each game. Demos are in format of Java Webstart (jnlp launch files), so only Java (7 or 8) is required to run them.
When first click "Launch Demo" on modern java versions you may get the error: "Application Blocked by Java Security". To avoid this you need to add the site to the exception list.
Type in console: javaws -viewer. This will open Java WebStart settings. Open the Security tab and below you will see "Exception Site List". Add to the list this site: "https://dunnololda.github.io" then click OK.
After that, when trying again, you will likely get "Security Warning" because of self-signed certificate. Although I use the self-signed one you can at least be sure it is me because the app will be downloaded to you over https from my github page. Certificate details: CN=github.com/dunnololda, OU=github.com/dunnololda, O=github.com/dunnololda, L=Moscow, ST=Russia, C=RU So, you can check the checkbox "I accept the risk..." and then click Run.
Most of the demos are clones of some popular small games. But I also improved them a little in a way to make them less difficult and more entertaining. It is a very exiciting feeling when you control the whole game and can make any improvements that comfort you. This is one of the goals Scage was developed for.
Common controls across all games are: F2 to start a new game, ctrl-Q to exit, P or space to pause. Also left and right mouse buttons are in use, arrow keys, left and right controls.
###Tetris
Simple tetris clone. Controls: arrow keys (left-right - move an element, up - rotate it, down - move down faster), spacetab - pause, ctrl-Q - exit. Also there is the 'L' key. Try it :)
###Snake
The Snake clone. Controls: arrow keys, ctrl-Q - exit.
###Arcanoid
The physics demo. Bounce ball to blocks to make them disappear and bring you points. Controls: left and right arrow keys. Ctrl-Q - exit
###Life
The "Tracers"-framework example. Conway's Game of Life, the model of "glider gun". Press spacetab to start the process. Press space again to pause it. You can place new cells with left mouse button and delete them with right mouse button. Ctrl-Q to exit.
###Uke
The physics, texture handling and sound demo. Run and jump avoiding abysses and obstacles. Controls: Z to jump, X to rush forward and destroy obstacle, down arrow key to fast land after high jump, F2 to restart, P to pause, ctrl-Q to exit. The game is somewaht similar to the famouse Unicorn Attack.
###Runnegun
Some kind of a top-down shooter. Shoot down circles and avoid enemy bullets. Controls: WASD to move, left mouse button to shoot, ctrl-Q to exit
###Jet Flight
The texture handling example. Control a plane against very simple AI bot. Fly with left and right arrows, speed-up with up-arrow, shoot missiles with left control.
###Net Flight: A Network Game Example
This is a modification of the game above to support multiple players to play on one server. Players can control their planes with right and left arrow keys and shoot with left ctrl key. There are health bars on the field which increase player's health when player grab them. When player dies he respawns in a random position.
One can clone the project and compile and run the server to test it.
###Blases
Shoot bubbles using left mouse to reach the finish point. The game demonstrates i18n, resolution changing, one way to create game interfaces and some other things. Other controls: right mouse to pop bubble, spacetab to stop it, ESC to pause and open menu.
###Pong
A very simple clone of Classic Pong (of its realization in Nicol Examples actually). The game demonstrates how to handle mouse moving. Control paddles with mouse. The ball speed is slightly increased as you bounce it from the paddles. Ctrl-Q to exit.
###Space War
A game about conquering planets with starships to rule the entire universe! All like that. It is also a clone of the very famous game. Select planet with left mouse button, then click on another planet which has a route with the first - this will send all ships from the first planet. If you click on the target planet with the right mouse button, fleets sending will become permanent (every five seconds). The goal is to conquer all planets and win against ai (sometimes this is really difficult). Ctrl-Q to exit, F2 to start a new game.
A very simple Tower Defence game. Place towers with the left mouse button. Enemies are going from the top to the bottom and they use a pathfinding algorithm to avoid towers (so this is the pathfinding demo)! Ctrl-Q to exit.
Adaptation of the dangerous game from the Tron movie. You control one bike which is moving with constant speed on the limited area. There is a trace behind your bike which behaves like a wall. If you cross it you are dead. There are three other bikes which controlled by ai. Your task is to make them all crash into your or other traces or the external walls of the area. Control your bike with left and right arrows. F2 to start new game, ctrl-Q to exit.
Very funny game (at least for me) which is surprisingly not a clone of any game (as I know). This demo was born from my curiosity about how difficult to write a program to control an elevator of a building. So you control three elevators of a multistorey building and your task is to take the residents from the floors and deliver them to the other floors they want to go. And do it as fast as possible. There is a demo mode in which ai demonstrates how he do it with five elevators. Select the floor to go with left mouse button.
A top-down 2d projection of the rubic cube. You can rotate the whole cube with arrow keys. Move its planes with the corresponding keys which are shown near them. Also there are predefined moving combinations on the number keys 0-9.
A simple sliding block puzzle where you need to slide numbered tiles to combine them and create the number as big as possible. The clone of the game https://en.wikipedia.org/wiki/2048_(video_game). Slide tiles with arow keys, new game: F2, exit: ctrl-Q.