Skip to main content


Christmas tree in qbasic/qb64


I ported my Christmas tree code to qbasic/qb64. Works with Qbasic in dosbox and QB64PE

```
DECLARE SUB DisplayTree ()
DECLARE SUB DisplayMessage ()

DO
CLS
DisplayTree
DisplayMessage
FOR delay = 1 TO 3000: NEXT delay 'Replace this line with sleep 1 in QB64
LOOP

SUB DisplayMessage
year = VAL(MID$(DATE$, 7, 4)) + 1
COLOR 7
PRINT SPACE$(5); "MERRY CHRISTMAS"
PRINT SPACE$(5); "HAPPY NEW YEAR "; year
PRINT SPACE$(5); "Press CTRL+BREAK TO EXIT"
END SUB

SUB DisplayTree
DIM colors(3) AS INTEGER
colors(0) = 4 ' Red
colors(1) = 10 ' Light Green
colors(2) = 1 ' Blue

COLOR 2
PRINT SPACE$(17); "*"
randomColorIndex = INT(RND * 3) ' Randomly select an index from 0
stars = 3
FOR i = 0 TO 17
IF i <= 14 THEN
spaces = 14 - i + 1
COLOR colors(randomColorIndex) ' Set the text random color
PRINT SPACE$(spaces); "o";
COLOR 2
PRINT STRING$(stars, "*");
COLOR colors(randomColorIndex)
PRINT "o"
stars = stars + 2
ELSE
' Print the tree trunk
COLOR 2
PRINT SPACE$(14); "######"
END IF
NEXT i
END SUB
```

#programming #dos #dosbox #qb64 #qb64pe #qbasic #xmas #christmas #christmas2024 #basic



Christmas tree python script


I made a Python script that displays a Christmas tree with flashing lights in the terminal.

import random
import time
from datetime import date
import os

def clear_screen():
"""Clears the console screen."""
os.system('cls' if os.name == 'nt' else 'clear')

def display_tree():
"""Displays a Christmas tree with animations."""
colors = [33, 34, 31] # ANSI color codes for yellow, blue, and red
color = random.choice(colors) # Randomly select a color
print('\033[32m') # Set text color to green

# Print the top star of the tree
print(" " * 13 + "*")

stars = 3
for i in range(13):
if i <= 8:
spaces = 10 - i + 1
print(" " * spaces, end="")
print(f'\033[{color}m' + "o" + '\033[32m', end="") # Decorate with a colored "o"
print("*" * stars, end="")
print(f'\033[{color}m' + "o")
stars += 2
else:
# Print the tree trunk
print('\033[32m', end="") # Set text color to green
print(" " * 10 + "#######")

# Reset text formatting
print("\033[m")

def display_message():
"""Displays the holiday message."""
year = date.today().year + 1
print(" " * 5 + "MERRY CHRISTMAS")
print(" " * 5 + f"HAPPY NEW YEAR {year}")
print(" " * 5 + "Press CTRL+Z TO EXIT")

def main():
"""Main function to run the animated Christmas tree."""
while True:
clear_screen()
display_tree()
display_message()
time.sleep(0.3) # Pause for 0,3 seconds

if __name__ == "__main__":
main()


#python #python3 #programming #code #christmas #christmas2024 #xmas

Vplog Golpv reshared this.


Digital Echos reshared this.


Lucky Tower Ultimate is an absurdly funny dungeon crawler you need to play gamingonlinux.com/2024/11/luck…

#SteamDeck #Gaming #Linux

Digital Echos reshared this.

in reply to Liam @ GamingOnLinux 🐧🎮

"As I walked into a room that seemed safe, so I took a hand off my controller for a few seconds to grab a drink next to me and the floor opened up and goodbye hero — dammit!"

Oh, so it's not turn-based, and you were lulled into a false sense of pause safety. Heh,


Digital Echos reshared this.


EmuDeck 2.3 Beta brings a new unified UI and multi language support gamingonlinux.com/2024/09/emud…

