imj-game-hamazed: A game with flying numbers and 8-bit color animations.

[ animation, application, bsd3, education, game, graphics, library, program ] [ Propose Tags ] [ Report a vulnerability ]

In Hamazed, you are a BattleShip pilot surrounded by flying Numbers.

Your mission is to shoot exactly the Numbers whose sum will equate the current Level 's target number.

The higher the Level (1..12), the more Numbers are flying around (up-to 16). And the smaller the World gets.

Good luck !


[Skip to Readme]

Modules

[Index]

  • Imj
    • Game
      • Imj.Game.Hamazed
        • Imj.Game.Hamazed.Color
        • Imj.Game.Hamazed.Env
        • Imj.Game.Hamazed.Infos
        • Imj.Game.Hamazed.KeysMaps
        • Imj.Game.Hamazed.Level
          • Imj.Game.Hamazed.Level.Types
        • Loop
          • Imj.Game.Hamazed.Loop.Create
          • Imj.Game.Hamazed.Loop.Deadlines
          • Imj.Game.Hamazed.Loop.Event
            • Imj.Game.Hamazed.Loop.Event.Priorities
            • Imj.Game.Hamazed.Loop.Event.Types
          • Imj.Game.Hamazed.Loop.Render
          • Imj.Game.Hamazed.Loop.Run
          • Imj.Game.Hamazed.Loop.Timing
          • Imj.Game.Hamazed.Loop.Update
        • Imj.Game.Hamazed.Parameters
        • Imj.Game.Hamazed.Types
        • Imj.Game.Hamazed.World
          • Imj.Game.Hamazed.World.Create
          • Imj.Game.Hamazed.World.InTerminal
          • Imj.Game.Hamazed.World.Number
          • Imj.Game.Hamazed.World.Render
          • Imj.Game.Hamazed.World.Ship
          • Imj.Game.Hamazed.World.Size
          • Imj.Game.Hamazed.World.Space
            • Imj.Game.Hamazed.World.Space.Types
          • Imj.Game.Hamazed.World.Types

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0.2
Change log CHANGELOG.md
Dependencies base (>=4.8 && <4.11), containers (>=0.5.9.2), imj-animation (>=0.1 && <0.2), imj-base (>=0.1 && <0.2), imj-game-hamazed, imj-prelude (>=0.1 && <0.2), matrix (>=0.3.5.0), mtl (>=2.2.1 && <2.3), terminal-size (>=0.3.2.1 && <0.3.3), text (>=1.2 && <1.3), vector (>=0.12.0.1 && <0.12.1) [details]
Tested with ghc ==8.0.2, ghc ==8.2.2
License BSD-3-Clause
Copyright 2017 - 2018 Olivier Sohn
Author Olivier Sohn
Maintainer olivier.sohn@gmail.com
Category Animation, Game, Graphics, Education, Application
Home page https://github.com/OlivierSohn/hamazed/blob/master/imj-game-hamazed//README.md
Bug tracker https://github.com/OlivierSohn/hamazed/issues/
Source repo head: git clone https://github.com/OlivierSohn/hamazed/(imj-game-hamazed)
Uploaded by OlivierSohn at 2018-01-01T10:15:44Z
Distributions
Executables imj-game-hamazed-exe
Downloads 911 total (3 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for imj-game-hamazed-0.1.0.2

[back to package description]

What is it?

It's a terminal ascii game where you fly a ship through numbers. The goal is to shoot the numbers whose sum will be equal to the level's target. It's easy at the beginning, but higher levels have more and more numbers, and less and less space to navigate through them! The last level is level 12: I never reached it, but I hope somebody will :).

Demos

No walls, square world

asciicast

Random walls, rectangular world

asciicast

Configurability

The game can be configured in "world shape" (square, rectangle) and "kind of walls" (none, deterministic, random).

Configuration snapshot

You can define your own keyboard mapping by modifying the 'eventFromKey' function defined here, the default mapping being:

  • ship acceleration : 's' 'e' 'd' 'f'
  • laser shots : 'j' 'i' 'k' 'l'

Supported Platforms / Terminals:

OS Support
OS X Yes
Linux Yes
Windows No (see this)

Your terminal window should have a dimension of at least {height = 42, width = 146}. If it is too small, the program will fail with the following error message:

From game thread:

Minimum terminal size : Window {height = 42, width = 146}.
Current terminal size : Window {height = 22, width = 165}.
The current terminal size doesn't match the minimum size,
please adjust your terminal size and restart the executable.

Version history

  • 2.1 :
    • New animations :
      • With colors (8-bit)
      • Also between levels
      • Using physics and gravity
      • "Terminal size"-aware
  • 2.0 :
    • World is configurable (square or rectangle, with or without random walls)
    • Explosion animations
    • Optimized rendering (delta rendering)
  • 1.0 :
    • The world is a square. (Note : ship acceleration was 'w' 'a' 's' 'd' at that time)

Build

You can build and run using stack:

stack build --pedantic && stack exec hamazed-exe

Credits

Delta rendering

The initial idea for delta rendering is based on code written by Rafael Ibraim