| Welcome, Guest |
You have to register before you can post on our site.
|
| Online Users |
There are currently 2391 online users. » 0 Member(s) | 2388 Guest(s) Baidu, Bing, Google
|
| Latest Threads |
Dell B1165nfw
Forum: Printing and Scanning
Last Post: NYBo
02-14-2026, 11:13 PM
» Replies: 2
» Views: 77
|
Hard Disk problem
Forum: Hard Drives and SSDs
Last Post: stevef
02-14-2026, 04:46 PM
» Replies: 1
» Views: 25
|
Linux Lite 7.8 Final Rele...
Forum: Release Announcements
Last Post: stevef
02-13-2026, 08:07 AM
» Replies: 7
» Views: 8,504
|
Linux Lite boot USB stuck...
Forum: Installing Linux Lite
Last Post: stevef
02-11-2026, 05:57 PM
» Replies: 3
» Views: 173
|
Amazing work by the Linux...
Forum: Suggestions and Feedback
Last Post: valtam
02-11-2026, 03:12 AM
» Replies: 1
» Views: 73
|
Initial updates to a fres...
Forum: Security & Bug Fixes
Last Post: valtam
02-10-2026, 05:59 AM
» Replies: 1
» Views: 71
|
Update error log after in...
Forum: Updates
Last Post: stevef
02-09-2026, 04:04 PM
» Replies: 2
» Views: 125
|
error messages - 6.6 inst...
Forum: Updates
Last Post: stevef
02-09-2026, 04:03 PM
» Replies: 2
» Views: 112
|
Forum Posting Guidelines
Forum: Introductions
Last Post: valtam
02-09-2026, 08:14 AM
» Replies: 1
» Views: 62,774
|
[split] Image hosting opt...
Forum: On Topic
Last Post: valtam
02-09-2026, 08:13 AM
» Replies: 9
» Views: 413
|
|
|
| 800x600 is the only setting for my desktop |
|
Posted by: Hardcoretexan - 08-09-2015, 09:52 PM - Forum: Video Cards
- Replies (19)
|
 |
New to Linux so please reply in baby steps(lol).
I have an inspirion 1525 which I installed linux lite on.
I downloaded some movies mp4, avi etc... and they used to play fine but for some reason(I don't play movies a lot on my laptop) they stopped playing instead the video would never start playing(just a frozen blurred screen). The audio played fine, so I downloaded several players to make sure it was not the program( I have handbrake, brasero, smplayer) none of them worked.
I found a site to reinstall drivers so i did the following.
1) First, you need to open up a terminal shell. You can either start up your computer and go to a virtual shell
Ctrl+Alt+F1
or login and open up the gnome terminal
Ctrl+Alt+t
2) Then In the terminal, run the following commands:
This command will refresh your packages
sudo apt-get update
Then you will need to install the linux headers if those are not already installed.
sudo apt-get install linux-headers-generic
Next, you will need to do a dist-upgrade, which upgrade some packages of your system
sudo apt-get dist-upgrade
When that is all done, you will need to reboot your system
sudo reboot
The Installation of the Drivers
1) Repeat step one to open the terminal.
Now install the Nvidia drivers
sudo apt-get install nvidia-current-updates
You have one more step, or else, you will have a high chance that you just soft-bricked your system. For safe measures, run this final command:
sudo nvidia-xconfig
*There was a well known bug that the Nvidia installation script did not run that command. If that config file is not created, your graphics will not work.
Now reboot your system:
sudo reboot
Congratulations! You should now be using Nvidia Drivers.
Now I can play videos but my desktop settings are only 600x800 and the video is too large for the players screen. any help would be appreciated.
Greg
|
|
|
| [SOLVED]Monitor keeps locking |
|
Posted by: paul1149 - 08-08-2015, 08:13 PM - Forum: Other
- Replies (17)
|
 |