#SteamDeck #Emulation #EmuDeck #Linux

Digital Echos reshared this.

in reply to Liam @ GamingOnLinux 🐧🎮

I stopped using Emudeck a while ago because I couldn't find a way to turn off the touch pad radial menu that I kept hitting on accident. I ended up setting up the emulators and Steam ROM Manager manually. While it's not for everyone, it was the only way I could get things just the way I wanted them. Besides, tinkering is the best part of setting up any device IMO

Digital Echos reshared this.


Terrorformer TD is a seriously good tower defense game where you shape the battlefield gamingonlinux.com/2024/09/terr…

#TowerDefense #IndieGame #LinuxGaming

reshared this


Digital Echos reshared this.


OneShot: World Machine Edition is coming to Steam with Steam Deck support gamingonlinux.com/2024/09/ones…

#OneShot #SteamDeck

reshared this



Digital Echos reshared this.


Retro racer Slipstream has a final update with new content, mod tools, and Steam Workshop support gamingonlinux.com/2024/09/retr…

#Linux #RetroGaming #SteamDeck

Digital Echos reshared this.


Digital Echos reshared this.


Run a paranormal investigation business in point and click adventure The Phantom Fellows gamingonlinux.com/2024/09/run-…

#IndieGame #Linux #SteamDeck #AdventureGames

Digital Echos reshared this.

in reply to Liam @ GamingOnLinux 🐧🎮

is the game related to Darkside Detective? 🤔
Looks very much so, but the developers/distributor seems to be different(?)

Digital Echos reshared this.


ICYMI: Save a town from paranormal infestation in the point and click adventure The founders of [redacted] gamingonlinux.com/2024/08/save…

#IndieGame #Linux

Digital Echos reshared this.


Digital Echos reshared this.


Kitsune Tails is OUT NOW!! Run, jump, and dash across a land inspired by Japanese mythology and untangle the love triangle between three young women on a journey of self discovery. Explore the complicated relationships between kitsune and humans through classic platforming action.

get it now on steam store.steampowered.com/app/132… or itch eniko.itch.io/kitsunetails

