Skip to content

Instantly share code, notes, and snippets.

View NearHuscarl's full-sized avatar
🏚️

Near Huscarl NearHuscarl

🏚️
View GitHub Profile
- Tiny: all players are tiny but fast
- Chonky: chonky but slow
- Ninja: all players can move extremely fast, jump higher
- Invisible: all players are invisible
- Weak: x10 to all damage types
- DrugIsCool: all players have unlimited strengthboost and speedboost
- Unstable: have a chance of exploding when taking damage
- Nuclear: explodes and destroyes all entities in a radius on dealth
- Teleport: players are teleported when taking damage
- TimeWarp: time slows down and speeds up continously
@NearHuscarl
NearHuscarl / API_STRUCTURES.md
Last active March 20, 2022 14:30
API structures
  • Powerup manager: create and manage different types of powerup
  • Player manager: manage instances of Player which is a wrapper of IPlayer
    • Player: an extension of IPlayer
    • Different type of players (robots, hookers, gangsters, thugs, pirates,...)
    • Player can be subclassed to create special abilities using lifecycles, properties in the base class E.g. thugs loot objects for weapon, engineer build turrets, metrocop spawns sweepers...)
@NearHuscarl
NearHuscarl / char_anims.json
Created March 8, 2022 18:14
Superfighters Deluxe animation database
This file has been truncated, but you can view the full file.
{
"header": {
"target": "w",
"formatVersion": 5,
"hidef": false,
"compressed": 128
},
"readers": [
{
"type": "SFD.Content.AnimationsContentTypeReader, SFD.Content",
@NearHuscarl
NearHuscarl / items.db.ts
Created March 8, 2022 18:11
Superfighters Deluxe item database
// this file is auto generated. Do not touch.
import { PaletteName } from "./palettes";
export type Gender = 0 | 1 | 2;
export type Item = {
id: ItemID;
gameName: string;
fileName: ItemID;
equipmentLayer: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
// https://gist.github.com/NearHuscarl/29b150557e866b7910e50a84c11bb18e
// https://dartpad.dev/29b150557e866b7910e50a84c11bb18e?null_safety=true
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
void main1() {
const a = <String>[];
// https://dartpad.dev/6182feb015bbb179e08bf5eb61cbabac?null_safety=true
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@NearHuscarl
NearHuscarl / main.dart
Last active October 4, 2021 08:06
57100219/how-to-animate-the-items-rendered-initially-using-animated-list-in-flutter
// https://gist.github.com/NearHuscarl/e5ddb59b4ed745d693f5d9025519d789
// https://stackoverflow.com/a/59121771/9449426
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
@NearHuscarl
NearHuscarl / main.dart
Last active March 7, 2021 08:21
51686868/gradient-text-in-flutter
// https://gist.github.com/NearHuscarl/195907b36fef5aefbf8682133b95c01d
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
@NearHuscarl
NearHuscarl / main.dart
Last active July 13, 2022 16:20
58360989/programmatically-lighten-or-darken-a-hex-color-in-dart
// https://gist.github.com/NearHuscarl/29c5577b94571d00926723c85a370e43
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
@NearHuscarl
NearHuscarl / main.dart
Last active March 7, 2021 07:58 — forked from jcollins-g/index.html
58517331/how-to-add-a-button-with-icon-in-flutter-app
// https://gist.github.com/NearHuscarl/6e8c4dff9ebaabf2980ae05fee8ae109
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(