diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-11-15 01:53:47 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-11-15 01:54:19 +0100 |
| commit | f791a65ba2b08e54247187b808f3488d2b401597 (patch) | |
| tree | 4e02962b3b327f4e88ebd3b48b2bc655ac07a2c1 | |
| parent | 4114d3122f00829e6b53fdb5490b7568d688c1c6 (diff) | |
| download | nj26-f791a65ba2b08e54247187b808f3488d2b401597.tar.gz | |
Add fonts + main menu + game over screen
| -rw-r--r-- | Spatial.gd | 31 | ||||
| -rw-r--r-- | cat.tscn | 44 | ||||
| -rw-r--r-- | countdown.gd | 13 | ||||
| -rw-r--r-- | countdown.tscn | 34 | ||||
| -rw-r--r-- | game-over.gd | 41 | ||||
| -rw-r--r-- | game-over.tscn | 110 | ||||
| -rw-r--r-- | mainmenu.gd | 11 | ||||
| -rw-r--r-- | mainmenu.tscn | 59 | ||||
| -rw-r--r-- | project.godot | 8 | ||||
| -rw-r--r-- | rcat.gd | 12 | ||||
| -rw-r--r-- | running-cat.gd | 32 | ||||
| -rw-r--r-- | vera/CMakeLists.txt | 10 | ||||
| -rwxr-xr-x | vera/COPYRIGHT.TXT | 124 | ||||
| -rwxr-xr-x | vera/README.TXT | 11 | ||||
| -rwxr-xr-x | vera/RELEASENOTES.TXT | 162 | ||||
| -rwxr-xr-x | vera/Vera.ttf | bin | 0 -> 65932 bytes | |||
| -rwxr-xr-x | vera/VeraBI.ttf | bin | 0 -> 63208 bytes | |||
| -rwxr-xr-x | vera/VeraBd.ttf | bin | 0 -> 58716 bytes | |||
| -rwxr-xr-x | vera/VeraIt.ttf | bin | 0 -> 63684 bytes | |||
| -rw-r--r-- | zombie.gd | 19 |
20 files changed, 715 insertions, 6 deletions
@@ -5,6 +5,8 @@ var b = preload("res://box.tscn") var z = preload("res://zombie.tscn") var pwup = preload("res://powerup.tscn") var pw = preload("res://powerup.gd") +var gameover = preload("res://game-over.tscn").instance() +var countdown = preload("res://countdown.tscn").instance() var blue_points = 0 var pink_points = 0 @@ -13,6 +15,8 @@ var zombies = [] var boxes = [] var done = false var finalpos +var running_cat +var can_move = false signal new_points @@ -42,6 +46,9 @@ func on_points(): func _create_cat(): var cat = load("res://cat.tscn").instance() cat.translate(Vector3(0, -1, 0)) + running_cat = cat + for z in zombies: + z.running_cat = cat add_child(cat) func _physics_process(delta): @@ -62,6 +69,7 @@ func _physics_process(delta): finalpos = jail.global_transform.origin for z in zombies: + z.can_move = can_move z.run_powerup(boxes, zombies) func randpos(y = 10): @@ -83,7 +91,6 @@ func randpos(y = 10): if randi() & 1: z = -z - print(Vector3(x, y, z)) return Vector3(x, y, z) func create_box(team): @@ -110,6 +117,11 @@ func _on_powerup(node): remove_child(node) +func _on_cat_killed(zombie): + get_tree().root.add_child(gameover) + gameover.set_winner(blue_points, pink_points, zombie.get_team()) + remove_child(running_cat) + func create_zombie(id, team, pos): var zombie = z.instance() @@ -117,6 +129,7 @@ func create_zombie(id, team, pos): zombie.set_team(team) zombie.translate(pos) zombie.connect("powerup", self, "_on_powerup") + zombie.connect("cat_killed", self, "_on_cat_killed") zombies += [zombie] add_child(zombie) @@ -133,7 +146,7 @@ func _on_powerup_timeout(): func game_over(): pass -func _process(delta): +func _process(_delta): var text = "Time left: " var seconds = $game_time.get_time_left() var minutes = 0 @@ -157,6 +170,16 @@ func _on_box_timeout(): create_box(team) $box_timer.start(randi() % 16 + 5) +func start_game(): + for z in zombies: + z.set_can_move(true) + + get_tree().root.remove_child(countdown) + $game_time.start(120) + +func go_back(): + get_tree().root.remove_child(self) + func _ready(): randomize() jailpos = get_node("jail").global_transform.origin @@ -180,5 +203,9 @@ func _ready(): $box_timer.start(randi() % 16 + 5) $box_timer.connect("timeout", self, "_on_box_timeout") $game_time.start(120) + $game_time.stop() $game_time.connect("timeout", self, "game_over") + get_tree().root.add_child(countdown) + countdown.connect("timeout", self, "start_game") connect("new_points", self, "on_points") + gameover.connect("go_back", self, "go_back") diff --git a/cat.tscn b/cat.tscn new file mode 100644 index 0000000..55314e5 --- /dev/null +++ b/cat.tscn @@ -0,0 +1,44 @@ +[gd_scene load_steps=9 format=2] + +[ext_resource path="res://running-cat.gd" type="Script" id=1] +[ext_resource path="res://rcat.gd" type="Script" id=2] +[ext_resource path="res://cat/c0.png" type="Texture" id=3] + +[sub_resource type="PlaneMesh" id=1] + +[sub_resource type="SpatialMaterial" id=3] +flags_transparent = true +albedo_texture = ExtResource( 3 ) + +[sub_resource type="SphereShape" id=6] + +[sub_resource type="SphereMesh" id=7] + +[sub_resource type="SpatialMaterial" id=5] +flags_transparent = true +albedo_color = Color( 0.443137, 0.133333, 0.780392, 0.14902 ) + +[node name="KinematicBody" type="KinematicBody"] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.3, 0 ) +script = ExtResource( 1 ) + +[node name="Cat" type="MeshInstance" parent="."] +transform = Transform( 1, 0, -4.37114e-08, -4.37114e-08, 1.91069e-15, -1, 0, 1, 1.91069e-15, 0, -0.667701, 0 ) +mesh = SubResource( 1 ) +material/0 = SubResource( 3 ) +script = ExtResource( 2 ) + +[node name="CollisionShape" type="CollisionShape" parent="."] +transform = Transform( -4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, -0.108723, 0 ) +shape = SubResource( 6 ) + +[node name="timer" type="Timer" parent="."] + +[node name="MeshInstance" type="MeshInstance" parent="."] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.115057, 0 ) +mesh = SubResource( 7 ) +material/0 = SubResource( 5 ) + +[node name="OmniLight" type="OmniLight" parent="."] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.357336 ) +light_energy = 3.574 diff --git a/countdown.gd b/countdown.gd new file mode 100644 index 0000000..1b53c1f --- /dev/null +++ b/countdown.gd @@ -0,0 +1,13 @@ +extends Node2D + +signal timeout + +func _process(delta): + if $Timer.time_left < 1: + emit_signal("timeout") + + $CanvasLayer/CenterContainer/countdown.text = "%d" % $Timer.time_left + +# Called when the node enters the scene tree for the first time. +func _ready(): + $Timer.start(5) diff --git a/countdown.tscn b/countdown.tscn new file mode 100644 index 0000000..c5fa7af --- /dev/null +++ b/countdown.tscn @@ -0,0 +1,34 @@ +[gd_scene load_steps=4 format=2] + +[ext_resource path="res://vera/VeraBI.ttf" type="DynamicFontData" id=1] +[ext_resource path="res://countdown.gd" type="Script" id=2] + +[sub_resource type="DynamicFont" id=1] +size = 300 +use_filter = true +font_data = ExtResource( 1 ) + +[node name="Node2D" type="Node2D"] +script = ExtResource( 2 ) + +[node name="CanvasLayer" type="CanvasLayer" parent="."] + +[node name="CenterContainer" type="CenterContainer" parent="CanvasLayer"] +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +margin_right = 40.0 +margin_bottom = 40.0 +use_top_left = true + +[node name="countdown" type="Label" parent="CanvasLayer/CenterContainer"] +margin_left = -105.0 +margin_top = -175.0 +margin_right = 104.0 +margin_bottom = 175.0 +custom_colors/font_color = Color( 0.298039, 0.513726, 0.976471, 1 ) +custom_fonts/font = SubResource( 1 ) +text = "3" + +[node name="Timer" type="Timer" parent="."] diff --git a/game-over.gd b/game-over.gd new file mode 100644 index 0000000..7a066f6 --- /dev/null +++ b/game-over.gd @@ -0,0 +1,41 @@ +extends Node2D + +const team = preload("res://team.gd") +var mainmenu + +signal go_back + +func set_winner(blue_points, pink_points, killer_team): + var bp = blue_points + var pp = pink_points + + if killer_team == team.Team.BLUE: + bp += 5 + $CanvasLayer/extra_bp.visible = true + elif killer_team == team.Team.PINK: + pp += 5 + $CanvasLayer/extra_pp.visible = true + + if bp > pp: + $CanvasLayer/CenterContainer/winner.text = "Team Blue wins!" + else: + $CanvasLayer/CenterContainer/winner.text = "Team Pink wins!" + + $CanvasLayer/bp.text = "Team Blue: " + str(blue_points) + " points" + $CanvasLayer/pp.text = "Team Pink: " + str(pink_points) + " points" + + +func back(): + emit_signal("go_back") + get_tree().root.add_child(mainmenu) + get_tree().root.remove_child(self) + +# Called when the node enters the scene tree for the first time. +func _ready(): + mainmenu = load("res://mainmenu.tscn").instance() + $CanvasLayer/c/back.connect("button_up", self, "back") + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +#func _process(delta): +# pass diff --git a/game-over.tscn b/game-over.tscn new file mode 100644 index 0000000..9667523 --- /dev/null +++ b/game-over.tscn @@ -0,0 +1,110 @@ +[gd_scene load_steps=9 format=2] + +[ext_resource path="res://vera/VeraBd.ttf" type="DynamicFontData" id=1] +[ext_resource path="res://game-over.gd" type="Script" id=2] +[ext_resource path="res://vera/VeraIt.ttf" type="DynamicFontData" id=3] + +[sub_resource type="DynamicFont" id=2] +size = 40 +use_filter = true +font_data = ExtResource( 1 ) + +[sub_resource type="DynamicFont" id=3] +size = 40 +use_filter = true +font_data = ExtResource( 1 ) + +[sub_resource type="DynamicFont" id=1] +size = 140 +use_filter = true +font_data = ExtResource( 1 ) + +[sub_resource type="DynamicFont" id=4] +size = 40 +font_data = ExtResource( 3 ) + +[sub_resource type="DynamicFont" id=5] +size = 48 +use_filter = true +font_data = ExtResource( 1 ) + +[node name="Node2D" type="Node2D"] +script = ExtResource( 2 ) + +[node name="CanvasLayer" type="CanvasLayer" parent="."] + +[node name="bp" type="Label" parent="CanvasLayer"] +anchor_left = 0.15 +anchor_top = 0.7 +anchor_right = 0.195 +anchor_bottom = 0.7 +custom_colors/font_color = Color( 0.0117647, 0.627451, 1, 1 ) +custom_fonts/font = SubResource( 2 ) +text = "Team Blue: 0 points" + +[node name="pp" type="Label" parent="CanvasLayer"] +anchor_left = 0.6 +anchor_top = 0.7 +anchor_right = 0.85 +anchor_bottom = 0.7 +custom_colors/font_color = Color( 1, 0.282353, 0.956863, 1 ) +custom_fonts/font = SubResource( 3 ) +text = "Team Pink: 0 points" + +[node name="CenterContainer" type="CenterContainer" parent="CanvasLayer"] +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +margin_right = 40.0 +margin_bottom = 40.0 +use_top_left = true + +[node name="winner" type="Label" parent="CanvasLayer/CenterContainer"] +margin_left = -443.0 +margin_top = -82.0 +margin_right = 442.0 +margin_bottom = 82.0 +custom_fonts/font = SubResource( 1 ) +text = "Team wins!" + +[node name="extra_bp" type="Label" parent="CanvasLayer"] +visible = false +anchor_left = 0.218 +anchor_top = 0.759 +anchor_right = 0.218 +anchor_bottom = 0.793 +margin_right = 40.0 +margin_bottom = 14.0 +custom_colors/font_color = Color( 0.219608, 0.72549, 0.407843, 1 ) +custom_fonts/font = SubResource( 4 ) +text = "+5 points!" + +[node name="extra_pp" type="Label" parent="CanvasLayer"] +visible = false +anchor_left = 0.666 +anchor_top = 0.759 +anchor_right = 0.666 +anchor_bottom = 0.793 +margin_right = 40.0 +margin_bottom = 14.0 +custom_colors/font_color = Color( 0.219608, 0.72549, 0.407843, 1 ) +custom_fonts/font = SubResource( 4 ) +text = "+5 points!" + +[node name="c" type="CenterContainer" parent="CanvasLayer"] +anchor_left = 0.5 +anchor_top = 0.8 +anchor_right = 0.5 +anchor_bottom = 0.8 +margin_right = 40.0 +margin_bottom = 40.0 +use_top_left = true + +[node name="back" type="Button" parent="CanvasLayer/c"] +margin_left = -71.0 +margin_top = -32.0 +margin_right = 70.0 +margin_bottom = 31.0 +custom_fonts/font = SubResource( 5 ) +text = "Back" diff --git a/mainmenu.gd b/mainmenu.gd new file mode 100644 index 0000000..5d01c12 --- /dev/null +++ b/mainmenu.gd @@ -0,0 +1,11 @@ +extends Node2D + +var game = load("res://Spatial.tscn").instance() + + +func start(): + get_tree().root.add_child(game) + get_tree().root.remove_child(self) + +func _ready(): + $CanvasLayer/CenterContainer2/Button.connect("button_up", self, "start") diff --git a/mainmenu.tscn b/mainmenu.tscn new file mode 100644 index 0000000..9acfeef --- /dev/null +++ b/mainmenu.tscn @@ -0,0 +1,59 @@ +[gd_scene load_steps=7 format=2] + +[ext_resource path="res://bg.png" type="Texture" id=1] +[ext_resource path="res://vera/VeraBI.ttf" type="DynamicFontData" id=2] +[ext_resource path="res://vera/VeraBd.ttf" type="DynamicFontData" id=3] +[ext_resource path="res://mainmenu.gd" type="Script" id=4] + +[sub_resource type="DynamicFont" id=1] +size = 180 +font_data = ExtResource( 2 ) + +[sub_resource type="DynamicFont" id=2] +size = 120 +use_filter = true +font_data = ExtResource( 3 ) + +[node name="Node2D" type="Node2D"] +script = ExtResource( 4 ) + +[node name="CanvasLayer" type="CanvasLayer" parent="."] + +[node name="TextureRect" type="TextureRect" parent="CanvasLayer"] +margin_right = 1920.0 +margin_bottom = 1080.0 +texture = ExtResource( 1 ) + +[node name="CenterContainer" type="CenterContainer" parent="CanvasLayer"] +anchor_left = 0.5 +anchor_top = 0.3 +anchor_right = 0.5 +anchor_bottom = 0.3 +margin_right = 40.0 +margin_bottom = 40.0 +use_top_left = true + +[node name="Label" type="Label" parent="CanvasLayer/CenterContainer"] +margin_left = -607.0 +margin_top = -106.0 +margin_right = 606.0 +margin_bottom = 105.0 +custom_fonts/font = SubResource( 1 ) +text = "Eat the Cat!" + +[node name="CenterContainer2" type="CenterContainer" parent="CanvasLayer"] +anchor_left = 0.5 +anchor_top = 0.7 +anchor_right = 0.5 +anchor_bottom = 0.7 +margin_right = 40.0 +margin_bottom = 40.0 +use_top_left = true + +[node name="Button" type="Button" parent="CanvasLayer/CenterContainer2"] +margin_left = -148.0 +margin_top = -74.0 +margin_right = 148.0 +margin_bottom = 73.0 +custom_fonts/font = SubResource( 2 ) +text = "Play" diff --git a/project.godot b/project.godot index 6554d14..2c62726 100644 --- a/project.godot +++ b/project.godot @@ -25,6 +25,11 @@ _global_script_classes=[ { "path": "res://powerup.gd" }, { "base": "KinematicBody", +"class": "RunningCat", +"language": "GDScript", +"path": "res://running-cat.gd" +}, { +"base": "KinematicBody", "class": "Zombie", "language": "GDScript", "path": "res://zombie.gd" @@ -33,13 +38,14 @@ _global_script_class_icons={ "Box": "", "Cat": "", "Powerup": "", +"RunningCat": "", "Zombie": "" } [application] config/name="nj26" -run/main_scene="res://Spatial.tscn" +run/main_scene="res://mainmenu.tscn" config/icon="res://icon.png" [display] @@ -0,0 +1,12 @@ +extends Cat + + +# Declare member variables here. Examples: +# var a = 2 +# var b = "text" + + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +#func _process(delta): +# pass diff --git a/running-cat.gd b/running-cat.gd new file mode 100644 index 0000000..2153557 --- /dev/null +++ b/running-cat.gd @@ -0,0 +1,32 @@ +class_name RunningCat extends KinematicBody + +var t +var speed: Vector3 +var last_t = 0 + +func _set_speed(): + t = randf() + speed = Vector3(randf() * 8.0, 0, randf() * 8.0) + + if randi() & 1: + speed.x = -speed.x + + if randi() & 1: + speed.y = -speed.y + + if randi() & 1: + speed.z = -speed.z + +func _process(delta): + last_t += delta + + if last_t >= t: + _set_speed() + last_t = 0 + + move_and_slide(speed) + +# Called when the node enters the scene tree for the first time. +func _ready(): + translate(Vector3(0, 0, 0)) + _set_speed() diff --git a/vera/CMakeLists.txt b/vera/CMakeLists.txt new file mode 100644 index 0000000..c956a86 --- /dev/null +++ b/vera/CMakeLists.txt @@ -0,0 +1,10 @@ +install(FILES + COPYRIGHT.TXT + README.TXT + RELEASENOTES.TXT + VeraBd.ttf + VeraBI.ttf + VeraIt.ttf + Vera.ttf + DESTINATION ${datadir}/data/fonts/vera +) diff --git a/vera/COPYRIGHT.TXT b/vera/COPYRIGHT.TXT new file mode 100755 index 0000000..e651be1 --- /dev/null +++ b/vera/COPYRIGHT.TXT @@ -0,0 +1,124 @@ +Bitstream Vera Fonts Copyright + +The fonts have a generous copyright, allowing derivative works (as +long as "Bitstream" or "Vera" are not in the names), and full +redistribution (so long as they are not *sold* by themselves). They +can be be bundled, redistributed and sold with any software. + +The fonts are distributed under the following copyright: + +Copyright +========= + +Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. Bitstream +Vera is a trademark of Bitstream, Inc. + +Permission is hereby granted, free of charge, to any person obtaining +a copy of the fonts accompanying this license ("Fonts") and associated +documentation files (the "Font Software"), to reproduce and distribute +the Font Software, including without limitation the rights to use, +copy, merge, publish, distribute, and/or sell copies of the Font +Software, and to permit persons to whom the Font Software is furnished +to do so, subject to the following conditions: + +The above copyright and trademark notices and this permission notice +shall be included in all copies of one or more of the Font Software +typefaces. + +The Font Software may be modified, altered, or added to, and in +particular the designs of glyphs or characters in the Fonts may be +modified and additional glyphs or characters may be added to the +Fonts, only if the fonts are renamed to names not containing either +the words "Bitstream" or the word "Vera". + +This License becomes null and void to the extent applicable to Fonts +or Font Software that has been modified and is distributed under the +"Bitstream Vera" names. + +The Font Software may be sold as part of a larger software package but +no copy of one or more of the Font Software typefaces may be sold by +itself. + +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL +BITSTREAM OR THE GNOME FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, +OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR +OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT +SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. + +Except as contained in this notice, the names of Gnome, the Gnome +Foundation, and Bitstream Inc., shall not be used in advertising or +otherwise to promote the sale, use or other dealings in this Font +Software without prior written authorization from the Gnome Foundation +or Bitstream Inc., respectively. For further information, contact: +fonts at gnome dot org. + +Copyright FAQ +============= + + 1. I don't understand the resale restriction... What gives? + + Bitstream is giving away these fonts, but wishes to ensure its + competitors can't just drop the fonts as is into a font sale system + and sell them as is. It seems fair that if Bitstream can't make money + from the Bitstream Vera fonts, their competitors should not be able to + do so either. You can sell the fonts as part of any software package, + however. + + 2. I want to package these fonts separately for distribution and + sale as part of a larger software package or system. Can I do so? + + Yes. A RPM or Debian package is a "larger software package" to begin + with, and you aren't selling them independently by themselves. + See 1. above. + + 3. Are derivative works allowed? + Yes! + + 4. Can I change or add to the font(s)? + Yes, but you must change the name(s) of the font(s). + + 5. Under what terms are derivative works allowed? + + You must change the name(s) of the fonts. This is to ensure the + quality of the fonts, both to protect Bitstream and Gnome. We want to + ensure that if an application has opened a font specifically of these + names, it gets what it expects (though of course, using fontconfig, + substitutions could still could have occurred during font + opening). You must include the Bitstream copyright. Additional + copyrights can be added, as per copyright law. Happy Font Hacking! + + 6. If I have improvements for Bitstream Vera, is it possible they might get + adopted in future versions? + + Yes. The contract between the Gnome Foundation and Bitstream has + provisions for working with Bitstream to ensure quality additions to + the Bitstream Vera font family. Please contact us if you have such + additions. Note, that in general, we will want such additions for the + entire family, not just a single font, and that you'll have to keep + both Gnome and Jim Lyles, Vera's designer, happy! To make sense to add + glyphs to the font, they must be stylistically in keeping with Vera's + design. Vera cannot become a "ransom note" font. Jim Lyles will be + providing a document describing the design elements used in Vera, as a + guide and aid for people interested in contributing to Vera. + + 7. I want to sell a software package that uses these fonts: Can I do so? + + Sure. Bundle the fonts with your software and sell your software + with the fonts. That is the intent of the copyright. + + 8. If applications have built the names "Bitstream Vera" into them, + can I override this somehow to use fonts of my choosing? + + This depends on exact details of the software. Most open source + systems and software (e.g., Gnome, KDE, etc.) are now converting to + use fontconfig (see www.fontconfig.org) to handle font configuration, + selection and substitution; it has provisions for overriding font + names and subsituting alternatives. An example is provided by the + supplied local.conf file, which chooses the family Bitstream Vera for + "sans", "serif" and "monospace". Other software (e.g., the XFree86 + core server) has other mechanisms for font substitution. + diff --git a/vera/README.TXT b/vera/README.TXT new file mode 100755 index 0000000..0f71795 --- /dev/null +++ b/vera/README.TXT @@ -0,0 +1,11 @@ +Contained herin is the Bitstream Vera font family. + +The Copyright information is found in the COPYRIGHT.TXT file (along +with being incoporated into the fonts themselves). + +The releases notes are found in the file "RELEASENOTES.TXT". + +We hope you enjoy Vera! + + Bitstream, Inc. + The Gnome Project diff --git a/vera/RELEASENOTES.TXT b/vera/RELEASENOTES.TXT new file mode 100755 index 0000000..270bc0d --- /dev/null +++ b/vera/RELEASENOTES.TXT @@ -0,0 +1,162 @@ +Bitstream Vera Fonts - April 16, 2003 +===================================== + +The version number of these fonts is 1.10 to distinguish them from the +beta test fonts. + +Note that the Vera copyright is incorporated in the fonts themselves. +The License field in the fonts contains the copyright license as it +appears below. The TrueType copyright field is not large enough to +contain the full license, so the license is incorporated (as you might +think if you thought about it) into the license field, which +unfortunately can be obscure to find. (In pfaedit, see: Element->Font +Info->TTFNames->License). + +Our apologies for it taking longer to complete the fonts than planned. +Beta testers requested a tighter line spacing (less leading) and Jim +Lyles redesigned Vera's accents to bring its line spacing to more +typical of other fonts. This took additional time and effort. Our +thanks to Jim for this effort above and beyond the call of duty. + +There are four monospace and sans faces (normal, oblique, bold, bold +oblique) and two serif faces (normal and bold). Fontconfig/Xft2 (see +www.fontconfig.org) can artificially oblique the serif faces for you: +this loses hinting and distorts the faces slightly, but is visibly +different than normal and bold, and reasonably pleasing. + +On systems with fontconfig 2.0 or 2.1 installed, making your sans, +serif and monospace fonts default to these fonts is very easy. Just +drop the file local.conf into your /etc/fonts directory. This will +make the Bitstream fonts your default fonts for all applications using +fontconfig (if sans, serif, or monospace names are used, as they often +are as default values in many desktops). The XML in local.conf may +need modification to enable subpixel decimation, if appropriate, +however, the commented out phrase does so for XFree86 4.3, in the case +that the server does not have sufficient information to identify the +use of a flat panel. Fontconfig 2.2 adds Vera to the list of font +families and will, by default use it as the default sans, serif and +monospace fonts. + +During the testing of the final Vera fonts, we learned that screen +fonts in general are only typically hinted to work correctly at +integer pixel sizes. Vera is coded internally for integer sizes only. +We need to investigate further to see if there are commonly used fonts +that are hinted to be rounded but are not rounded to integer sizes due +to oversights in their coding. + +Most fonts work best at 8 pixels and below if anti-aliased only, as +the amount of work required to hint well at smaller and smaller sizes +becomes astronomical. GASP tables are typically used to control +whether hinting is used or not, but Freetype/Xft does not currently +support GASP tables (which are present in Vera). + +To mitigate this problem, both for Vera and other fonts, there will be +(very shortly) a new fontconfig 2.2 release that will, by default not +apply hints if the size is below 8 pixels. if you should have a font +that in fact has been hinted more agressively, you can use fontconfig +to note this exception. We believe this should improve many hinted +fonts in addition to Vera, though implemeting GASP support is likely +the right long term solution. + +Font rendering in Gnome or KDE is the combination of algorithms in +Xft2 and Freetype, along with hinting in the fonts themselves. It is +vital to have sufficient information to disentangle problems that you +may observe. + +Note that having your font rendering system set up correctly is vital +to proper judgement of problems of the fonts: + + * Freetype may or may not be configured to in ways that may + implement execution of possibly patented (in some parts of the world) + TrueType hinting algorithms, particularly at small sizes. Best + results are obtained while using these algorithms. + + * The freetype autohinter (used when the possibly patented + algorithms are not used) continues to improve with each release. If + you are using the autohinter, please ensure you are using an up to + date version of freetype before reporting problems. + + * Please identify what version of freetype you are using in any + bug reports, and how your freetype is configured. + + * Make sure you are not using the freetype version included in + XFree86 4.3, as it has bugs that significantly degrade most fonts, + including Vera. if you build XFree86 4.3 from source yourself, you may + have installed this broken version without intending it (as I + did). Vera was verified with the recently released Freetype 2.1.4. On + many systems, 'ldd" can be used to see which freetype shared library + is actually being used. + + * Xft/X Render does not (yet) implement gamma correction. This + causes significant problems rendering white text on a black background + (causing partial pixels to be insufficiently shaded) if the gamma of + your monitor has not been compensated for, and minor problems with + black text on a while background. The program "xgamma" can be used to + set a gamma correction value in the X server's color pallette. Most + monitors have a gamma near 2. + + * Note that the Vera family uses minimal delta hinting. Your + results on other systems when not used anti-aliased may not be + entirely satisfying. We are primarily interested in reports of + problems on open source systems implementing Xft2/fontconfig/freetype + (which implements antialiasing and hinting adjustements, and + sophisticated subpixel decimation on flatpanels). Also, the + algorithms used by Xft2 adjust the hints to integer widths and the + results are crisper on open source systems than on Windows or + MacIntosh. + + * Your fontconfig may (probably does) predate the release of + fontconfig 2.2, and you may see artifacts not present when the font is + used at very small sizes with hinting enabled. "vc-list -V" can be + used to see what version you have installed. + +We believe and hope that these fonts will resolve the problems +reported during beta test. The largest change is the reduction of +leading (interline spacing), which had annoyed a number of people, and +reduced Vera's utility for some applcations. The Vera monospace font +should also now make '0' and 'O' and '1' and 'l' more clearly +distinguishable. + +The version of these fonts is version 1.10. Fontconfig should be +choosing the new version of the fonts if both the released fonts and +beta test fonts are installed (though please discard them: they have +names of form tt20[1-12]gn.ttf). Note that older versions of +fontconfig sometimes did not rebuild their cache correctly when new +fonts are installed: please upgrade to fontconfig 2.2. "fc-cache -f" +can be used to force rebuilding fontconfig's cache files. + +If you note problems, please send them to fonts at gnome dot org, with +exactly which face and size and unicode point you observe the problem +at. The xfd utility from XFree86 CVS may be useful for this (e.g. "xfd +-fa sans"). A possibly more useful program to examine fonts at a +variety of sizes is the "waterfall" program found in Keith Packard's +CVS. + + $ cvs -d :pserver:anoncvs@keithp.com:/local/src/CVS login + Logging in to :pserver:anoncvs@keithp.com:2401/local/src/CVS + CVS password: <hit return> + $ cvs -d :pserver:anoncvs@keithp.com:/local/src/CVS co waterfall + $ cd waterfall + $ xmkmf -a + $ make + # make install + # make install.man + +Again, please make sure you are running an up-to-date freetype, and +that you are only examining integer sizes. + +Reporting Problems +================== + +Please send problem reports to fonts at gnome org, with the following +information: + + 1. Version of Freetype, Xft2 and fontconfig + 2. Whether TT hinting is being used, or the autohinter + 3. Application being used + 4. Character/Unicode code point that has problems (if applicable) + 5. Version of which operating system + 6. Please include a screenshot, when possible. + +Please check the fonts list archives before reporting problems to cut +down on duplication. diff --git a/vera/Vera.ttf b/vera/Vera.ttf Binary files differnew file mode 100755 index 0000000..58cd6b5 --- /dev/null +++ b/vera/Vera.ttf diff --git a/vera/VeraBI.ttf b/vera/VeraBI.ttf Binary files differnew file mode 100755 index 0000000..b55eee3 --- /dev/null +++ b/vera/VeraBI.ttf diff --git a/vera/VeraBd.ttf b/vera/VeraBd.ttf Binary files differnew file mode 100755 index 0000000..51d6111 --- /dev/null +++ b/vera/VeraBd.ttf diff --git a/vera/VeraIt.ttf b/vera/VeraIt.ttf Binary files differnew file mode 100755 index 0000000..cc23c9e --- /dev/null +++ b/vera/VeraIt.ttf @@ -11,6 +11,7 @@ enum Dir { } signal powerup +signal cat_killed var dir = Dir.none var lastdir @@ -22,9 +23,11 @@ var myteam var myid # powerups var powerup = pw.Type.none +var running_cat: Node var images: Dictionary = {} var speed: Vector3 +var can_move: bool = false func expired(): $magnet_light.visible = false @@ -35,6 +38,10 @@ func expired(): func _on_timer(): expired() +func set_can_move(value): + print(self) + can_move = value + func _physics_process(delta): var id = "p" + str(myid) + "_" var updown = ((Input.get_action_strength(id + "down") @@ -44,6 +51,12 @@ func _physics_process(delta): var curdir = Dir.none var vspeed = 4 + for i in range(get_slide_count()): + var col = get_slide_collision(i).collider + + if running_cat and col == running_cat: + emit_signal("cat_killed", self) + if powerup == pw.Type.superspeed: vspeed = 8 @@ -222,9 +235,9 @@ func run_powerup(boxes, zombies): for b in boxes: box_explosion(b) - for z in zombies: - if z != self: - zombie_explosion(z) +# for z in zombies: +# if z != self: +# zombie_explosion(z) pw.Type.magnet: for b in boxes: |
