Code With Huw
Code With Huw
  • 230
  • 1 038 048
How To Program Interactive Characters in an Adventure Game
How easy would it be to add characters that can move around the map, take and drop treasures and respond to questions or commands? It turns out that (if you’ve followed the advice in this course!) it is really easy. In this video, I show how.
To follow this course, bookmark the Complete Course In Adventure Game Programming Playlist:
ua-cam.com/video/2Lo_SE9qHH8/v-deo.html
Huw Collingbourne is author of The Little Book Of Adventure Game Programming In C#. Available from:
* Amazon (US) amzn.to/33M6sQ4
* Amazon (UK) amzn.to/2YtaBrj
And also, The Little Java Book Of Adventure Game Programming. Available from:
* Amazon (US) amzn.to/3gizI93
* Amazon (UK) amzn.to/3mydF0e
If you are eager to get working on your own adventure game, you can download Huw’s free game-writing code libraries, BIFF (the Bitwise Interactive Fiction Framework) from:
www.bitwisebooks.com
Facebook: CodeWithHuw
Переглядів: 950

Відео

Learn Any Programming Language In 3 Hours!
Переглядів 165 тис.14 днів тому
How do you go about learning a new programming language - Fast? In this lesson, I’ll the way I learn new languages so that I can go from no knowledge at all to writing moderately complicated programs in about three hours. Of course, that doesn’t mean I can learn everything about that language in just three hours. But it does make it possible for me to get to grips with most of the essentials - ...
Write an Adventure Game in Delphi or Free Pascal
Переглядів 491Місяць тому
Program adventure games with Delphi or Free Pascal. In this lesson, I give a quick overview of a class hierarchy to implement an adventure game using Lazarus or Delphi. ADVENTURE GAME TUTORIALS I explain all the essential techniques of writing adventure games in a series which you can find here: ua-cam.com/play/PLZHx5heVfgEvThLmdx7KySZhCrdvDLmeQ.html LAZARUS / DELPHI / OBJECT PASCAL PROGRAMMING...
Move a Lost, Off-Screen Window Back On Screen (using C#)
Переглядів 2932 місяці тому
Have you ever lost track of an application’s window when it is displayed “off screen” (beyond the edges of your monitor) or stacked somewhere behind other windows, maybe on a second or third monitor? Well, with a few programming tricks you will never lose a window ever again. In this video, I show how to write a simple windows manager using Microsoft Visual Studio and the C# language. Along the...
Write Commandline Pascal Programs in Lazarus
Переглядів 5252 місяці тому
There’s nothing quite so satisfyingly retro as a program that runs from the system prompt. Using the Lazarus IDE with the Free Pascal compiler, it’s quite easy to create commandline programs. In this video I explain how I converted my form-based adventure game to one that runs from a prompt. LAZARUS / OBJECT PASCAL PROGRAMMING PLAYLIST This series explains cross-platform programming using Lazar...
Serialization in .NET - BinaryFormatter Errors and How To Fix Them!
Переглядів 3573 місяці тому
Serializing data (to save and load it) should be easy. That’s what serialization is all about! In .NET it is really simple to serialize even quite complex networks of objects using the BinaryFormatter class. But the latest versions of .NET warn you that BinaryFormatter is insecure and suggest that you use some different type of serialization such as JSON. It sounds easy. But it isn’t. I’ll look...
Write A Cross-Platform Adventure Game! (With Lazarus)
Переглядів 7714 місяці тому
With Lazarus you can write and design a program on your PC then copy it to compile and run it on a Mac or on Linux. You can use the Lazarus IDE on all three operating systems to maintain both the code and the visual design and carry on development on whichever OS you prefer. In this video, I show an example of writing a very simple exploring-style adventure game on Windows then compiling and ru...
Add A Raspberry Pi To Your Windows Network - The Secret is Samba!
Переглядів 1,9 тис.4 місяці тому
So you want to add your Raspberry Pi to the Windows Network and browse it in the File Explorer? But since the Raspbebry Pi isn’t a PC and its operating system isn’t Windows, how can you do that? The solution is Samba. This lesson assumes you already have the Remote Desktop on Windows to make a connection to the Raspberry Pi ( as explained in my previous lesson: ua-cam.com/video/FR-9WFeAFnk/v-de...
Using a Raspberry Pi on Windows (with the Remote Desktop)
Переглядів 3,5 тис.4 місяці тому
In this video, I explain how to use the Raspberry Pi desktop on a Windows PC using the Remote Desktop. For your reference, here are the steps explained in the video: Assume Raspberry Pi OS is installed and fully upgraded to the latest software and the there is a user name ‘pi’ (which is the default user name) with a password, say PASSWORD - but use your own, obviously. For an editor, I’ve used ...
Install Lazarus (and Free Pascal) on a Raspberry Pi
Переглядів 1,1 тис.5 місяців тому
This is where we begin working towards cross-platform development so that we shall be able (for example) to design and code applications using Lazarus on a PC running Windows, then copy those projects and recompile them on another operating system (in my case that will be Linux on a Raspberry Pi). In this lesson I’ll show you how to get Lazarus installed onto a Raspberry Pi. Then, in the next c...
Learn Pascal Programming in 10 Minutes
Переглядів 1,9 тис.5 місяців тому
In this lesson, I explain the fundamentals of the Pascal language in under 10 minutes. While this clearly won’t over Pascal in depth, it will give you the essential syntax needed to understand and write traditional (procedural) Pascal programs. Later in this course, I’ll explain the object oriented additions of the Object Pascal language used by Lazarus and Delphi. Huw Collingbourne is author o...
How To Dock the Lazarus IDE Inside A Single Window
Переглядів 1,6 тис.5 місяців тому
How do you dock the free-floating windows and panels of the Lazarus IDE? Probably most modern programming environments these days keep all their tools and windows docked inside a single containing window. That makes it easy to rearrange your Windows desktop by dragging Lazarus around on your screen or even from one monitor to another. But since Lazarus windows are undocked, you can’t do that. C...
Learn Pascal Programming - Designing and Coding With Lazarus
Переглядів 2,7 тис.5 місяців тому
This is the second lesson in a series about writing cross-platform applications in Pascal. In this lesson, I show you how to get started with visual design using the free Lazarus IDE. Huw Collingbourne is author of The Little Book Of Delphi (Object Pascal) Programming. Available from: * Amazon.com www.amazon.com/Little-Book-Delphi-Programming-Program/dp/1913132099/ * Amazon.co.uk www.amazon.co....
Learn Pascal Programming With Lazarus and Free Pascal (First Lesson)
Переглядів 3,1 тис.5 місяців тому
You can install Lazarus and Free Pascal to write, design, debug and compile programs on multiple platforms (Windows, Linux. Mac OS). In this series I will show you how to creatre both commandline and visual (windowed) applications and how to transfer your programs to another operating system (later on, I’ll show how to write on Windows PC and run on a Raspberry Pi). Huw Collingbourne is author ...
The Visual Studio Debugger Helped Me Bring an old MS-DOS Command Back From The Dead.
Переглядів 5168 місяців тому
I previously showed how to display the output from DOS commands in a C# WinForms program. But I hit a snag with the Tree command. This displays directories and subdirectories on the branches of a tree-like structure where the branches are drawn using ASCII box-drawing characters. But my WinForms application doesn’t show the correct characters. That’s because it interprets them as Unicode charac...
I Wanted To Run DOS Commands in a C# WinForms Program. This is What I Did.
Переглядів 2888 місяців тому
I Wanted To Run DOS Commands in a C# WinForms Program. This is What I Did.
Program a Zip File Utility (in C#). All You Need To Know.
Переглядів 4919 місяців тому
Program a Zip File Utility (in C#). All You Need To Know.
Is Message-Passing The Same As Function-Calling (in Object Oriented Programming)?
Переглядів 3,9 тис.9 місяців тому
Is Message-Passing The Same As Function-Calling (in Object Oriented Programming)?
I Tried To Write an Object-Oriented Program in a Non-OOP Language (Golang). Did I Succeed?
Переглядів 2 тис.9 місяців тому
I Tried To Write an Object-Oriented Program in a Non-OOP Language (Golang). Did I Succeed?
Handling the CONTROL Key, (also the Up and Down keys) : The C# KeyUp Event-Handler
Переглядів 70810 місяців тому
Handling the CONTROL Key, (also the Up and Down keys) : The C# KeyUp Event-Handler
Keyboard Events: Handling DELETE (and other keys) with KeyUp in C#
Переглядів 44811 місяців тому
Keyboard Events: Handling DELETE (and other keys) with KeyUp in C#
XmlReader and XmlWriter - the easy way to write XML data in C#
Переглядів 3 тис.11 місяців тому
XmlReader and XmlWriter - the easy way to write XML data in C#
Program a C# Web Page Launcher
Переглядів 302Рік тому
Program a C# Web Page Launcher
Object Oriented Programming With Smalltalk - blocks, tests, loops and files
Переглядів 2,8 тис.Рік тому
Object Oriented Programming With Smalltalk - blocks, tests, loops and files
Master Object Oriented Programming. Smalltalk’s Big Secret: Turtles!
Переглядів 3 тис.Рік тому
Master Object Oriented Programming. Smalltalk’s Big Secret: Turtles!
Object Oriented Programming With Smalltalk - Objects and Messages
Переглядів 8 тис.Рік тому
Object Oriented Programming With Smalltalk - Objects and Messages
The Four Principles of Object Oriented Programming (What They Are and Why They Are Wrong!)
Переглядів 5 тис.Рік тому
The Four Principles of Object Oriented Programming (What They Are and Why They Are Wrong!)
Modular Programming - Most Programmers Think They do it. But Hardly Anyone Does!
Переглядів 8 тис.Рік тому
Modular Programming - Most Programmers Think They do it. But Hardly Anyone Does!
C# App Saving and Reloading with .NET ConfigurationManager (XML config files)
Переглядів 2,1 тис.Рік тому
C# App Saving and Reloading with .NET ConfigurationManager (XML config files)
Code a Windows 3-style Program Manager in C#
Переглядів 423Рік тому
Code a Windows 3-style Program Manager in C#

КОМЕНТАРІ

  • @SabbirHossain-vu4ic
    @SabbirHossain-vu4ic 4 години тому

    Sir, take my salam and respect. No doubt you are very much knowledgeable in this field. But, I really want to know, is it really possible to learn any language within 3 hours? I am asking this because I am struggling to learn python.

  • @josuecharles9087
    @josuecharles9087 18 годин тому

    To learn every language quickly, you must have a good base in algorithmics, learning to code in pseudocode.

  • @user-fc8xh7uo4c
    @user-fc8xh7uo4c День тому

    Thanks for proving that one can still be a programmer at an advanced age!

  • @Shortlydone
    @Shortlydone День тому

    This man the creator of C😂

  • @AEGISAOE
    @AEGISAOE День тому

    are more than 100 langs?

  • @jJustPlayingNZ
    @jJustPlayingNZ День тому

    I've been programming for 60 years, yes really. I couldn't agree with you more. You even look a bit like I used to look 30 years ago lol

    • @LearnWithHuw
      @LearnWithHuw День тому

      Must be the time travel program I wrote! 🙂 Many thanks for the comment!

    • @jJustPlayingNZ
      @jJustPlayingNZ День тому

      @@LearnWithHuw 😀

  • @PeterAdiSaputro
    @PeterAdiSaputro День тому

    Interesting and inspiring, next time I'll use the same approach to learn any new programming languages that I need or want to learn. Thanks for sharing.

    • @LearnWithHuw
      @LearnWithHuw День тому

      Very glad that you found this useful!

  • @ge0x1
    @ge0x1 2 дні тому

    Very true, i remember the first time i coded in python was a login program and that’s when i knew nothing about python but i searched every line of code and tried to get it to work. Those functions and syntaxes are the things i remember easily from python.

  • @JJSeattle
    @JJSeattle 2 дні тому

    I just look over the concepts (metaclass, GIL, magic methods, PDO, shadow DOM, promises, etc.) and then let Ai code 90% of it.

  • @Beanbag59
    @Beanbag59 2 дні тому

    How do I code a game like a basketball game or hockey game

    • @LearnWithHuw
      @LearnWithHuw 2 дні тому

      I'm afraid I know absolutely nothing about hockey or basketball. Maybe someone else can help?

  • @louishurr393
    @louishurr393 2 дні тому

    Step 1: Know how to program.

  • @JonesVitox
    @JonesVitox 3 дні тому

  • @OYMInternetRadio
    @OYMInternetRadio 3 дні тому

    I did a python course and I find everyone seems to teach the same way in the majority of cases but not everyone learns the same way. I'd like to learn more about programming, but the training put me off plus, you need a certain mind set or a way of thinking which most people don't have. :-(

    • @LearnWithHuw
      @LearnWithHuw 3 дні тому

      As I've said before, the really big "secret" is to find a project that you really enjoy programming. It doesn't matter if you make mistakes. The key is to keep at it. And to do that, you need to work on a project that you love. Good luck!

    • @OYMInternetRadio
      @OYMInternetRadio 3 дні тому

      @@LearnWithHuw That does make sense but the projects that I want to do are quite involved needing file/database access etc and regarding apps, I'm not even sure python can do android. What programming language would you recommend for android programming?

    • @LearnWithHuw
      @LearnWithHuw 3 дні тому

      I would encourage you to work on a program that interests you even if it seems too ambitious. The first program I wrote (many years ago!) was an adventure game written in Pascal. I knew almost nothing when I began (and there was no web to search for info). So I had to learn the language, error-handling, file handling and all the intricacies of writing the game with almost no help. I made a LOT of mistakes. But it was also the single most important learning exercise I ever did.

  • @ioannis2000
    @ioannis2000 3 дні тому

    Yes, you can learn any language in 3 hrs if you want to write simple "Hello Wrold!". But, as soon as you get into more serious programming, you must use hours and hours to read documentation about arrays methods or lists and tupples or math modules etc. It is like learning Japanese by learning few words. Please, some respect for knowledge.

    • @LearnWithHuw
      @LearnWithHuw 3 дні тому

      We each have our own way of learning. But I strongly recommend writing programs as the most important principle, with reference literature as support (rather than, as is so often the case, the other way around).

  • @JonesVitox
    @JonesVitox 3 дні тому

  • @CelestialVenerableValinor
    @CelestialVenerableValinor 3 дні тому

    This is the principle that should be taught in college and other youtube tutorials.

  • @Copilot1204
    @Copilot1204 3 дні тому

    I found it easier to construct the print statement like this. Thanks for the video coming from someone who didn't pay attention in their CS1A Java course back in high school. Surprisingly programming has started to grow on me. import game objects.Room; public class Program { public static void main(String[] args) { Room r = new Room(); r.name = "Troll Room"; r.s = 1; r.w = 2; r.e = 3; r.n = 4; String message = r.name + " has exits to: "; message += "n: " + r.n + ", "; message += "s: " + r.s + ", "; message += "w: " + r.w + ", "; message += "e: " + r.e; System.out.println(message); } }

    • @LearnWithHuw
      @LearnWithHuw 3 дні тому

      Ha! Yes. The secret is to find a project that you are passionate about!

  • @Skiamakhos
    @Skiamakhos 4 дні тому

    Definitely works well with imperative object-oriented languages. Getting the hang of functional languages & ones where immutability is the norm might be more involved - stuff like Clojure for example. Elixir too: Elixir's main strength is parallel processing, using all the cores on your machine to get stuff done a lot quicker & reliably.

  • @mohammedraza4846
    @mohammedraza4846 4 дні тому

    Abe budhape me zindagi maze kar bhai, kya programming sikha raha hai, kitna kamaega?? Kabar me le jaega ka paisaa.....

  • @furqantarique3484
    @furqantarique3484 4 дні тому

    I will get a job in canada for this

  • @pogo55555
    @pogo55555 4 дні тому

    Liked. Subscribed.

  • @gyangach7493
    @gyangach7493 4 дні тому

    Thank you sir, Love from bangladesh

  • @emredesu
    @emredesu 5 днів тому

    Much thanks. I really don't think such a distracting feature should be enabled by default, especially considering how hellish it is to find a toggle to turn it off in the super complicated options page of Visual Studio.

    • @LearnWithHuw
      @LearnWithHuw 4 дні тому

      I agree. Visual Studio is great in many ways but a few things (this especially) are incredibly irritating.

  • @StefanoZamprogno
    @StefanoZamprogno 5 днів тому

    ok, this is my next new project for learning Smalltalk ;-)

  • @StefanoZamprogno
    @StefanoZamprogno 5 днів тому

    is still worth learning Smalltalk programming language ? thanks!

    • @LearnWithHuw
      @LearnWithHuw 5 днів тому

      It is certainly worth learning. Even if you never plan to write anything in Smalltalk, understanding the ideas will give you a valuable insight into Object Orientation as it was originally conceived (though not invariably as it is currently used).

  • @dennisdelgado4276
    @dennisdelgado4276 5 днів тому

    Yay now i have more time for some hawk tuas this summer!

  • @Monray87
    @Monray87 6 днів тому

    This is a huge exaggeration!!! coding takes time and practice, and sometimes it's hard work, and sometimes it's easier! that's the bottom line!

  • @emendatus1
    @emendatus1 6 днів тому

    İ learned in 3 minutes.😁😁😁😁😁😁😁😁😁😁😁😁😁😁😁😁😁😁😁😁😁😁😁😁😁😁😁😁😁😁😁😆😆😁

  • @suleimanobeid9995
    @suleimanobeid9995 6 днів тому

    But why? Why should i do that? And this not going to bring you anywhere

  • @clublength724
    @clublength724 6 днів тому

    What type of audience do you think you are addressing? The language you use is so involved. Its clear that there are certain aspects/attributes that you believe that the "learner" has.What is a Module, Disc utility, Code.D IDE,Default,Compiler,Breakpoint etc and what?When are they used. Learning is a process.

  • @gijoe5508
    @gijoe5508 6 днів тому

    I wasted 20 years of my life to learn coding. However, I only study 2 years of pure maths at university and 3 years of computer science. Actually, I am doing reverse engineering and machine learning to find coding problems.

  • @LeoNux-um7tg
    @LeoNux-um7tg 6 днів тому

    I also used this method to learn linux and command line, bash scripting and networking. You really learn from implementing it on your projects.

  • @chethiyaprasanga
    @chethiyaprasanga 6 днів тому

    You can learn any thing 3 hours but your can't be expert 😊

  • @mstarlingc
    @mstarlingc 6 днів тому

    I also think that learning by creating a project is the best way thank you

  • @dipenkarki2008
    @dipenkarki2008 6 днів тому

    Bro is billgates cousin.

  • @wherezthebeef
    @wherezthebeef 6 днів тому

    Meh, no. Unless you're AI, you don't truly 'know' a programming language until you've built something with it, or better, built a lot of stuff with it, then you get bragging rights, but no way you're hitting this level in less than a week of locking yourself in a room with the new language and your projects. Like the XiaomaNYC (UA-camr) who boasts he can learn any language in 24 hours.. depends on the definition of 'Learn any (X) language... I'm sure you can manage 'Hello, World' in 3 hours.. but come on. Click bait.

  • @saranathrajaram639
    @saranathrajaram639 6 днів тому

    Why not with c iam just started to learn😢

  • @sergehog
    @sergehog 6 днів тому

    Why in the hell you need 3 hours? If you have existing code base you may start fixing it immediately, and learn more on-the-go.

  • @SomeMrMindism
    @SomeMrMindism 6 днів тому

    The thing is... all this programming languages are Algol derived. Once you know one, you know all of them. Lisp, Haskell / other SMLs, stack based languages (APL, Forth, etc.) all have radically different programming structure you cannot equate to a C procedure. Case in point: in Haskell, "Hello world" is the *last thing* you program, because you need to understand monad first

  • @AbdurRahim-pp2il
    @AbdurRahim-pp2il 6 днів тому

    Thank you sir.. This has been useful..

  • @mongstyt9946
    @mongstyt9946 6 днів тому

    👁 👄 👁

  • @charlesbaldo
    @charlesbaldo 6 днів тому

    When your programming skill level hits a certain point you will realize that you know every programming language

  • @user-yp2ii5gl1p
    @user-yp2ii5gl1p 6 днів тому

    Rewriting all in Rust!

  • @morpheus5302
    @morpheus5302 6 днів тому

    hahaha tell that to an OOP language senior dev who tries haskell

  • @bhanu99-1
    @bhanu99-1 6 днів тому

    Thanks❤

  • @SeshanDecodes
    @SeshanDecodes 6 днів тому

    What you need to learn is a strong foundation in the concepts of programming and fundamentals. The its pretty much syntax and a few difference between programming languages. Learn then concepts in Pseudo Code. Learning in C is also good.

    • @LearnWithHuw
      @LearnWithHuw 6 днів тому

      To be honest, if you can program (well) in C, you can probably learn most other languages pretty quickly.

  • @SeshanDecodes
    @SeshanDecodes 6 днів тому

    You can use his concept with the assistance of Chat GPT 4o

  • @astrahcat1212
    @astrahcat1212 6 днів тому

    Your way of guessing your way through is really good, get it wrong and correct, that is the FASTEST way it gets hammered into the brain.

  • @SigmayetB
    @SigmayetB 6 днів тому

    For LLM or GL for a.i

  • @sushiConPorotos
    @sushiConPorotos 6 днів тому

    "When anything else fails, read the instructions"