Creating A Console Version Of A Roguelike?
Jun 7, 2011
I know, not the ideal environment for games. However, I do love VB.net and would like to try.Currently, I am creating a console version of a roguelike (hack/slash ascii adventure) and need some help with the theory. The implementation I can handle.
In the game loop, if I redraw the map every time an action happens, there will be an awful flicker.Should I: a.) set up movements so they rewrite the area the player was at, and then write at the tile the player is going to
b.) use WPF and use the canvas
c.) insert your better solution?
View 4 Replies
ADVERTISEMENT
Dec 10, 2009
I've been toying with the idea of building a web-based Roguelike game using Silverlight (or maybe just a desktop game using WPF).
If you don't know what a Roguelike is, it's a type of graphical RPG where the graphics are rendered using text. Because the graphics engine is relatively simple, you get to spend your time building features into the game and it's possible for one person to quickly build something fun.
For instance, a typical screen might look something like this (the @ is the player, # is a wall, the other characters are things like monsters, stairs, and items):
I'm an experienced ASP.Net dev and I'm just getting started with Silverlight. Is there a particular approach I should take for this? To provide some background, in Winforms, most standard approaches are too slow -- the text ends up updating with a visible, ugly blink. I'm thinking something to do with the Canvas might be appropriate, but even better would be to somehow draw a screen into a buffer and then instantly flip that onto the screen so that it becomes visible instantly.
But I don't really want to mess around with DirectX right now - I'm hoping WPF can get me to where I need to be without a big learning curve.
Update: So this turned out to be pretty challenging. I tried a lot of different approaches and I was finally able to get it to actually render fast enough, but I think that to make it blazing hot fast you should probably build a sprite map of the font you want to use and work from that instead of trying to use any of the built in font rendering stuff. I didn't do that.
When I got the core rendering engine done, I ended up with some annoying artifacts related to quirks of font rendering (even fixed width fonts are sometimes a liiitle bit wide...), and when I finally worked that out I discovered libtcod, which is a very impressive roguelike engine that has a C# wrapper. That's all console based. I played with it a little and I was blown away.
As of 1.5.1, everything I've touched in libtcod works great except for the mouse input stuff and one of the keyboard input modes (which I think they recently ditched), but everything you need to make a roguelike is in there, and that includes several line-of-sight, pathfinding, and even dungeon generation algorithms. It's pretty advanced visually. Have you ever seen an RL like this?
In a nutshell, it's possible to build a roguelike with silverlight, but I wouldn't go in expecting it to be easy unless you've already got a strong silverlight or game dev background. You're going to be re-inventing some serious wheels, and even with a powerful toolkit that allows to focus on gameplay, there's no shortage of things to do.
View 2 Replies
Jun 3, 2012
I would like to know the basics of roguelike development in Basic, Visual Basic to be more specific. As stated in the title, I have Visual Basic 2010 Express Edition (fully paid). I do know about variables, if statements, basic math operators (Such as addition and powers), advanced math operators (such as PI and Sqrt), nested if statements, functions, subs, and all of the other basic stuff about Visual Basic. I am most effective with console applications, rather than windows form applications. My favorite roguelike is ADOM (Ancient Domains of Mystery), which, in my opinion, is much better than nethack. I would like to make a game similar to ADOM, but I don't even know how to make the player move around the screen and collide with walls. I am also most effective with Video Tutorials, rather than written tutorials, just cause I'm not a big reader. I have seen most of thenewboston's video tutorials on Visual Basic more than once, and I have all of the basic stuff nailed down in my brain. If anyone at all can help me, or even team up with me in my VB.Net project ATOR (Ancient Temple of Redhold), it would make me so happy I would burst out in tears of joy! Btw, I have created a bunch of unfinished text-based games before in the game engine ADRIFT 5, so I do know the basics of game development.
View 4 Replies
May 15, 2012
how to create a console application that asks the user to input his or her first name and last name separately. The console application will display a message that varies according to the user. Then combine the two names into a single string variable named fullName, so that they 'll output a full name.
View 4 Replies
Sep 25, 2010
I created an application in vb.net using visual studio 2010. I want to create an installation file of the application that will not be free with a license so I want to create a trial of 30 jours.
View 2 Replies
Oct 13, 2009
Recently i made an application and then i created the set up of my application by this:
Attachment 73704 Now i want to create a demo version of my application in such a way that the application will work properly for 15 days after installation......After 15 days it wont
View 26 Replies
Oct 24, 2009
I'm developing a Silverlight application where I want to simulate a console. There are a lot of ways to represent this - StackPannels, grid of TextBoxes, etc - and I was wondering what the bets fit would be?
Display an 80x20 grid that scales based on parent size Be able to update an individual cell's character Be able to set a cell's forground and background color
View 2 Replies
Sep 13, 2009
I am having trouble creating a console application with these specifications:
* Declare variables named HoursWorked, HourlyRate, GrossPay, and NetPay, each having a data type of Double.
* Read values for the hours worked and hourly rate.
* Write the statements to multiply the hours worked by the hourly rate to calculate the gross pay. Calculate the net pay by multiplying the gross pay by 0.80.
* Display the gross pay and net pay (formatted for currency).
This is what I have so far:
Sub Main()
Dim HoursWorked As Double
Dim HourlyRate As Double
Dim GrossPay As Double
[code]....
I don't exactly understand what it means to "read the values for hours worked and hourly rate". Does it have something to do with "Read Line"?
View 4 Replies
Jul 20, 2009
Im doing a FileStream.Write to create a file on a local computer from a file I download from the web.
qq1 =>how can I change the version property of the file after writing it or while writing it?
qq2 => and how can I check the version property of the file?
View 17 Replies
Mar 31, 2009
How they relate and differ from each? What are the best practices for version control? Is there a primer about publish online? Or a good book?
And is it possible to make ClickOnce and a msi in one solution of VS 2008? If so, is there any conflict or pitfall?
BTW I am using VB if that makes any difference.
View 1 Replies
Feb 26, 2009
'The program is supposed to create a Diamond Shape with the asterisks but I only get one-half of the 'diamond '(vertically) to appear.
Module Module1
Sub Main()
For i = 0 To 4
For j = 0 To 5 - i
Console.Write("")
[Code] .....
View 1 Replies
Dec 12, 2007
I have created a windows application in VB.Net 2005 using MS Access as backend.Now before delivering its setup to client I have to create its trial version of 30 days and 60 days.How to do this ?Also my setup should be installed only on one computer.I mean my setup copy should be used for one time only.I know how to deploy the project i.e. I can create a simple setup of my project.
View 12 Replies
Jul 26, 2011
I'm using VS 2010 express edition, Are there any settings for creating console application?I've done a simple program but it get stops while running.
[Code]...
View 3 Replies
Apr 24, 2012
Basically i am creating a console application that will create and store client information as a .txt file it is going okay but i have come across a slight hick up i want to use something on the lines of this .....
dim lastname as string
Do Until Integer.TryParse(Console.ReadLine(), LastName) = False
Console.WriteLine("Invalid input, Please try again")
Console.Write("LastName:-")
[code].....
this works fine to trap out numbers from letters but the problem i am getting is when the program calls uppon LastName it is recording 0 and wanted to know if there is a way of getting past this ..... so basically i need a way to allow letter but not numbers and symbols and then dispay a pernolised error message but at the same time use Stream writer to save was the answer is in a .txt file.
View 3 Replies
Oct 21, 2008
This code no longer works in ver 2007:' Obtain max resources available for Excel
[Code]...
View 3 Replies
Jun 10, 2010
Is there any way to make my programs use a lower version of net.framework other than the newest version 4 that comes with VS2010?I use my programs within a closed network and there isn't an easy way for me to install any software since I'm not the administrator.
View 3 Replies
Jul 29, 2009
I'm trying to add functionality to my application that will disable buttons and checkboxes depending on what version the OS is when the app is launched. I made a test app to test this but unfortunately I can not get it to work. Here is my code:
'OS Check
Dim osValue As Object
osValue =
My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrent Version", "CurrentVersion", "5.2")
[Code]...
*Note - 5.2 is Windows 2003, 6.0 is Vista, 5.1 is Windows XP
View 1 Replies
Sep 1, 2010
I have created a license system for my application with MySql about half a year ago. What it would do is take the serial number and send it to my server if the key was correct it would return a 0 if its wrong the return value would be a 1.The problem was that when the serial number was entered correctly my program would create a "fake file" for example vb.dll in the system.And on run time my program would check for that vb.dll if the file exist it would skip my trial program and run the app as a full version. Half year later i think creating a "fake file" and checking for it on start up is extremely wrong and that's not very good security.How can i check the difference between a full version and unregistered version?
View 23 Replies
Jun 24, 2010
I have a XML file with the latest application version number, I have this loaded into a variable, how can i compare this against the application.info.version to see if it's the latest version??
View 3 Replies
Jun 1, 2011
I was thinking of adding a simple bandwidth monitor to a console application and I was wondering if it would be possible to keep a line in the console window visible at all times. I could set something up manually to pass new console output into a method that would get the contents of the console, clear the console, add the bandwidth data on the first row, then rewrite each line of previous information back to the console, etc.. but that seems like a really hacky way to go about it, and I'd be limited to the amount of rows visible at once in the console window (no scrolling).
STATS: Downloaded: 2599b, Uploaded: 754b <- this always stays at the top
constantly changing text
constantly changing text
constantly changing text
[code]....
View 3 Replies
Jun 3, 2012
I want my application to do something special :D.. jks
I just want it to compare assembly version to the file version something like this (btw i also want it if it is the same i want it to enable a button):
Private Sub StartSplash_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
If Assembly Version = File Version Then
[Code].....
so how do i detect Assembly & File version numbers?
View 4 Replies
Jun 16, 2011
I would like my program to overwrite its previous version such that users don't have to uninstall the previous version before installing the new one.
I'm guessing it has something to do with setting Publish Version (Major, Minor, Build, Revision), Assembly Version or File Version.
View 3 Replies
Jun 1, 2009
I have a console application I'm using to run scheduled jobs through windows scheduler. All the communication to/from the application is in email, event logging, database logs. Is there any way I can suppress the console window from coming up?
View 5 Replies
May 11, 2011
so I am making a program that will run a server for a game. I've programmed a console into the form and it works but it only works until it is finished reading the slandered output.
[Code]...
View 2 Replies
Aug 8, 2010
I am currently working on an application, where I am using a console application, that will set up the application prior to the main form is run. This is no problem I've got that all working perfectly, the only problem I have is that the console is showing while the application is running, I was wondering whether anyone knows any way in which I would be able to hide the console before it gets shown to the user.
View 12 Replies
Mar 6, 2011
I am not able to view the results of Console.Write() and Console.Read() in VB.Net.
View 2 Replies
Feb 23, 2011
I am trying to send/print/write all possible ASCII codes (0-255) to another console-window application. From my application I would enter the name of the "receiving" application and the comma seperated hex values that should be sent/print/written to it. I have used AppActivate to select the "receiving" application and then have used sendInput and send.sendkeys to attempt to send the desired ASCII value. However, these appear to have limitations on values greater than 127. I need to be able to send all 255 values.
View 1 Replies
Dec 15, 2011
How do I get the console from closing immediatley upon opening in a Console Application program? I have all of the code written but when I run the program it pops up the console window and then immediatley exits so I am unable to read what is in the window to see if my program is operating correctly. This is the first time I've ever used a console window so I don't know where in the code I would need to put "whatever it is" I might need to put to keep the window open until closed by the user.
View 7 Replies
Aug 23, 2009
It sounds confusing but it's not really. What I need is basically a way to emulate the console style text, without using a console. What I'm really doing is trying to do a matrix effect on my form background, by drawing symbols and moving them, alternating their colors (see this video for what I mean).
Is there a way to do this effectively with a timer and a draw event, with the timer calling the draw event and changing the intervals?
View 3 Replies
May 20, 2011
they need to make some compare version between host version and client version.. and each 1 version different will download the file to the client..[URL]..with both example, how can i make a program in VB.NET just like i said just now?
View 15 Replies