we're a small underfunded team with a majority queer developers, and while we're punching way above our weight class we need the support of our community if this game is going to be a success. please boost this post, and if you can afford it buy it on steam and leave a positive review on the first day (the text doesn't matter, only the thumbs up, so "i like gay fops" is totally valid as a review)

i also want to prove fedi is powerful enough to make an indie game succeed, so even if you're not personally that into the game, please boost this post? 🙏

#KitsuneTails #QueerGames #GameDev #PixelArt

in reply to Eniko | Kitsune Tails out now!

@Njord @rally @Lizstar @kitsunegames Get followed, gamers! 😆

Edit: But also, thank you all for your work on this game! I really enjoy it. ❤️

This entry was edited (3 weeks ago)

Digital Echos reshared this.


Vibrant Sokoban-style game Puzzledorf now available for Linux, works great on Steam Deck gamingonlinux.com/2024/07/vibr…

#Linux #SteamDeck

Digital Echos reshared this.


Digital Echos reshared this.


SIX. DAYS

until kitsune tails comes rolling onto steam and itch, like a heckin snow pupper climbing a frozen waterfall

info & wishlist via kitsunegames.com/kitsunetails

#KitsuneTails #QueerGames #GameDev #PixelArt

reshared this

in reply to Eniko | Kitsune Tails out now!

My thoughts immediately went: some modder is going to remake "Please Just Do Better :)" in this
This entry was edited (4 months ago)

Digital Echos reshared this.


POLL: what self-hosted how-to video should I do first, Nextcloud or Jellyfin? Boosts appreciated.

(Note: I am not looking for suggestions beyond these two options, nor am I seeking technical advice)

#selfhosted #linux

  • Nextcloud (48%, 358 votes)
  • Jellyfin (51%, 381 votes)
739 voters. Poll end: 4 months ago

This entry was edited (5 months ago)

reshared this

in reply to Veronica Explains

Please do nextcloud. I might actually be able to get it set up. I find your guides usually end in my success.
in reply to Darkas Vim

@Darkasvim I've had so much trouble setting it up with either Docker or regularly, but I've managed it quite simply with NixOS 🫢
@vkc

Digital Echos reshared this.


Dunno who needs to hear this but:

Game dev articles a lot of times say "nobody wants to play this kind of game anymore" or "we have to do it this way now because," and

just ignore those bits. They're talking about AAA, if not F2P gamers, and seriously: who cares?

Make games for YOUR audience.

#GameDev

This entry was edited (5 months ago)

reshared this

in reply to Megan Fox

The one that really stuck in my craw recently was we "can't make RPGs like Morrowind anymore" because "nobody wants to wander around with so little direction" and

uh my guy, your audience just kinda sucks. Maybe you should take less budget and make smaller games for fewer peoples so you're allowed to say something with them again.

Jack of all trades reshared this.

in reply to Megan Fox

Anyways here's a modern indie Morrowind where you are expected to wander around with little to no direction

It doesn't even have a modern combat system, it's super basic, can you even imagine

It probably did terrib-<hand to ear> wait I'm happy to say, store.steampowered.com/app/157…


Digital Echos reshared this.


Filing another bug under "unexpected but excellent".

Digital Echos reshared this.


Microsoft now blaming the EU for the crowdstrike issue, because the EU made them open their APIs to third party developers in 2009 is hilarious.

If your APIs had any kind of gracious error handling, this wouldn’t be an issue. Fix your bad code, Microsoft, stop pointing fingers.

in reply to Nick @ The Linux Experiment

99% of organisations running Windows is also a bad thing.

Monoculture is fragile.

Diversity is more anti-fragile.

This isn't about the n and n-1 pattern for more resilience. This is about n and m.


Digital Echos reshared this.


surprise! i put a fantasy console in kitsune tails! not only can you use the free and open source tiled map editor to create custom levels, but you can create your own games in lua using the same simple framework we used ourselves for all the minigames in the game. this gif is me making a sample game i call "ghostzilla" from scratch

oh right, and we've prepared an arcade and over half a dozen minigames for you in the game. one's even 3D! check out the full trailer here: youtube.com/watch?v=0EQkhejCoR…

wishlist & more info at kitsunegames.com/kitsunetails

#KitsuneTails #GameDev #PixelArt #FantasyConsole #QueerGames

This entry was edited (5 months ago)

reshared this

in reply to Till

@xilebo lua is much more easily portable, and much easier to integrate than javascript. also, lua is very frequently used for scripting in games, like as a scripting language for games, scripting for emulators, and a language for fantasy consoles, so many people are already familiar with it

lua is also easier to sandbox and customize

@Till
in reply to Eniko | Kitsune Tails out now!

Lua is very common as a scripting language for games. That's why I'm curious about it.
But I don't think, I've ever seen lua outside of the gaming area. And js is a much more common language to know. So I've always wondered, why so many games use lua instead of js, when js would reach so many more people.

But if lua is so much easier to integrate, that makes perfect sense.

Thank you.


Digital Echos reshared this.


Kitsune Tails will be a platformer to remember, full of mini-games and powerful modding tools gamingonlinux.com/2024/07/kits…

#Linux #SteamDeck

reshared this



Digital Echos reshared this.


Announcing the first release of #OpenCrystalCaves, an #OpenSource reimplementation of the #DOS platformer game, #CrystalCaves!

congusbongus.itch.io/opencryst…

This release is barely playable - you can move around in the main level and enter/exit barren, unimplemented levels. Stay tuned for more to come!

#ScreenshotSaturday #GameDev #RetroGaming

This entry was edited (5 months ago)

reshared this



What are Indie Games? Part 3: The decline in the 90s


In the 1990s, the indie game development scene shrank as PCs became the dominant computer system and a viable gaming platform. Commercial games grew larger, more complex, and began competing with gaming consoles. Additionally, the rise of 3D graphics further complicated the landscape. Indie developers, lacking the financial and technical resources to match these commercial giants, saw their presence decline.

Despite these challenges, there were some positive developments. Shareware emerged as a popular distribution method for smaller games. In this model, a portion of the game was distributed for free, typically via the internet or gaming magazines, and players could purchase the full version if they enjoyed the sample.

Another significant advancement was the release of Adventure Game Studio (AGS). This free toolkit allowed hobbyist developers to easily create their own adventure games, emulating the style of classics from Sierra and Lucasfilm.


Image/photo

#indiegame $indiegamehistory #gamedev #ags #adventuregamestudio


Digital Echos reshared this.


This week's #Linux and #OpenSource News video is coming early!

In this one, I talk about the #GNOME Foundation's Executive Director leaving after just 10 months, about Fedora 41 dropping X11 from the install media, some Cosmic news and the alpha looking extremely close, plus a big class action lawsuit against #Github Copilot being partly dismissed, with the more important part being allowed to proceed:

youtube.com/watch?v=KzXl6a8iOf…

Digital Echos reshared this.


Digital Echos reshared this.


Do you play games? Congrats, you may call yourself a gamer if you wish and don’t let anyone tell you otherwise 👍

Digital Echos reshared this.

in reply to Liam @ GamingOnLinux 🐧🎮

As far as i know, the concept of gamer is defined as "A person who plays videogames in any device that allows it"

There's no big mistery here

This entry was edited (5 months ago)

Digital Echos reshared this.


Open Source implementation of GOG Galaxy's Communication Service, Comet sees a first release gamingonlinux.com/2024/07/open…

#GOG #Linux #SteamDeck

Digital Echos reshared this.

in reply to Liam @ GamingOnLinux 🐧🎮

I have to say that I've been kind of looking forward to this.

I saw this project being mentioned in the talk about "Linux Gaming beyond Steam" at the Ubuntu Summit, so I've been keeping tabs on it.

youtu.be/QrLhqIASRbE?feature=s…

I am really glad to see that more progress has been made and we are getting closer to fully supporting the Communication Service.

This entry was edited (5 months ago)
in reply to Liam @ GamingOnLinux 🐧🎮

would be great if heroic implements this, it depends on how development goes oc. But looks promising

Digital Echos reshared this.


Today I'm trying COSMIC desktop for the first time. So far I really like it.

@system76 has done a good job with @COSMIC_desktop from what I can observe.

Digital Echos reshared this.

Unknown parent

@hankg what is that last bit that keeps you on Cinnamon?
Unknown parent

@hankg you can make a taskbar/start menu as well. The Start Menu part is a 3rd party applet but it is possible!

Digital Echos reshared this.


Did you know I made a free to play action roguelike game that can be played entirely with your mouse?

It's available at tinybirdgames.itch.io/cursory-… on both Windows and Linux!

This entry was edited (5 months ago)

reshared this


Digital Echos reshared this.


while we've managed to scrimp and save to make it to kitsune tails' release day, releasing august 1st means we won't see any money for almost 2 months until its the end of september

our other games are currently on sale on itch at eniko.itch.io/ and steam at store.steampowered.com/bundle/… and buying some or all of them would help tremendously

EDIT: just for clarity this is a "we're worried about making rent" situation and not "oh no the business' coffers are looking a little bit empty"

This entry was edited (5 months ago)

reshared this


Digital Echos reshared this.


I read a bunch of stuff on the various levels of security of #Linux packaging formats, whether it’s Flatpak, snaps, AppImages, or native packages.

There seem to be a lot of confusion on app verification and what it truly means, on the sandbox, on the role of a package maintainer for a distribution, so I decided to bust a few myths:

youtu.be/xw3NxIWpylc

Digital Echos reshared this.

in reply to Nick @ The Linux Experiment

nice video, well structured and explains well the critical issues of the different formats and approaches to packaging.

In the end there are pros and cons in all options, but this not only for the applications that the user wants to install, but also for the system components, which is why I am in favor of immutable and hardened systems, not so much to prevent what can and cannot do the software or to limit the user but to ensure the consistency and state of system components.

in reply to Nick @ The Linux Experiment

Good video. Nicely explained for people who want to know but don't want to spend time searching like me 😀 👍 I didn't know a bunch of stuff 👍

Digital Echos reshared this.


Antikythera mechanism’s calendar ring likely tracked the lunar calendar

Physicists drew on statistical techniques used to analyze gravitational waves.

arstechnica.com/science/2024/0…

Digital Echos reshared this.




Basic Programming Language Part 2: Modern Day


The popularity of BASIC has significantly declined in recent years, with many new programming languages taking its place. Python, for example, is frequently recommended as an easy-to-learn, beginner-friendly programming language. Despite this decline, BASIC has not completely disappeared and still has several modern implementations. Some of the notable ones include:

1. FreeBASIC: A modern BASIC compiler for Windows, Linux, FreeBSD, and even MS-DOS. FreeBASIC offers modern features like object-oriented programming and support for OpenGL and DirectX. By default, it is not compatible with older BASIC programs, but compatibility can be achieved by running FreeBASIC with the -lang qb parameter, which attempts to replicate QuickBASIC behavior and can compile many QuickBASIC programs without modification. Unlike QuickBASIC, FreeBASIC is a command-line-only compiler unless users manually install an external integrated development environment (IDE). IDEs specifically made for FreeBASIC include FBide and FbEdit. FreeBASIC is a free, open-source product.

2. QB64PE: A BASIC compiler for Microsoft Windows, Linux, and Mac OS X, designed to be compatible with Microsoft QBasic and QuickBASIC. It offers a modern audio and graphics library, as well as networking capabilities. QB64PE maintains strong compatibility with QuickBASIC and QBasic, though not 100%, and includes a built-in IDE. QB64PE is a free, open-source product.

3. Visual Basic Net: A continuation of Microsoft's Visual Basic, implemented on .NET, Mono, and the .NET Framework. Visual Basic is often used in conjunction with the Windows Forms GUI library to create desktop applications for Windows. Programming with Visual Basic .NET involves dragging and dropping controls on a form using a GUI designer and writing the corresponding code for each control. The Visual Basic .NET compiler is open source, while Visual Studio is free with some commercial features.

4. Microsoft's Small Basic: A BASIC interpreter with a built-in IDE, designed to help students transition from visual programming languages like Scratch to text-based programming. The language has only 14 keywords and includes a "Turtle" graphics library inspired by the Logo family of programming languages. Small Basic is available for Windows and online, and is a free, open-source program.

5. Gambas: An object-oriented dialect of the BASIC programming language, accompanied by an integrated development environment. Available for Linux and FreeBSD, Gambas is designed to build graphical programs using the Qt or GTK toolkit. The Gambas IDE is written in Gambas and includes a GUI designer to aid in creating user interfaces in an event-driven style. Gambas can also create command-line applications and text-based user interfaces. It is a free, open-source program.

6. SmallBASIC: Designed to run on minimal hardware, with primary support for platforms like Palm OS, where memory, CPU cycles, and screen space are limited. SmallBASIC supports applications similar to those of GW-BASIC and QBasic on the IBM PC, with capabilities for drawing graphic primitives, creating sounds, string manipulation, and displaying text in various fonts. It is also intended as a tool for mathematics, with built-in functions for unit conversion, algebra, matrix math, trigonometry, statistics, and two- and three-dimensional equation graphing.

7. Others: Several lesser-known implementations of BASIC exist, such as Dragon BASIC for the Gameboy Advance and Nintendo DS, wwwBasic for embedding BASIC directly into web pages, Tiny-Basic, a BASIC implementation in Python, and Quite BASIC and qbjs, online implementations of BASIC.

#basic #programming #programming-language #programminglanguage #freebasic #smallbasic #small-basic #qbasic #qb64 #qb64pe #visualbasic #net #.net #gambas #wwwbasic

in reply to Digital Echos

see the comparison here chat-to.dev/post?id=124

Digital Echos reshared this.


Congratulations on 15 years @gamingonlinux youtu.be/jjqS6u7r6w8

Digital Echos reshared this.


In this week's #Linux and #OpenSource News video, we have:

- #Fedora 42 getting a proposal for telemetry (opt-in, fortunately)

- Deepin adding #AI features to their future release, and most of it is running locally

- #Google making changes to #ChromeOS, which might spell the end of ChromeOS Flex

And a lot more as well, including some good progress on x86 emulation on ARM:

youtube.com/watch?v=vChR45Waq5…

Digital Echos reshared this.

in reply to Nick @ The Linux Experiment

@jason123santa @pixl_xip Telemetry can be terrible for privacy, but I do think if we want Linux to get mainstream success we need some degree of telemetry, especially for smashing bugs and learning what software people use and how

Digital Echos reshared this.


KDE Plasma is great. GNOME is awesome. Window managers are wonderful. Everything has quirks but I love all these options we have. I can't wait to see where we take them.

#Linux

reshared this



Blackout


Image/photo

Blackout is an indie point & click adventure game developed by Carl Lenngren, Erik Schröder, Fredrik Edman, Viktor Holmér, and Ulf Malmberg. In the game, you play as a young witch with amnesia trapped in what seems to be a haunted house. Your objective is to uncover the mysteries within the house and attempt to escape by solving various puzzles typical of adventure games. These include picking up objects, using them on other items or characters, combining objects, or conversing with other characters.
The game features stunning 2D hand-drawn graphics with a dark tone and minimal lighting, giving it a spooky atmosphere. The music is haunting and complements the eerie sound effects of the night, which are used throughout the game without spoken dialogue. Instead, beeping accompanies conversations in the game.
Overall, Blackout offers an enjoyable gaming experience with intriguing puzzles and a simple yet engaging plot. I highly recommend giving it a try. It would be great to see a sequel or another adventure game with a similar spooky atmosphere created by this talented team.

Image/photo


#indie #indiegame


Digital Echos reshared this.


The community won the battle, so PvP battler Fishards is now open source gamingonlinux.com/2024/07/the-…

#OpenSource #Godot #Linux #SteamDeck

Digital Echos reshared this.


Digital Echos reshared this.


been worried about finding linux users to make sure kitsune tails' linux build on steam actually works then realized i have 9000 followers on fedi

i think i'll be able to find some volunteers 🤔

EDIT: note that this was mostly a joke about the proportion of linux users on fedi >_>

This entry was edited (5 months ago)

reshared this



What is an Emulator? Part 2 Benefits


Emulation plays a crucial role in digital preservation, helping combat the issue of obsolescence. By recreating an original computer environment on current machines, emulators allow users to access any application or operating system without alterations to their functionality. This process can be time-consuming and challenging but is essential for maintaining authenticity with digital objects.

Emulation offers several benefits: it can enhance graphics quality compared to the original hardware, particularly in games. Additionally, emulators may provide extra features that were not available on the initial system. They also preserve the look, feel, and behavior of the digital object, which is just as important as its data itself.

In terms of cost-efficiency, while developing an emulator can be expensive initially, it might prove to be a more economical choice in the long run. Many open source emulators are available under licenses like GNU General Public License, enabling widespread collaboration among developers.

One key advantage of emulation is its ability to enable software exclusive to one system to function on another. For instance, an emulator can allow playing PlayStation 2 games on a PC, which is particularly useful when the original hardware is hard to find or incompatible with modern equipment.
Image/photo

#emulator #roms #emulation #emu

This entry was edited (5 months ago)