Hi guys,
I'm running 2.4 x64. The monitor keeps going into standby and locking me out. I have the unit to Sleep at 75 min, and the monitor display to sleep at 60 min, with "Switch off display" at 50 min.
Under Extended I have sleep mode set to Suspend, and monitor sleep mode set to Standby. Lock is checked.
I have the screensaver turned off. When I bring up the screensaver prefs, I get that the daemon is not running error. On the Advanced tab I have Power management enabled, with Standby after 120, Suspend after 120, and off after 240. But I've also tried turning off Power Management.
The screen is locking after maybe 15 minutes tops. I would like to use this function, but would rather delete it than fight it like this.
Thanks.
|
|
|
| Toshiba Satellite a665d s6051 keyboard backlight not working |
|
Posted by: torreydale - 08-08-2015, 08:22 AM - Forum: Other
- Replies (4)
|
 |
Brought a laptop from the dead for a friend. All is well except the keyboard backlight won't work in Linux Lite.
The keyboard lights when powering up. Works in the BIOS setup, and as it boots, but goes off as soon as it hits Linux Lite GRUB. I've tried the Fn+Z combination and it changes nothing. I've spent a few hours searching online and i've seen nothing definitive. Some mention turning off ACPI in the BIOS. They say it makes the keyboard backlight work in Ubuntu, but the function keys and Power Management won't work. I don't have ACPI settings in the BIOS for this laptop. But I have set the keyboard backlight to ON instead of 15 second TIMER.
I need help on this one.
For the record, in the Keyboard settings, I don't see a more specific Keyboard Layout than Toshiba Satellite S3000. I get the same behavior as I do when I just use the System Defaults. Everything else works except the backlight.
|
|
|
| ET:QW Black screen... |
|
Posted by: Zead - 08-07-2015, 06:25 PM - Forum: Games Support
- No Replies
|
 |
Enemy Territory: QUAKE Wars - Native Linux Client 1.5, installed from DVD.
I see only black window, and music is playing in the background.
Log provided, there are libGL errors, I believe it's the problem, how to fix it? I cannot install proprietary AMD drivers.
[attachment deleted by admin, expired]
|
|
|
| Start up and Shut down screen changed |
|
Posted by: piratebob - 08-07-2015, 12:40 PM - Forum: Start up and Shutdown
- Replies (7)
|
 |
I just received an update yesterday that changed the boot up and shut down screens from the normal LinuxLite 2.4 to Ubuntu 14.04, I am confused as to how to correct it. It doesn't seem to affect the performance but with my lack of knowledge of linux it can be frustrating knowing that a simple update can change baseline systems.
Any suggestions as to how to correct this issue would be appreciated, also I did want to mention that the update that caused this issue did ask me if I wanted to keep something or other and it pointed in the direction of the /etc/ folder, I cant remember the rest of the file path. ???
Thanks for your time
|
|
|
| Linux Lite 2.6 Beta Released |
|
Posted by: valtam - 08-07-2015, 07:53 AM - Forum: Release Announcements
- Replies (40)
|
 |
Release Announcement
Linux Lite 2.6 Beta is now available for testing. After months of dedicated development by the team and outsourced developers, we're proud to announce the release of the Linux Lite Control Center. Linux Lite Control Center aims to provide one central location for everything that you needed to configure your computer. We're also pleased to announce the inclusion of Systemback, a versatile tool that makes it easy to create backups of the system and the users configuration files. Linux Lite is now deployed across large networks and systems, Systemback allows the creation of a custom version of Linux Lite that can then be deployed to multiple machines in a given scenario. See below for more information on both of these new applications in Linux Lite.
As usual you still get the latest Firefox, Thunderbird, LibreOffice, Wine (via Lite Software) and Gimp.
Changelog:
Firefox 39.0
LibreOffice 5.0
Base: 14.04.3
New Wallpapers.
New Lite Welcome.
New root terminal theme.
Updated Help Manual.
Added Linux Lite Control Center - provides one central location for everything you need to configure your computer.
Added Systemback - system back up and OS creation tool.
Added Disks - easy to use partition, hard drive and SSD configurator.
Added Crtl+Alt+Del - brings up logout/restart/shutdown dialogue.
Added VLC Browser Plugin.
Added Dark theme - Zukitwo Dark Reloaded.
Latest WhiskerMenu.
Introducing the Linux Lite Control Center - The Linux Lite Control Center was created with new folk to linux in mind. We wanted to build an application that was one central location for everything that you needed to configure your computer. We recognise that it is sometimes hard to find where things are on a linux based operating system. Lite Control Center aims to address that dilemma. Built much like a web page, Lite Control Center has a menu on the left as categories, and within those categories buttons that launch whichever application you are wanting to use. Lite Control Center is currently considered beta and we would value your feedback on this application before Linux Lite 2.6 Final is released. Lite Control Center can be found on the taskbar next to the terminal icon.
Developer credits - John Jenkins, Jerry Bezencon, Milos Pavlovic, Brian Tomlinson, Josh Erickson
Menu Location - Menu, Settings, Lite Control Center.
[img height=600 width=771]http://i.imgur.com/2SldLIF.png[/img]
[img height=600 width=771]http://i.imgur.com/TkSonhT.png[/img]
Systemback - During the 2.6 development cycle, we asked the community which system restore tool they favoured the most and why. After receiving excellent feedback on social media and the Forums, the community chose Systemback to be included in Linux Lite 2.6. Systemback is extremely versatile. You can easily restore the previous state of your computer, perform system copying, system installation and Live system creation. This is especially useful for those wanting to deploy their custom version of Linux Lite across multiple machines, something the community has been asking for.
Menu Location - Menu, System, Systemback.
![[Image: wevxuY7.png]](http://i.imgur.com/wevxuY7.png)
New Dark Theme - To apply, go to Menu, Settings, Appearance. Select Zukitwo Dark Reloaded. Then go to Menu, Settings, Window Manager. Select Zukitwo Dark Reloaded. Log out/in to apply the new theme.
Wallpaper credits:
https://dfgkh547-jsdfv8.iyhkj.tk/forums/wallp...e-so-gray/
https://dfgkh547-jsdfv8.iyhkj.tk/forums/wallp.../#msg14541
Downloads:
HTTP:
Download 32bit from here - Linux Lite 2.6 Beta 32bit
md5sum: c13a7a118c90c74f98a0f16db2b166ed
Size: 778mb (DVD, USB)
Download 64bit from here - Linux Lite 2.6 Beta 64bit
md5sum: c23b93639aa3763a335ac6aef4867903
Size: 777mb (DVD, USB)
TORRENTS:
32bit Torrent from here - linux-lite-2.6-beta-32bit.iso.torrent
Hash: 7a2caafb0856dbf2f4eb9ab7f2412db5f8c2ca76
Size: 778mb (DVD, USB)
64bit Torrent from here - linux-lite-2.6-beta-64bit.iso.torrent
Hash: f6f94d8150304c11568680d3511195f5b08c4b0e
Size: 777mb (DVD, USB)
Live USB/DVD/VirtualBox/Vmware:
Login is automatic, no credentials required. The image can be written to a 2gb or larger USB stick, or a writable DVD. Alternatively, you can use the dd command: sudo dd if=linux-lite-2.6-beta-xxbit.iso of=/dev/sdx bs=4M where 'x' is the letter of your usb stick. In linux to find out the letter of your usb stick, open a terminal and type: df -h It is usually listed as 'media' or similar. Please see the built in Help Manual if you require a more detailed explanation of this procedure.
All Ubuntu 32bit kernels these days ship with PAE.
Minimum Recommended Specs:
700MHz processor
512mb ram
VGA screen capable of 1024x768 resolution
DVD drive or USB port for the ISO image
Preferred Specs:
1.5GHz processor+
1024mb ram+
VGA, DVI or HDMI screen capable of 1366x768 resolution+
DVD drive or USB port for the ISO image
Login to the live desktop is automatic.
The first thing you MUST do after a fresh install of Linux Lite is run Menu, Favorites, Install Updates.
As this is a beta release, there are bound to be bugs etc. Please help make the final stable for other people by participating in this Beta. Please report any bugs and feedback in this thread.
Screenshots:
[img height=600 width=800]http://i.imgur.com/ESuR8Di.png[/img]
[img height=600 width=800]http://i.imgur.com/VbhRoHx.png[/img]
Thank you
Jerry and the team.
|
|
|
| Mega Mech |
|
Posted by: austin.payne - 08-07-2015, 05:27 AM - Forum: Scripting and Bash
- Replies (4)
|
 |
Here is a little game I made in Python. It is quite glitchy, and it is entirely text based, but it is still a little fun. It should also be really easy to mod.
Code: import math
import random
board = []
class Weapon(object):
def __init__(self, Range, Damage, Ammo, Name):
self.Range = Range
self.Damage = Damage
self.Ammo = Ammo
self.Name = Name
def __repr__(self):
return str(self.Range) + " " + str(self.Damage) + " " + str(self.Ammo)
class Armor(object):
def __init__(self, HP, Name):
self.Name = Name
self.HP = HP
def __repr__(self):
return str(self.HP)
class Enemy(object):
def __init__(self, Weapons, Armor, Movement, x, y, Number):
self.Weapons = Weapons
self.Armor = Armor
self.Movement = Movement
self.x = x
self.y = y
self.Number = Number
def __repr__(self):
return str(self.Weapons) + " " + str(self.Armor) + " " + str(self.Movement)
class Character(object):
def __init__(self, Weapons, Armor, Movement, x, y, Money, CampaignLevel, Level, XP):
self.Weapons = Weapons
self.Armor = Armor
self.Movement = Movement
self.x = x
self.y = y
self.Money = Money
self.CampaignLevel = CampaignLevel
self.XP = XP
self.Level = Level
def __repr__(self):
return str(self.Weapons) + " " + str(self.Armor) + " " + str(self.Movement)
MyCharacter = Character([], [], 0, 0, 0, 1000, 1, 0, 0)
def Shop():
print("You have $" + str(MyCharacter.Money))
print("Your Level is " + str(MyCharacter.Level))
print("~~~~~~~~~~~~~~~~~~Shop~~~~~~~~~~~~~~~~~~")
print("~~~~~~~~~~~~~~~~~~Armor~~~~~~~~~~~~~~~~~")
print("Name---------------HP--------------Price")
print("Tin 50 200")
print("Bronze 100 500")
print("~~~~~~~~~~~~~~~~~Weapons~~~~~~~~~~~~~~~~")
print("Name----Damage----Ammo----Range----Price")
print("Sword 5 inf 0 200")
print("Gun 5 10 3 500")
print("~~~~~~~~~~~Personal~Upgrades~~~~~~~~~~~~")
print("Name------------------------------Effect")
print("Walk speed +1")
choice = raw_input("Which one do you want?(Type the name, or say 'Cancel'.) ")
if choice == "Tin" and MyCharacter.Money >= 200 and len(MyCharacter.Armor) + 1 <= float(MyCharacter.Level+1)/3 + 1:
MyCharacter.Money -= 200
MyCharacter.Armor.append(Armor(50, "Tin"))
elif choice == "Bronze" and MyCharacter.Money >= 500 and len(MyCharacter.Armor) + 1 <= float(MyCharacter.Level+1)/3 + 1:
MyCharacter.Money -= 500
MyCharacter.Armor.append(Armor(100, "Bronze"))
elif choice == "Sword" and MyCharacter.Money >= 200 and len(MyCharacter.Weapons) + 1 <= float(MyCharacter.Level+1)/3 + 1:
MyCharacter.Money -= 200
MyCharacter.Weapons.append(Weapon(0, 5, float('inf'), "Sword"))
elif choice == "Gun" and MyCharacter.Money >= 500 and len(MyCharacter.Weapons) + 1 <= float(MyCharacter.Level+1)/3 + 1:
MyCharacter.Money -= 500
MyCharacter.Weapons.append(Weapon(3, 5, 10, "Gun"))
elif choice == "Walk speed" and MyCharacter.Money >= 200:
MyCharacter.Money -= 200
MyCharacter.Movement = MyCharacter.Movement + 1
elif choice == "Cancel":
Selling = raw_input("Sell or next level? ")
if Selling == "Sell":
sell()
return
elif choice != "Cancel":
print("Sorry I didn't catch that.")
Shop()
return
def Mores():
More = raw_input("Would you like to buy more?(Yes/No) ")
if More == "Yes":
Shop()
elif More == "No":
Selling = raw_input("Sell or next level? ")
if Selling == "Sell":
sell()
return
elif Selling != "next level":
print("Sorry I dodn't catch that.")
Mores()
else:
print("Sorry I didn't catch that. ")
Mores()
Mores()
def sell():
for Armor in MyCharacter.Armor:
print(Armor.Name)
for Weapon in MyCharacter.Weapons:
print(Weapon.Name)
print("Walk speed (" + str(MyCharacter.Movement) + ")")
Choice = raw_input("Which one do you want to sell?(Name of item) ")
NewList = []
AOW = len(MyCharacter.Weapons)
AOA = len(MyCharacter.Armor)
WS = MyCharacter.Movement
Number = 1
for Armor in range(len(MyCharacter.Armor)):
if Choice == MyCharacter.Armor[Armor].Name and Number == 1:
Number = 2
if Choice == "Tin":
MyCharacter.Money += 200
print("Tin")
elif MyCharacter.Armor[Armor].Name == "Bronze":
MyCharacter.Money += 500
print("Bronze")
else:
print("Glitch")
else:
NewList.append(MyCharacter.Armor[Armor])
MyCharacter.Armor = NewList
NewList = []
for Weapon in range(len(MyCharacter.Weapons)):
if Choice == MyCharacter.Weapons[Weapon].Name and Number == 1:
Number = 2
if Choice == "Sword":
MyCharacter.Money += 200
elif Choice == "Gun":
MyCharacter.Money += 500
else:
NewList.append(MyCharacter.Weapons[Weapon])
MyCharacter.Weapons = NewList
if Choice == "Walk speed" and MyCharacter.Movement > 0:
MyCharacter.Movement -= 1
MyCharacter.Money += 200
if AOW != len(MyCharacter.Weapons) or AOA != len(MyCharacter.Armor) or WS != MyCharacter.Movement:
Answere = raw_input("Do you want to sell more?(Yes/No)")
if Answere == "Yes":
sell()
else:
Answere2 = raw_input("Shop or next level? ")
if Answere2 == "Shop":
Shop()
return
elif not Sold:
print("I didn't quite catch that")
sell()
def Shopping():
choice = raw_input("Shop, Sell, or next level? ")
if choice == "Shop":
Shop()
elif choice == "Sell":
Sell()
elif choice != "next level":
print("Sorry I didn't catch that.")
Shopping()
Shopping()
return
Shop()
def IsInt(s):
try:
int(s)
return True
except ValueError:
return False
def Move_Enemy(Enemy):
board[int(Enemy.y)][int(Enemy.x)] = "-"
distancex = int(MyCharacter.x) - int(Enemy.x)
if distancex < 0:
distancex = distancex * -1
distancey = int(MyCharacter.y) - int(Enemy.y)
if distancey < 0:
distancey = distancey * -1
distance = distancex
if distance < distancey:
distance = distancey
if distance <= Enemy.Movement:
Enemy.y = MyCharacter.y
Enemy.x = MyCharacter.x
else:
if int(MyCharacter.x) > int(Enemy.x):
Enemy.x = Enemy.x + Enemy.Movement
if int(MyCharacter.y) > int(Enemy.y):
Enemy.y = Enemy.y + Enemy.Movement
if int(MyCharacter.x) < int(Enemy.x):
Enemy.x = Enemy.x - Enemy.Movement
if int(MyCharacter.y) < int(Enemy.y):
Enemy.y = Enemy.y - Enemy.Movement
def print_board(board):
for row in board:
print(" ".join(row))
for x in range(10):
board.append(["-"] * 10)
def Level(Enemies, Money, XP1):
for x in board:
for y in x:
y = "-"
MyCharacter.x = 0
MyCharacter.y = 0
print("Your Level is " + str(MyCharacter.Level))
for Enemy in Enemies:
board[Enemy.y][Enemy.x] = str(Enemies[Enemy.Number].Number)
board[int(MyCharacter.y)][int(MyCharacter.x)] = "X"
print_board(board)
print("")
EnemiesDestroyed = 0
def attack(EnemiesDestroyed):
NumberOfEnemies = len(Enemies)
answere = raw_input("Would you like to attack?(Yes/No) ")
if answere == "Yes":
print("Choose your weapon. ")
for Weapon in MyCharacter.Weapons:
print(Weapon.Name)
Weapon = raw_input("(Weapon name) ")
print("Choose an enemy.")
for Enemy in Enemies:
if Enemy.Armor[len(Enemy.Armor) - 1]:
print(Enemy.Number)
Enemy = raw_input("(Name of enemy)" )
if IsInt(Enemy) and int(Enemy) <= len(Enemies)-1:
Enemy = Enemies[int(Enemy)]
else:
print("Sorry I didn't catcth that")
attack(EnemiesDestroyed)
return EnemiesDestroyed
distancex = int(MyCharacter.x) - int(Enemy.x)
if distancex < 0:
distancex = distancex * -1
distancey = int(MyCharacter.y) - int(Enemy.y)
if distancey < 0:
distancey = distancey * -1
distance = distancex
if distance < distancey:
distance = distancey
Number = 1
for Thing in MyCharacter.Weapons:
if Thing.Name == Weapon:
if Thing.Range >= distance and Thing.Ammo >= 1:
print("Test")
for Armor in Enemy.Armor:
print("Test2")
if Armor.HP > 0:
print("Test3")
ArmorUsing = Armor
break
else:
print("That enemy is already dead.")
attack(EnemiesDestroyed)
return EnemiesDestroyed
Damage = float(Thing.Damage) * float(random.randint(9, 11))/float(10) * (float(MyCharacter.Level)/float(10) + float(1))
ArmorUsing.HP = float(ArmorUsing.HP) - float(Damage)
print("You did " + str(Damage) + " damage.")
Thing.Ammo -= 1
if ArmorUsing.HP <= 0:
for Armor in Enemy.Armor:
if Armor.HP > 0:
Armor.HP = Armor.HP + ArmorUsing.HP
ArmorUsing.HP = 0
break
else:
EnemiesDestroyed += 1
print("EnemiesDestroyed: " + str(EnemiesDestroyed))
if EnemiesDestroyed == NumberOfEnemies:
return "Game Over"
elif Number == len(MyCharacter.Weapons):
print("Sorry I didn't catch that.")
attack(EnemiesDestroyed)
Number += 1
elif answere != "No":
print("Sorry I didn't catch that")
attack(EnemiesDestroyed)
return EnemiesDestroyed
def Inputs():
board[int(MyCharacter.y)][int(MyCharacter.x)] = "-"
x = raw_input("X: ")
y = raw_input("Y: ")
if IsInt(x) and IsInt(y):
distancex = int(MyCharacter.x) - (int(x) - 1)
else:
print("Sorry I didn't quite catch that.")
Inputs()
return
if distancex - 1 < 0:
distancex = (distancex * -1)
distancey = int(MyCharacter.y) - (int(y) - 1)
if distancey - 1 < 0:
distancey = distancey * -1
distance = distancex
if distance < distancey:
distance = distancey
if distance <= MyCharacter.Movement:
MyCharacter.x = str(int(x) - 1)
MyCharacter.y = str(int(y) - 1)
else:
print("Sorry that's to far away.")
Inputs()
def AIAttack(Enemy):
PosWeps = []
WeaponToBeUsed = ""
distancex = int(MyCharacter.x) - int(Enemy.x)
if distancex < 0:
distancex = distancex * -1
distancey = int(MyCharacter.y) - int(Enemy.y)
if distancey < 0:
distancey = distancey * -1
distance = distancex
if distance < distancey:
distance = distancey
for Weapon in Enemy.Weapons:
if Weapon.Range >= distance and Weapon.Ammo >= 1:
PosWeps.append(Weapon)
HighestDamage = 0
for Weapon in PosWeps:
if Weapon.Damage > HighestDamage:
WeaponToBeUsed = Weapon
HighestDamage = Weapon.Damage
if WeaponToBeUsed != "":
for Armor in MyCharacter.Armor:
if Armor.HP > 0:
WeaponToBeUsed.Ammo -= 1
ArmorUsing = Armor
ArmorUsing.HP = ArmorUsing.HP - WeaponToBeUsed.Damage * float(random.randint(9, 11))/10/(float(MyCharacter.Level)/10 + 1)
TotalHP = 0
for Armor in MyCharacter.Armor:
TotalHP += Armor.HP
print("My health: " + str(TotalHP))
break
while True:
for x in range(10):
for y in range(10):
board[y][x] = "-"
if MyCharacter.Armor[len(MyCharacter.Armor) - 1].HP <= 0:
print("You Loose.")
MyCharacter.Money = 1000
MyCharacter.CampaignLevel = 1
MyCharacter.Armor = []
MyCharacter.Weapons = []
MyCharacter.Movement = 0
Shop()
return
Inputs()
attacking = attack(int(EnemiesDestroyed))
if attacking == "Game Over":
print("You win!")
MyCharacter.XP += XP1
if MyCharacter.XP >= 100 * (MyCharacter.Level + 1):
MyCharacter.XP -= 100 * (MyCharacter.Level + 1)
MyCharacter.Level += 1
MyCharacter.Money += Money
MyCharacter.CampaignLevel += 1
break
else:
EnemiesDestroyed = attacking
for Enemy in Enemies:
for Armor in Enemy.Armor:
if Armor.HP > 0:
ArmorUsing = Armor
Move_Enemy(Enemy)
AI = AIAttack(Enemy)
board[int(Enemy.y)][int(Enemy.x)] = str(Enemies[int(Enemy.Number)].Number)
break
if MyCharacter.Armor[len(MyCharacter.Armor) - 1].HP <= 0:
print("You Loose.")
MyCharacter.Money = 1000
MyCharacter.CampaignLevel = 1
MyCharacter.Armor = []
MyCharacter.Weapons = []
MyCharacter.Movement = 0
Shop()
return
board[int(MyCharacter.y)][int(MyCharacter.x)] = "X"
print_board(board)
print("")
MyCharacter.x = 0
MyCharacter.y = 0
for Armor in MyCharacter.Armor:
if Armor.Name == "Tin":
Armor.HP = 50
elif Armor.Name == "Bronze":
Armor.HP = 100
def Shopping():
choice = raw_input("Shop, Sell, or next level? ")
if choice == "Shop":
Shop()
elif choice == "Sell":
sell()
elif choice != "next level":
print("Sorry I didn't catch that.")
Shopping()
Shopping()
while True:
if MyCharacter.CampaignLevel == 1:
Level([Enemy([Weapon(0, 5, float('inf'), "Sword")], [Armor(50, "Tin")], 1, 9, 9, 0)], 100, 100)
elif MyCharacter.CampaignLevel == 2:
Level([Enemy([Weapon(0, 5, float('inf'), "Sword")], [Armor(50, "Tin")], 1, 9, 0, 0), Enemy([Weapon(0, 5, float('inf'), "Sword")], [Armor(50, "Tin")], 1, 0, 9, 1)], 300, 300)
elif MyCharacter.CampaignLevel == 3:
Level([Enemy([Weapon(0, 5, float('inf'), "Sword")], [Armor(50, "Tin")], 1, 9, 0, 0), Enemy([Weapon(0, 5, float('inf'), "Sword")], [Armor(50, "Tin")], 1, 0, 9, 1), Enemy([Weapon(0, 5, float('inf'), "Sword"), Weapon(3, 5, 10, "Gun")], [Armor(100, "Bronze")], 2, 9, 9, 2)], 500, 500)
elif MyCharacter.CampaignLevel == 4:
Level([Enemy([Weapon(0, 5, float('inf'), "Sword"), Weapon(3, 5, 10, "Gun")], [Armor(100, "Bronze"), Armor(100, "Bronze")], 2, 9, 9, 0)], 700, 700)
else:
print("YOU JUST WON THE GAME!!!!")
break
|
|
|
|